Skip to content

Sync typeshed #10924

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
Aug 4, 2021
Merged

Sync typeshed #10924

merged 1 commit into from
Aug 4, 2021

Conversation

hauntsaninja
Copy link
Collaborator

Source commit:
python/typeshed@b2e429c

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2021

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

pip (https://github.com/pypa/pip.git)
+ src/pip/_internal/locations/__init__.py:60: error: unused "type: ignore" comment
+ src/pip/_internal/locations/__init__.py:72: error: unused "type: ignore" comment
+ src/pip/_internal/utils/unpacking.py:200: error: unused "type: ignore" comment

werkzeug (https://github.com/pallets/werkzeug.git)
+ src/werkzeug/debug/console.py:146: error: Argument 1 to "register" of "_ConsoleLoader" has incompatible type "Optional[CodeType]"; expected "CodeType"
+ src/werkzeug/debug/console.py:147: error: Incompatible return value type (got "Optional[CodeType]", expected "CodeType")
+ src/werkzeug/debug/console.py:149: error: Incompatible types in assignment (expression has type "Callable[[str, str, str], CodeType]", variable has type "CommandCompiler")
- tests/test_wrappers.py:355: note: Use "-> None" if function does not return a value
- tests/test_wrappers.py:362: error: Function is missing a return type annotation
- tests/test_wrappers.py:363: error: Function is missing a type annotation
- tests/test_wrappers.py:370: note: (Skipping most remaining errors due to unresolved imports or missing stubs; fix these first)
+ tests/test_wrappers.py:355: note: (Skipping most remaining errors due to unresolved imports or missing stubs; fix these first)

starlette (https://github.com/encode/starlette.git)
+ starlette/routing.py:84: error: <nothing> has no attribute "__name__"

spark (https://github.com/apache/spark.git)
+ python/pyspark/pandas/typedef/typehints.py:526: error: Argument 3 to "DataFrameType" has incompatible type "List[None]"; expected "List[Optional[str]]"
+ python/pyspark/pandas/typedef/typehints.py:526: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
+ python/pyspark/pandas/typedef/typehints.py:526: note: Consider using "Sequence" instead, which is covariant

@hauntsaninja hauntsaninja merged commit 082c937 into python:master Aug 4, 2021
@hauntsaninja hauntsaninja deleted the sync branch August 4, 2021 09:28
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