Hell yeah, I checked their codebase and immediately saw a cast usage. That’s one of those python things that no one uses but it absolutely amazing if you actually use the type system properly.
I love properly typed Python code. It hits different.
It does seem like they’re casting a ForwardRef onto None though, so not sure exactly what they’re trying to accomplish there. It does literally nothing at all at runtime or lint time, but it’s still cool so see a cast in the wild.
Hell yeah, I checked their codebase and immediately saw a cast usage. That’s one of those python things that no one uses but it absolutely amazing if you actually use the type system properly.
I love properly typed Python code. It hits different.
It does seem like they’re casting a ForwardRef onto None though, so not sure exactly what they’re trying to accomplish there. It does literally nothing at all at runtime or lint time, but it’s still cool so see a cast in the wild.