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

Method current_full_target

mypy/scope.py:40–47  ·  view source on GitHub ↗

Return the current target (may be a class).

(self)

Source from the content-addressed store, hash-verified

38 return self.module
39
40 def current_full_target(self) -> str:
41 """Return the current target (may be a class)."""
42 assert self.module
43 if self.function:
44 return self.function.fullname
45 if self.classes:
46 return self.classes[-1].fullname
47 return self.module
48
49 def current_type_name(self) -> str | None:
50 """Return the current type's short name if it exists"""

Callers 4

visit_class_defMethod · 0.80
process_type_infoMethod · 0.80
visit_assignment_stmtMethod · 0.80
process_lvalueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected