MCPcopy Create free account
hub / github.com/python/mypy / is_module_scope

Method is_module_scope

mypy/semanal.py:7447–7448  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7445 return self.type is not None and not self.is_func_scope()
7446
7447 def is_module_scope(self) -> bool:
7448 return not (self.is_class_scope() or self.is_func_scope())
7449
7450 def current_symbol_kind(self) -> int:
7451 if self.is_class_scope():

Callers 3

make_empty_type_infoMethod · 0.95
visit_nonlocal_declMethod · 0.95
visit_call_exprMethod · 0.95

Calls 2

is_class_scopeMethod · 0.95
is_func_scopeMethod · 0.95

Tested by

no test coverage detected