MCPcopy Index your code
hub / github.com/RustPython/RustPython / ValueRange

Class ValueRange

Lib/test/test_typing.py:9517–9519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9515 import dataclasses
9516 @dataclasses.dataclass
9517 class ValueRange:
9518 lo: int
9519 hi: int
9520 v = ValueRange(1, 2)
9521 self.assertEqual(get_args(Annotated[int, v] | None),
9522 (Annotated[int, v], types.NoneType))

Callers 1

Calls

no outgoing calls

Tested by 1