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
aricooperdavis
changed the title
Erroneous type hinting breaks functions with default parameter of None
Erroneous type hinting breaks functions with parameters with default value of None
Jan 17, 2025
A small number of functions have a default parameter of
None
but a type hint that doesn't includeNone
, e.g.osdatahub/src/osdatahub/LinkedIdentifiersAPI/linked_identifiers_api.py
Line 62 in 10cc04a
The fix is to change
type = None
toUnion[type, None] = None
in order to allow the default parameter of None to be passed to the function.The text was updated successfully, but these errors were encountered: