I’m examining some code from a simple card game called AceyDucey. There are two lines that seem to be doing some kind of assignment, but I’ve never seen something like this in Python before. I was wondering if someone could tell me what kind of assignment (or other thing) this is:
Suit: TypeAlias = Literal["\u2665", "\u2666", "\u2663", "\u2660"]
Rank: TypeAlias = Literal[2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
The full code of the game can be found here on GitHub.