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

Method copy

mypy/partially_defined.py:211–216  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209 self.in_finally = False
210
211 def copy(self) -> DefinedVariableTracker:
212 result = DefinedVariableTracker()
213 result.scopes = [s.copy() for s in self.scopes]
214 result.disable_branch_skip = self.disable_branch_skip
215 result.in_finally = self.in_finally
216 return result
217
218 def _scope(self) -> Scope:
219 assert len(self.scopes) > 0

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45

Tested by

no test coverage detected