MCPcopy Index your code
hub / github.com/python/mypy / is_function

Method is_function

mypy/stubgenc.py:542–546  ·  view source on GitHub ↗
(self, obj: object)

Source from the content-addressed store, hash-verified

540 return self.get_type_fullname(type(obj))
541
542 def is_function(self, obj: object) -> bool:
543 if self.is_c_module:
544 return inspect.isbuiltin(obj)
545 else:
546 return inspect.isfunction(obj)
547
548 def is_method(self, class_info: ClassInfo, name: str, obj: object) -> bool:
549 if self.is_c_module:

Callers 1

generate_moduleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected