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

Method current_target

mypy/scope.py:32–38  ·  view source on GitHub ↗

Return the current target (non-class; for a class return enclosing module).

(self)

Source from the content-addressed store, hash-verified

30 return self.module
31
32 def current_target(self) -> str:
33 """Return the current target (non-class; for a class return enclosing module)."""
34 assert self.module
35 if self.function:
36 fullname = self.function.fullname
37 return fullname or ""
38 return self.module
39
40 def current_full_target(self) -> str:
41 """Return the current target (may be a class)."""

Callers 7

add_plugin_dependencyMethod · 0.45
add_type_alias_depsMethod · 0.45
visit_mypy_fileMethod · 0.45
visit_func_defMethod · 0.45
process_type_infoMethod · 0.45
visit_importMethod · 0.45
add_dependencyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected