MCPcopy Index your code
hub / github.com/python/cpython / ValueRange

Class ValueRange

Lib/test/test_typing.py:9641–9643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9639 import dataclasses
9640 @dataclasses.dataclass
9641 class ValueRange:
9642 lo: int
9643 hi: int
9644 v = ValueRange(1, 2)
9645 self.assertEqual(get_args(Annotated[int, v] | None),
9646 (Annotated[int, v], types.NoneType))

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…