We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapping[Any, object]
unittest.assertDictEqual
I've just added types to the common dictionary used throughout my codebase. But now my assertDictEqual gives a type error:
assertDictEqual
Expected type 'Mapping[Any, object]', got 'MyDictTypeName' instead
What's the trick here? - Should I narrow the types with a Union?
Union
The text was updated successfully, but these errors were encountered:
Could you give a full example and the type checker (plus version) you are using? I just tried some examples with mypy 1.7.1 and that seemed to work.
Sorry, something went wrong.
No branches or pull requests
I've just added types to the common dictionary used throughout my codebase. But now my
assertDictEqualgives a type error:What's the trick here? - Should I narrow the types with a
Union?The text was updated successfully, but these errors were encountered: