Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostofGoes committed Jun 1, 2023
1 parent 197c303 commit e5acc6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions getmac/getmac.py
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,7 @@ def get_method_by_name(method_name):


def get_instance_from_cache(method_type, method_name):
# type: (str, str) -> Optional[Method]
"""
Get the class for a named Method from the caches.
Expand All @@ -1363,7 +1364,6 @@ def get_instance_from_cache(method_type, method_name):
method_type: method type to initialize the cache for.
Allowed values are: ``ip4`` | ``ip6`` | ``iface`` | ``default_iface``
"""
# type: (str, str) -> Optional[Method]

if str(METHOD_CACHE[method_type]) == method_name:
return METHOD_CACHE[method_type]
Expand Down Expand Up @@ -1702,7 +1702,7 @@ def get_by_method(method_type, arg="", network_request=True):
return result


def get_mac_address(
def get_mac_address( # noqa: C901
interface=None, ip=None, ip6=None, hostname=None, network_request=True
):
# type: (Optional[str], Optional[str], Optional[str], Optional[str], bool) -> Optional[str]
Expand Down

0 comments on commit e5acc6d

Please sign in to comment.