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
Currently, annotating an attribute as Optional[str] works, but annotating the same attribute as str | None results in the following error when trying to read an empty field
The text was updated successfully, but these errors were encountered:
msto
changed the title
Metric.read should support new type hint syntax for Optionals
Metric.read should support PEP 604 syntax for Optional types
Apr 17, 2024
Currently, annotating an attribute as
Optional[str]
works, but annotating the same attribute asstr | None
results in the following error when trying to read an empty fieldThe text was updated successfully, but these errors were encountered: