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
[BUG] optional link type field in the form of union type expression (Link[A] | None bitwise or operation between link type and None) can not be recognized.
#951
Closed
IterableTrucks opened this issue
Jun 17, 2024
· 2 comments
Describe the bug
Python 3.10 introduced a new union type expression with | operator, so Optional[Link[A]] is semantically equal to Link[A] | None. However in the latest version of beanie (v1.26.0), the latter form can not be recognized as a link field.
Describe the bug
Python 3.10 introduced a new union type expression with | operator, so Optional[Link[A]] is semantically equal to Link[A] | None. However in the latest version of beanie (v1.26.0), the latter form can not be recognized as a link field.
To Reproduce
Expected behavior
Both forms of optional list backlink can be recognized as link fields.
Additional context
beanie version is 1.26.0
Python version is 3.12.3
The text was updated successfully, but these errors were encountered: