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

Method new

mypy/types.py:556–559  ·  view source on GitHub ↗
(meta_level: int)

Source from the content-addressed store, hash-verified

554
555 @staticmethod
556 def new(meta_level: int) -> TypeVarId:
557 raw_id = TypeVarId.next_raw_id
558 TypeVarId.next_raw_id += 1
559 return TypeVarId(raw_id, meta_level)
560
561 def __repr__(self) -> str:
562 return self.raw_id.__repr__()

Callers 2

match_generic_callablesFunction · 0.45

Calls 1

TypeVarIdClass · 0.85

Tested by

no test coverage detected