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

Function has_placeholder

mypy/semanal_shared.py:375–377  ·  view source on GitHub ↗

Check if a type contains any placeholder types (recursively).

(typ: Type)

Source from the content-addressed store, hash-verified

373
374
375def has_placeholder(typ: Type) -> bool:
376 """Check if a type contains any placeholder types (recursively)."""
377 return typ.accept(HasPlaceholders())
378
379
380def find_dataclass_transform_spec(node: Node | None) -> DataclassTransformSpec | None:

Calls 2

HasPlaceholdersClass · 0.85
acceptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…