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
Fix type hint of Field.default to be compatible with Python 3.8 and 3.9 (#10972)
For Python < 3.10, we define `EllipsisType = type(Ellipsis)` in
`_typing_extra`. `EllipsisType` is then used in a type expression
but pyright raises an error because `EllipsisType` is defined as
variable.
Instead, we make use of the `ellipsis` builtin, only available
for type checkers (defined in typeshed) as a compatibility hack.
0 commit comments