Upgrade: replace all Union[something, None]
with Optional[something]
instead
#152
Labels
good first issue
Good for newcomers
Union[something, None]
with Optional[something]
instead
#152
Description
In a bunch of places I used
Union[something, None]
which is technically correct butUnion
is supposed to be used for if it could be either this or that, and not this or optional.Switching it from
Union[something, None]
toOptional[something]
would be more correctThe text was updated successfully, but these errors were encountered: