-
Notifications
You must be signed in to change notification settings - Fork 5
FAQ
nh916 edited this page Aug 21, 2023
·
5 revisions
Q: This field, such as condition uncertainty value, is type hinted to accept Number, str, and None value: Optional[Union[Number, str]]
, why are you accepting str and not just Union[Number, None]
A: When the API returns data often it takes an int and returns a str, we made the SDK so that it works well with the API regardless of what it takes. This also applies for places that the data model suggest should be a single attribute, but the API wants a list of attributes