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

Method __init__

Lib/test/test_enum.py:1920–1922  ·  view source on GitHub ↗
(self, r, g, b)

Source from the content-addressed store, hash-verified

1918 INVALID = (256, 0, 0)
1919
1920 def __init__(self, r, g, b):
1921 if not all(0 <= val <= 255 for val in (r, g, b)):
1922 raise InvalidRgbColorError(r, g, b)
1923
1924 def test_intenum_transitivity(self):
1925 class number(IntEnum):

Callers

nothing calls this directly

Calls 2

allFunction · 0.85

Tested by

no test coverage detected