MCPcopy
hub / github.com/python/mypy / is_missing_stub

Method is_missing_stub

mypy/stubtest.py:135–137  ·  view source on GitHub ↗

Whether or not the error is for something missing from the stub.

(self)

Source from the content-addressed store, hash-verified

133 self.runtime_desc = runtime_desc
134
135 def is_missing_stub(self) -> bool:
136 """Whether or not the error is for something missing from the stub."""
137 return isinstance(self.stub_object, Missing)
138
139 def is_positional_only_related(self) -> bool:
140 """Whether or not the error is for something being (or not being) positional-only."""

Callers 1

test_stubsFunction · 0.80

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected