-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Test decoupling of typing aliases #6262
Closed
Closed
Conversation
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
Diff from mypy_primer, showing the effect of this PR on open source code: isort (https://github.com/pycqa/isort.git)
- Warning: unused section(s) in pyproject.toml: module = ['tests.*']
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_collections_abc.pyi: error: INTERNAL ERROR -- Please try using mypy master on Github:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.910
- isort/place.py:17: error: Returning Any from function declared to return "str"
- isort/deprecated/finders.py:22: error: unused "type: ignore" comment
- isort/deprecated/finders.py:28: error: unused "type: ignore" comment
- isort/deprecated/finders.py:34: error: unused "type: ignore" comment
- isort/setuptools_commands.py:7: error: unused "type: ignore" comment
- isort/pylama_isort.py:6: error: unused "type: ignore" comment
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "mypy/build.py", line 1955, in wrap_context
+ File "mypy/build.py", line 2165, in type_check_first_pass
+ File "mypy/checker.py", line 302, in check_first_pass
+ File "mypy/checker.py", line 4703, in named_generic_type
+ File "mypy/checker.py", line 4712, in lookup_typeinfo
+ AssertionError:
anyio (https://github.com/agronholm/anyio.git)
- src/anyio/_backends/_asyncio.py:188: error: Argument 1 to "getgeneratorstate" has incompatible type "Union[Generator[Optional[Future[object]], None, Any], Awaitable[Any]]"; expected "Generator[Any, Any, Any]"
- src/anyio/_backends/_asyncio.py:1285: error: unused "type: ignore" comment
- src/anyio/_backends/_asyncio.py:1823: error: Argument 4 to "TaskInfo" has incompatible type "Union[Generator[Optional[Future[object]], None, Any], Awaitable[Any]]"; expected "Coroutine[Any, Any, Any]"
- src/anyio/to_process.py:204: error: Redundant cast to "Loader"
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_collections_abc.pyi: error: INTERNAL ERROR -- Please try using mypy master on Github:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.910
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "mypy/build.py", line 1955, in wrap_context
+ File "mypy/build.py", line 2165, in type_check_first_pass
+ File "mypy/checker.py", line 302, in check_first_pass
+ File "mypy/checker.py", line 4703, in named_generic_type
+ File "mypy/checker.py", line 4712, in lookup_typeinfo
+ AssertionError:
kopf (https://github.com/nolar/kopf.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_collections_abc.pyi: error: INTERNAL ERROR -- Please try using mypy master on Github:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.910
- kopf/_cogs/structs/dicts.py:297: error: Unsupported operand types for + ("Tuple[str, ...]" and "Tuple[_K]")
- kopf/_cogs/structs/dicts.py:323: error: Unsupported operand types for + ("Tuple[str, ...]" and "Tuple[_K]")
- kopf/cli.py:95: error: Unsupported operand types for + ("Tuple[Union[str, Pattern[Any]], ...]" and "Tuple[Optional[str]]")
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "mypy/build.py", line 1955, in wrap_context
+ File "mypy/build.py", line 2165, in type_check_first_pass
+ File "mypy/checker.py", line 302, in check_first_pass
+ File "mypy/checker.py", line 4703, in named_generic_type
+ File "mypy/checker.py", line 4712, in lookup_typeinfo
+ AssertionError:
yarl (https://github.com/aio-libs/yarl.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_collections_abc.pyi: error: INTERNAL ERROR -- Please try using mypy master on Github:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.910
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "mypy/build.py", line 1955, in wrap_context
+ File "mypy/build.py", line 2165, in type_check_first_pass
+ File "mypy/checker.py", line 302, in check_first_pass
+ File "mypy/checker.py", line 4703, in named_generic_type
+ File "mypy/checker.py", line 4712, in lookup_typeinfo
+ AssertionError:
pyjwt (https://github.com/jpadilla/pyjwt.git)
- jwt/utils.py:12: error: unused "type: ignore" comment
- jwt/help.py:10: error: unused "type: ignore" comment
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_collections_abc.pyi: error: INTERNAL ERROR -- Please try using mypy master on Github:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.910
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "mypy/build.py", line 1955, in wrap_context
+ File "mypy/build.py", line 2165, in type_check_first_pass
+ File "mypy/checker.py", line 302, in check_first_pass
+ File "mypy/checker.py", line 4703, in named_generic_type
+ File "mypy/checker.py", line 4712, in lookup_typeinfo
+ AssertionError:
pylint (https://github.com/pycqa/pylint.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_collections_abc.pyi: error: INTERNAL ERROR -- Please try using mypy master on Github:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.910
- pylint/pyreverse/inspector.py:184: error: Need type annotation for "specializations"
- pylint/checkers/variables.py:1781: error: Need type annotation for "elements"
- pylint/checkers/typecheck.py:1378: error: Need type annotation for "already_filled_keywords"
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "mypy/build.py", line 1955, in wrap_context
+ File "mypy/build.py", line 2165, in type_check_first_pass
+ File "mypy/checker.py", line 302, in check_first_pass
+ File "mypy/checker.py", line 4703, in named_generic_type
+ File "mypy/checker.py", line 4712, in lookup_typeinfo
+ AssertionError:
mypy (https://github.com/python/mypy.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_collections_abc.pyi: error: INTERNAL ERROR -- Please try using mypy master on Github:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.910
- mypy/nodes.py:67: error: Variable "typing_extensions.TypeAlias" is not valid as a type [valid-type]
- mypy/nodes.py:67: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:211: error: Variable "typing_extensions.TypeAlias" is not valid as a type [valid-type]
- mypy/nodes.py:211: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:232: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:232: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:235: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:235: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:244: error: Variable "typing_extensions.TypeAlias" is not valid as a type [valid-type]
- mypy/nodes.py:244: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:304: error: Variable "mypy.nodes.Definition" is not valid as a type [valid-type]
- mypy/nodes.py:304: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:325: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:325: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:335: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:335: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:452: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:452: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:456: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:456: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:517: error: Variable "typing_extensions.TypeAlias" is not valid as a type [valid-type]
- mypy/nodes.py:517: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:532: error: Variable "mypy.nodes.OverloadPart" is not valid as a type [valid-type]
- mypy/nodes.py:532: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:533: error: Variable "mypy.nodes.OverloadPart" is not valid as a type [valid-type]
- mypy/nodes.py:533: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:534: error: Variable "mypy.nodes.OverloadPart" is not valid as a type [valid-type]
- mypy/nodes.py:534: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:536: error: Variable "mypy.nodes.OverloadPart" is not valid as a type [valid-type]
- mypy/nodes.py:536: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:557: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:557: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:567: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:567: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:570: error: Variable "mypy.nodes.OverloadPart" is not valid as a type [valid-type]
- mypy/nodes.py:570: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:573: error: Variable "mypy.nodes.OverloadPart" is not valid as a type [valid-type]
- mypy/nodes.py:573: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:723: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:723: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:741: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:741: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:815: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:815: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:823: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:823: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:923: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:923: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:926: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:926: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:938: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:938: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:999: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:999: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1009: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:1009: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1098: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1098: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1117: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1117: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1138: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1138: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1141: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1141: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1174: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1174: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1190: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1190: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1241: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1241: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1243: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1243: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1341: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1341: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1349: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:1349: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:1607: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:1607: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2026: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:2026: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2028: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:2028: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2082: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:2082: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2084: error: Variable "mypy.nodes.Lvalue" is not valid as a type [valid-type]
- mypy/nodes.py:2084: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2226: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:2226: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2236: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:2236: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2251: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:2251: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2261: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:2261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2579: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:2579: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2778: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:2778: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2803: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:2803: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2997: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:2997: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:2998: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:2998: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:3014: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:3014: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:3093: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:3093: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:3223: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:3223: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:3230: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:3230: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:3261: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:3261: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:3311: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:3311: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:3312: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:3312: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:3324: error: Variable "mypy.nodes.JsonDict" is not valid as a type [valid-type]
- mypy/nodes.py:3324: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/nodes.py:3425: error: Variable "mypy.nodes.Definition" is not valid as a type [valid-type]
- mypy/nodes.py:3425: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:26: error: Variable "typing_extensions.TypeAlias" is not valid as a type [valid-type]
- mypy/types.py:26: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:55: error: Variable "typing_extensions.TypeAlias" is not valid as a type [valid-type]
- mypy/types.py:55: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:119: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:119: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:160: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:160: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:164: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:164: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:262: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:262: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:264: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:264: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:272: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:272: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:382: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:382: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:386: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:386: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:425: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:425: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:437: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:437: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:457: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:457: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:467: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:467: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:547: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:547: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:556: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:556: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:588: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:588: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:613: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:613: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:675: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:675: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:681: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:681: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:731: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:731: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:736: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:736: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:764: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:764: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:768: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:768: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- mypy/types.py:808: error: Variable "mypy.types.JsonDict" is not valid as a type [valid-type]
- mypy/types.py:808: note: (Skipping most remaining errors due to unresolved imports or missing stubs; fix these first)
- mypy/fastparse.py:111: error: unused "type: ignore" comment
- mypy/fastparse.py:499: error: unused "type: ignore" comment
- mypy/fastparse.py:1584: error: unused "type: ignore" comment
- mypy/fastparse.py:1586: error: unused "type: ignore" comment
- mypy/fastparse2.py:69: error: unused "type: ignore" comment
- mypy/fastparse2.py:351: error: unused "type: ignore" comment
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "mypy/build.py", line 1955, in wrap_context
+ and raise an exception on a blocking error, unless
+ File "mypy/build.py", line 2165, in type_check_first_pass
+ if id not in self.dep_line_map:
+ File "mypy/checker.py", line 302, in check_first_pass
+ File "mypy/checker.py", line 4703, in named_generic_type
+ str_literals = try_getting_str_literals_from_type(index_type)
+ File "mypy/checker.py", line 4712, in lookup_typeinfo
+ assert str_literals is not None
+ AssertionError:
paroxython (https://github.com/laowantong/paroxython.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_collections_abc.pyi: error: INTERNAL ERROR -- Please try using mypy master on Github:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.910
+ Traceback (most recent call last):
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
+ sys.exit(console_entry())
+ File "mypy/build.py", line 1955, in wrap_context
+ File "mypy/build.py", line 2165, in type_check_first_pass
+ File "mypy/checker.py", line 302, in check_first_pass
+ File "mypy/checker.py", line 4703, in named_generic_type
+ File "mypy/checker.py", line 4712, in lookup_typeinfo
+ AssertionError:
jax (https://github.com/google/jax.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_collections_abc.pyi: error: INTERNAL ERROR -- Please try using mypy master on Github:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 0.910
- jax/_src/source_info_util.py:37: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type [valid-type]
- jax/_src/source_info_util.py:37: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/source_info_util.py:39: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type [valid-type]
- jax/_src/source_info_util.py:39: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/source_info_util.py:46: error: Variable "jax._src.source_info_util.Frame" is not valid as a type [valid-type]
- jax/_src/source_info_util.py:46: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/source_info_util.py:58: error: Variable "jax._src.source_info_util.Frame" is not valid as a type [valid-type]
- jax/_src/source_info_util.py:58: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/source_info_util.py:97: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type [valid-type]
- jax/_src/source_info_util.py:97: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/core.py:37: error: Name "Traceback" is not defined [name-defined]
- jax/interpreters/xla.py:37: error: Name "Traceback" is not defined [name-defined]
- jax/interpreters/xla.py:85: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type [valid-type]
- jax/interpreters/xla.py:85: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:91: error: Variable "jax._src.source_info_util.Frame" is not valid as a type [valid-type]
- jax/interpreters/xla.py:91: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:149: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type [valid-type]
- jax/interpreters/xla.py:149: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:155: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type [valid-type]
- jax/interpreters/xla.py:155: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:279: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:279: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpr``` |
Closing it for now. This needs support from type checkers before it can be explored further. |
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.
Test decoupling of typing aliases from the
typing
module.Related issue #6257