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

Method is_possibly_undefined

mypy/partially_defined.py:131–133  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

129 self.branches[-1].skipped = True
130
131 def is_possibly_undefined(self, name: str) -> bool:
132 assert len(self.branches) > 0
133 return name in self.branches[-1].may_be_defined
134
135 def is_undefined(self, name: str) -> bool:
136 assert len(self.branches) > 0

Callers 2

is_possibly_undefinedMethod · 0.45
visit_name_exprMethod · 0.45

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected