MCPcopy Create free account
hub / github.com/python/mypy / type

Method type

mypy/treetransform.py:791–793  ·  view source on GitHub ↗
(self, type: Type)

Source from the content-addressed store, hash-verified

789 return result
790
791 def type(self, type: Type) -> Type:
792 # Override this method to transform types.
793 return type
794
795 def optional_type(self, type: Type | None) -> Type | None:
796 if type:

Callers 11

visit_with_stmtMethod · 0.95
visit_cast_exprMethod · 0.95
visit_type_form_exprMethod · 0.95
visit_index_exprMethod · 0.95
visit_type_var_exprMethod · 0.95
visit_paramspec_exprMethod · 0.95
visit_temp_nodeMethod · 0.95
optional_typeMethod · 0.95
typesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected