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
Am I asking too much of Mypy, or am I doing something wrong with this code?
I get Incompatible types in assignment (expression has type "Dict[str, str]", variable has type "Union[_TokenParamsPassword, _TokenParamsRefresh]") [assignment] on the assignment in this function:
So, I'm using the AuthParam, which is a subset of keys of TokenParam, and then building a full TokenParam dictionary from that. Is there a better way to do this?
The text was updated successfully, but these errors were encountered:
JelleZijlstra
changed the title
Incompatible type in assignment when trying to construct TypedDict.
Error when trying to construct TypedDict with ** unpacking
May 3, 2022
Am I asking too much of Mypy, or am I doing something wrong with this code?
I get
Incompatible types in assignment (expression has type "Dict[str, str]", variable has type "Union[_TokenParamsPassword, _TokenParamsRefresh]") [assignment]
on the assignment in this function:The type definitions are:
So, I'm using the AuthParam, which is a subset of keys of TokenParam, and then building a full TokenParam dictionary from that. Is there a better way to do this?
The text was updated successfully, but these errors were encountered: