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

Method named_type

mypy/checkstrformat.py:1076–1080  ·  view source on GitHub ↗

Return an instance type with type given by the name and no type arguments. Alias for TypeChecker.named_type.

(self, name: str)

Source from the content-addressed store, hash-verified

1074 #
1075
1076 def named_type(self, name: str) -> Instance:
1077 """Return an instance type with type given by the name and no type
1078 arguments. Alias for TypeChecker.named_type.
1079 """
1080 return self.chk.named_type(name)
1081
1082 def accept(self, expr: Expression, context: Type | None = None) -> Type:
1083 """Type check a node. Alias for TypeChecker.accept."""

Callers 7

checkers_for_starMethod · 0.95
check_typeMethod · 0.95
conversion_typeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected