MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_method_by_name

Function get_method_by_name

pager_lib/getmac/getmac.py:1332–1338  ·  view source on GitHub ↗
(method_name)

Source from the content-addressed store, hash-verified

1330
1331
1332def get_method_by_name(method_name):
1333 # type: (str) -> Optional[Type[Method]]
1334 for method in METHODS:
1335 if method.__name__.lower() == method_name.lower():
1336 return method
1337
1338 return None
1339
1340
1341def get_instance_from_cache(method_type, method_name):

Callers 1

get_by_methodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected