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

Method temp_node

mypy/checker.py:7997–7999  ·  view source on GitHub ↗

Create a temporary node with the given, fixed type.

(self, t: Type, context: Context | None = None)

Source from the content-addressed store, hash-verified

7995 return False, False, None
7996
7997 def temp_node(self, t: Type, context: Context | None = None) -> TempNode:
7998 """Create a temporary node with the given, fixed type."""
7999 return TempNode(t, context=context)
8000
8001 def fail(
8002 self, msg: str | ErrorMessage, context: Context, *, code: ErrorCode | None = None

Calls 1

TempNodeClass · 0.90

Tested by

no test coverage detected