classmethod and staticmethod
Python has one __init__, so how do you build an object from different
inputs? With an alternative constructor: a @classmethod.
A class method gets the class as its first argument, named cls, instead of
an instance. Color.from_hex("#ff8000") parses the text and returns
cls(255, 128, 0). Because it calls cls rather than Color, a subclass
gets an instance of itself: Paint.from_hex(...) returns a Paint.
You already use these: dict.fromkeys, datetime.fromisoformat and
int.from_bytes are all class methods.
A @staticmethod gets neither self nor cls. It's a plain function that
lives in the class because it belongs there. A module-level function is often
just as good.
Run it, then add Color.from_tuple((1, 2, 3)).