Type annotations are regular Python objects and as such can be used to create an alias like
Point = tuple[float, float]
These are valid types that should be picked up during type collection.
Unfortunately I don't see an easy way right now to differentiate them from regular assigns that aren't valid as annotations. For a start, we could simply treat any assignment as a valid type and tell users to rely on type checkers to pick this up...
Type annotations are regular Python objects and as such can be used to create an alias like
These are valid types that should be picked up during type collection.
Unfortunately I don't see an easy way right now to differentiate them from regular assigns that aren't valid as annotations. For a start, we could simply treat any assignment as a valid type and tell users to rely on type checkers to pick this up...