Skip to content

Sync typeshed #10383

New issue

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

Merged
merged 1 commit into from
Apr 28, 2021
Merged

Sync typeshed #10383

merged 1 commit into from
Apr 28, 2021

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Apr 28, 2021

Source commit:
python/typeshed@8bd3e16

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

manticore (https://github.com/trailofbits/manticore.git)
- tests/wasm/json2mc.py:103: note:     def __getitem__(self, _SupportsIndex) -> Any
+ tests/wasm/json2mc.py:103: note:     def __getitem__(self, SupportsIndex) -> Any
- tests/wasm/json2mc.py:159: error: Invalid index type "Optional[int]" for "List[Module]"; expected type "_SupportsIndex"
+ tests/wasm/json2mc.py:159: error: Invalid index type "Optional[int]" for "List[Module]"; expected type "SupportsIndex"
- tests/wasm/json2mc.py:161: error: Invalid index type "Optional[int]" for "List[Module]"; expected type "_SupportsIndex"
+ tests/wasm/json2mc.py:161: error: Invalid index type "Optional[int]" for "List[Module]"; expected type "SupportsIndex"


poetry (https://github.com/python-poetry/poetry.git)
- poetry/inspection/info.py:268: error: Incompatible types in assignment (expression has type "Callable[[Union[str, bytes, _PathLike[str], _PathLike[bytes], None], str, Optional[IO[bytes]], int, DefaultNamedArg(Optional[int], 'format'), DefaultNamedArg(Optional[Type[TarInfo]], 'tarinfo'), DefaultNamedArg(Optional[bool], 'dereference'), DefaultNamedArg(Optional[bool], 'ignore_zeros'), DefaultNamedArg(Optional[str], 'encoding'), DefaultNamedArg(str, 'errors'), DefaultNamedArg(Optional[Mapping[str, str]], 'pax_headers'), DefaultNamedArg(Optional[int], 'debug'), DefaultNamedArg(Optional[int], 'errorlevel'), DefaultNamedArg(Optional[int], 'compresslevel')], TarFile]", variable has type "Type[ZipFile]")
+ poetry/inspection/info.py:268: error: Incompatible types in assignment (expression has type "Callable[[Union[str, bytes, PathLike[str], PathLike[bytes], None], str, Optional[IO[bytes]], int, DefaultNamedArg(Optional[int], 'format'), DefaultNamedArg(Optional[Type[TarInfo]], 'tarinfo'), DefaultNamedArg(Optional[bool], 'dereference'), DefaultNamedArg(Optional[bool], 'ignore_zeros'), DefaultNamedArg(Optional[str], 'encoding'), DefaultNamedArg(str, 'errors'), DefaultNamedArg(Optional[Mapping[str, str]], 'pax_headers'), DefaultNamedArg(Optional[int], 'debug'), DefaultNamedArg(Optional[int], 'errorlevel'), DefaultNamedArg(Optional[int], 'compresslevel')], TarFile]", variable has type "Type[ZipFile]")
- poetry/console/commands/plugin/remove.py:48: error: Argument 1 to "Path" has incompatible type "Union[str, None, Path]"; expected "Union[str, _PathLike[str]]"
+ poetry/console/commands/plugin/remove.py:48: error: Argument 1 to "Path" has incompatible type "Union[str, None, Path]"; expected "Union[str, PathLike[str]]"
- poetry/console/commands/plugin/add.py:78: error: Argument 1 to "Path" has incompatible type "Union[str, None, Path]"; expected "Union[str, _PathLike[str]]"
+ poetry/console/commands/plugin/add.py:78: error: Argument 1 to "Path" has incompatible type "Union[str, None, Path]"; expected "Union[str, PathLike[str]]"

@JukkaL JukkaL merged commit 3c91647 into master Apr 28, 2021
@JukkaL JukkaL deleted the sync-typeshed branch April 28, 2021 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant