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

Method is_incomplete_namespace

mypy/semanal.py:7370–7376  ·  view source on GitHub ↗

Is a module or class namespace potentially missing some definitions? If a name is missing from an incomplete namespace, we'll need to defer the current analysis target.

(self, fullname: str)

Source from the content-addressed store, hash-verified

7368 self.missing_names[-1].add(name)
7369
7370 def is_incomplete_namespace(self, fullname: str) -> bool:
7371 """Is a module or class namespace potentially missing some definitions?
7372
7373 If a name is missing from an incomplete namespace, we'll need to defer the
7374 current analysis target.
7375 """
7376 return fullname in self.incomplete_namespaces
7377
7378 def process_placeholder(
7379 self, name: str | None, kind: str, ctx: Context, force_progress: bool = False

Calls

no outgoing calls

Tested by

no test coverage detected