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

Method named_type

mypy/checkexpr.py:6219–6223  ·  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

6217 return typ
6218
6219 def named_type(self, name: str) -> Instance:
6220 """Return an instance type with type given by the name and no type
6221 arguments. Alias for TypeChecker.named_type.
6222 """
6223 return self.chk.named_type(name)
6224
6225 def type_alias_type_type(self) -> Instance:
6226 """Returns a `typing.TypeAliasType` or `typing_extensions.TypeAliasType`."""

Callers 15

analyze_var_refMethod · 0.95
module_typeMethod · 0.95
visit_call_expr_innerMethod · 0.95
check_callable_callMethod · 0.95
concat_tuplesMethod · 0.95
visit_float_exprMethod · 0.95
visit_complex_exprMethod · 0.95
visit_ellipsisMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected