79511565

Date: 2025-03-15 18:04:29
Score: 1
Natty:
Report link

A bit more messy, but with less boilerplate is just to unpack the Literal. e.g.:

MyType = Literal["a", "b", "c"]
A, B, C = get_args(MyType)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dylan Madisetti