forked from frostming/atoml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use typecheck workaround for custom list/dicts
As reported in python/mypy#11427, a "white lie" in typeshed messes completely the type inference for classes inheriting from ``(MutableMapping, dict)`` and ``(MutableSequence, list)``. This is a workaround that results in useful type inference.
- Loading branch information
1 parent
4c1e92a
commit 03f434c
Showing
2 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters