Repository navigation
Sync typeshed - #11303
Merged
Merged
Sync typeshed#11303
Conversation
Source commit: python/typeshed@ca983cd
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: python-chess (https://github.com/niklasf/python-chess.git)
+ chess/engine.py:1438: error: Argument 1 to "ChainMap" has incompatible type "Mapping[str, Union[str, int, bool, None]]"; expected "MutableMapping[str, Union[str, int, None]]"
+ chess/engine.py:1460: error: Argument 1 to "ChainMap" has incompatible type "Mapping[str, Union[str, int, bool, None]]"; expected "MutableMapping[str, Union[str, int, None]]"
+ chess/engine.py:2351: error: Argument 1 to "ChainMap" has incompatible type "Mapping[str, Union[str, int, bool, None]]"; expected "MutableMapping[str, Union[str, int, None]]"
aioredis (https://github.com/aio-libs/aioredis.git)
- aioredis/client.py:4650: error: Argument 1 to "sha1" has incompatible type "Union[bytes, str, memoryview]"; expected "Union[bytes, bytearray, memoryview, array[Any], mmap]"
+ aioredis/client.py:4650: error: Argument 1 to "sha1" has incompatible type "Union[bytes, str, memoryview]"; expected "Union[bytes, Union[bytearray, memoryview, array[Any], mmap, _CData]]"
sphinx (https://github.com/sphinx-doc/sphinx.git)
- sphinx/util/inspect.py:818:27: error: Incompatible types in assignment (expression has type "DefaultValue", variable has type "_empty")
+ sphinx/util/inspect.py:818:27: error: Incompatible types in assignment (expression has type "DefaultValue", variable has type "Type[_empty]")
- sphinx/util/inspect.py:828:23: error: Incompatible types in assignment (expression has type "DefaultValue", variable has type "_empty")
+ sphinx/util/inspect.py:828:23: error: Incompatible types in assignment (expression has type "DefaultValue", variable has type "Type[_empty]")
pandas (https://github.com/pandas-dev/pandas.git)
+ pandas/compat/chainmap.py:21: error: Redundant cast to "MutableMapping[_KT, _VT]" [redundant-cast]
+ pandas/compat/chainmap.py:25: error: Redundant cast to "MutableMapping[_KT, _VT]" [redundant-cast]
+ pandas/compat/chainmap.py:35: error: Redundant cast to "MutableMapping[_KT, _VT]" [redundant-cast]
+ pandas/core/computation/scope.py:241: error: unused "type: ignore" comment
poetry (https://github.com/python-poetry/poetry.git)
- poetry/plugins/plugin_manager.py:22: error: Need type annotation for "_plugins" (hint: "_plugins: List[<type>] = ...")
+ poetry/mixology/failure.py:144: error: Item "DependencyCause" of "Union[RootCause, NoVersionsCause, DependencyCause, ConflictCause, PythonCause, PlatformCause, PackageNotFoundCause]" has no attribute "conflict"
edgedb (https://github.com/edgedb/edgedb.git)
+ edb/schema/delta.py:1225:38: error: Argument 1 to "ChainMap" has incompatible type "*List[Mapping[Optional[str], str]]"; expected "MutableMapping[Optional[str], str]"
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To contunue my work on #11206 I need this
typeshedcommit: python/typeshed@4ac969aSource commit:
python/typeshed@ca983cd