MCPcopy
hub / github.com/python/mypy / local_definitions

Method local_definitions

mypy/nodes.py:540–545  ·  view source on GitHub ↗

Return all definitions within the module (including nested). This doesn't include imported definitions.

(self, *, impl_only: bool = False)

Source from the content-addressed store, hash-verified

538 self.raw_data = None
539
540 def local_definitions(self, *, impl_only: bool = False) -> Iterator[Definition]:
541 """Return all definitions within the module (including nested).
542
543 This doesn't include imported definitions.
544 """
545 return local_definitions(self.names, self.fullname, impl_only=impl_only)
546
547 @property
548 def name(self) -> str:

Callers 5

get_all_leaf_targetsFunction · 0.80
apply_class_plugin_hooksFunction · 0.80

Calls 1

local_definitionsFunction · 0.85

Tested by

no test coverage detected