MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / Color

Class Color

tests/cloudpickle_test.py:2366–2374  ·  view source on GitHub ↗

3-element color space

Source from the content-addressed store, hash-verified

2364 """Enum when all members are also (and must be) strings"""
2365
2366 class Color(StringEnum):
2367 """3-element color space"""
2368
2369 RED = "1"
2370 GREEN = "2"
2371 BLUE = "3"
2372
2373 def is_green(self):
2374 return self is Color.GREEN
2375
2376 green1, green2, ClonedColor = pickle_depickle(
2377 [Color.GREEN, Color.GREEN, Color], protocol=self.protocol

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected