You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this project is restricted to Python 3.10 and above, we can take advantage of the newer, preferred syntax for combined types using the pipe (|) operator in type annotations. This syntax is more concise and replaces the need for Union from the typing module.
Just browsing open issues on github and this project looks pretty interesting. I wouldn't mind taking on this enhancement. I haven't pulled the project yet, but I love me some syntax optimization!
Since this project is restricted to Python 3.10 and above, we can take advantage of the newer, preferred syntax for combined types using the pipe (
|
) operator in type annotations. This syntax is more concise and replaces the need forUnion
from thetyping
module.For example:
can now be simplified to:
We should apply this updated syntax to all instances where
Union
is used.The text was updated successfully, but these errors were encountered: