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

Method enter_class

mypy/scope.py:87–93  ·  view source on GitHub ↗

Enter a class target scope.

(self, info: TypeInfo)

Source from the content-addressed store, hash-verified

85 return self.functions[:-1]
86
87 def enter_class(self, info: TypeInfo) -> None:
88 """Enter a class target scope."""
89 if not self.function:
90 self.classes.append(info)
91 else:
92 # Classes within functions are part of the enclosing function target.
93 self.ignored += 1
94
95 def leave_class(self) -> None:
96 """Leave a class target scope."""

Callers 1

class_scopeMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected