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
The TypedDict are super useful to declare the expected type of keys and values, but initializing them without this error is a hassle. Maybe I'm simply doing something wrong...
An important note:
Most users rely on the fact that TypedDict always have a fixed number of keys, but here we don't (argument total=False of TypedDict).
The text was updated successfully, but these errors were encountered:
See for instance here:
xdem/xdem/coreg/biascorr.py
Line 122 in 02c2026
A lot of other instances added in #530.
The TypedDict are super useful to declare the expected type of keys and values, but initializing them without this error is a hassle. Maybe I'm simply doing something wrong...
I found some related posts, but nothing that helped me solving this issue:
https://stackoverflow.com/questions/73242556/typeddict-class-is-an-incompatible-type-for-function-expecting-dict
python/mypy#13122
An important note:
Most users rely on the fact that TypedDict always have a fixed number of keys, but here we don't (argument
total=False
ofTypedDict
).The text was updated successfully, but these errors were encountered: