-
-
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
un-expose fake ellipsis
type
#6311
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
This comment has been minimized.
This comment has been minimized.
Diff from mypy_primer, showing the effect of this PR on open source code: mypy_primer (https://github.com/hauntsaninja/mypy_primer.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:16: 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 "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
isort (https://github.com/pycqa/isort.git)
- Warning: unused section(s) in pyproject.toml: module = ['tests.*']
- isort/_future/__init__.py:9: error: unused "type: ignore" comment
- isort/_future/__init__.py:10: error: unused "type: ignore" comment
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/posix.pyi:146: 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 "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
- 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/output.py:504: error: unused "type: ignore" comment
- isort/output.py:516: error: unused "type: ignore" comment
- isort/output.py:523: 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
twine (https://github.com/pypa/twine.git)
- Warning: unused section(s) in mypy.ini: [mypy-tests.*]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/importlib/machinery.pyi:14: 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
- twine/cli.py:33: error: unused "type: ignore" comment
- twine/package.py:117: error: unused "type: ignore" comment
+ Traceback (most recent call last):
+ File "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
attrs (https://github.com/python-attrs/attrs.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/subprocess.pyi:47: 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 "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
sphinx (https://github.com/sphinx-doc/sphinx.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/_ast.pyi:16: 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
- sphinx/pycode/ast.py:54: error: unused "type: ignore" comment
- sphinx/pycode/ast.py: note: In function "unparse":
- sphinx/pycode/ast.py:66:1: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
- sphinx/pycode/ast.py: note: At top level:
- sphinx/pycode/ast.py:115: error: unused "type: ignore" comment
- sphinx/pycode/ast.py:126: error: unused "type: ignore" comment
- sphinx/pycode/ast.py:129: error: unused "type: ignore" comment
- sphinx/pycode/ast.py:163: error: unused "type: ignore" comment
- sphinx/pycode/ast.py:168: error: unused "type: ignore" comment
- sphinx/pycode/ast.py:204: error: unused "type: ignore" comment
- sphinx/pycode/ast.py:207: error: unused "type: ignore" comment
- sphinx/util/logging.py: note: In member "log" of class "SphinxLoggerAdapter":
- sphinx/util/logging.py:121:5: error: Signature of "log" incompatible with supertype "LoggerAdapter"
- sphinx/util/typing.py:228: error: unused "type: ignore" comment
- sphinx/util/typing.py:428: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:37: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:56: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:57: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:62: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:69: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:71: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:75: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:77: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:359: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:361: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:364: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:399: error: unused "type: ignore" comment
- sphinx/pycode/parser.py:459: error: unused "type: ignore" comment
- sphinx/util/inspect.py: note: In function "unwrap_all":
- sphinx/util/inspect.py:138:19: error: Item "FunctionType" of "Union[FunctionType, FunctionType, MethodType, BuiltinFunctionType, BuiltinFunctionType]" has no attribute "__wrapped__"
- sphinx/util/inspect.py:138:19: error: Item "MethodType" of "Union[FunctionType, FunctionType, MethodType, BuiltinFunctionType, BuiltinFunctionType]" has no attribute "__wrapped__"
- sphinx/util/inspect.py:138:19: error: Item "BuiltinFunctionType" of "Union[FunctionType, FunctionType, MethodType, BuiltinFunctionType, BuiltinFunctionType]" has no attribute "__wrapped__"
- sphinx/util/inspect.py: note: In function "is_singledispatch_function":
- sphinx/util/inspect.py:359:13: error: "FunctionType" has no attribute "dispatch"
- sphinx/util/inspect.py: note: At top level:
- sphinx/util/inspect.py:424: error: unused "type: ignore" comment
- sphinx/util/inspect.py:427: error: unused "type: ignore" comment
- sphinx/util/inspect.py:430: error: unused "type: ignore" comment
- sphinx/util/inspect.py:686: error: unused "type: ignore" comment
- sphinx/util/inspect.py:793: error: unused "type: ignore" comment
- sphinx/util/inspect.py:804: error: unused "type: ignore" comment
- sphinx/util/inspect.py:814: error: unused "type: ignore" comment
- sphinx/util/inspect.py: note: In function "signature_from_ast":
- 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 "Type[_empty]")
- sphinx/util/docutils.py:52: error: unused "type: ignore" comment
- sphinx/util/docutils.py:53: error: unused "type: ignore" comment
- sphinx/util/docutils.py:67: error: unused "type: ignore" comment
- sphinx/util/docutils.py:81: error: unused "type: ignore" comment
- sphinx/util/docutils.py:95: error: unused "type: ignore" comment
- sphinx/util/docutils.py:110: error: unused "type: ignore" comment
- sphinx/environment/__init__.py:624: error: unused "type: ignore" comment
- sphinx/ext/autodoc/__init__.py: note: In member "parse_name" of class "Documenter":
- sphinx/ext/autodoc/__init__.py:408:23: error: Need type annotation for "parents"
- sphinx/domains/python.py:124: error: unused "type: ignore" comment
- sphinx/domains/python.py:1452: error: unused "type: ignore" comment
- sphinx/writers/manpage.py:110: error: unused "type: ignore" comment
- sphinx/util/requests.py:28: error: unused "type: ignore" comment
- sphinx/util/requests.py:35: error: unused "type: ignore" comment
- sphinx/util/requests.py:38: error: unused "type: ignore" comment
- sphinx/util/requests.py: note: In function "is_ssl_error":
- sphinx/util/requests.py:54:16: error: Need type annotation for "args"
- sphinx/testing/util.py:126: error: unused "type: ignore" comment
- sphinx/testing/util.py:127: error: unused "type: ignore" comment
- sphinx/ext/coverage.py: note: In member "build_py_coverage" of class "CoverageBuilder":
- sphinx/ext/coverage.py:218:51: error: Item "object" of "Union[object, object]" has no attribute "__doc__"
- sphinx/ext/napoleon/docstring.py: note: In member "_lookup_annotation" of class "GoogleDocstring":
- sphinx/ext/napoleon/docstring.py:864:31: error: Need type annotation for "localns"
- sphinx/ext/autodoc/type_comment.py:46: error: unused "type: ignore" comment
- sphinx/ext/autodoc/type_comment.py:75: error: unused "type: ignore" comment
- sphinx/ext/autodoc/type_comment.py:77: error: unused "type: ignore" comment
- sphinx/ext/autodoc/type_comment.py:99: error: unused "type: ignore" comment
- sphinx/ext/autodoc/type_comment.py:102: error: unused "type: ignore" comment
- sphinx/ext/autodoc/type_comment.py:106: error: unused "type: ignore" comment
- sphinx/ext/autodoc/preserve_defaults.py:45: error: unused "type: ignore" comment
- sphinx/ext/autodoc/preserve_defaults.py:48: error: unused "type: ignore" comment
- sphinx/ext/autodoc/preserve_defaults.py:92: error: unused "type: ignore" comment
- sphinx/ext/autodoc/preserve_defaults.py:98: error: unused "type: ignore" comment
- sphinx/ext/viewcode.py: note: In function "env_purge_doc":
- sphinx/ext/viewcode.py:161:15: error: Need type annotation for "modules"
- sphinx/util/compat.py:29: error: unused "type: ignore" comment
+ Traceback (most recent call last):
+ File "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
yarl (https://github.com/aio-libs/yarl.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/subprocess.pyi:47: 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 "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
freqtrade (https://github.com/freqtrade/freqtrade.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/posix.pyi:146: 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
- freqtrade/strategy/informative_decorator.py:56: error: Need type annotation for "informative_pairs"
+ Traceback (most recent call last):
+ File "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
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/subprocess.pyi:47: 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 "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
anyio (https://github.com/agronholm/anyio.git)
- src/anyio/_core/_eventloop.py:56: error: unused "type: ignore" comment
- 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/posix.pyi:146: 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 "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
paroxython (https://github.com/laowantong/paroxython.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/posix.pyi:146: 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 "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
jax (https://github.com/google/jax.git)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/importlib/machinery.pyi:14: 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/interpreters/xla.py:286: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:286: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:298: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:298: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:305: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:305: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:314: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:314: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:405: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:405: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:449: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:449: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:541: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type [valid-type]
- jax/interpreters/xla.py:541: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:559: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type [valid-type]
- jax/interpreters/xla.py:559: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:718: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type [valid-type]
- jax/interpreters/xla.py:718: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:746: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type [valid-type]
- jax/interpreters/xla.py:746: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:750: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type [valid-type]
- jax/interpreters/xla.py:750: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:751: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type [valid-type]
- jax/interpreters/xla.py:751: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:975: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type [valid-type]
- jax/interpreters/xla.py:975: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1099: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1099: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1117: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1117: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1140: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1140: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1268: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1268: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1283: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1283: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1421: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1421: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1422: error: Variable "jax.interpreters.xla.Buffer" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1422: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1423: error: Variable "jax.interpreters.xla.Buffer" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1423: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1472: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1472: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1473: error: Variable "jax.interpreters.xla.Buffer" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1473: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1684: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1684: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/xla.py:1712: error: Variable "jax.interpreters.xla.Device" is not valid as a type [valid-type]
- jax/interpreters/xla.py:1712: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/pxla.py:93: error: Variable "jax.interpreters.pxla.Unstacked" is not valid as a type [valid-type]
- jax/interpreters/pxla.py:93: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/pxla.py:93: error: Variable "jax.interpreters.pxla.Chunked" is not valid as a type [valid-type]
- jax/interpreters/pxla.py:93: error: Variable "jax.interpreters.pxla.NoSharding" is not valid as a type [valid-type]
- jax/interpreters/pxla.py:94: error: Variable "jax.interpreters.pxla.ShardedAxis" is not valid as a type [valid-type]
- jax/interpreters/pxla.py:94: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/pxla.py:94: error: Variable "jax.interpreters.pxla.Replicated" is not valid as a type [valid-type]
- jax/_src/api_util.py:89: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type [valid-type]
- jax/_src/api_util.py:89: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/partial_eval.py:37: error: Name "Traceback" is not defined [name-defined]
- jax/interpreters/partial_eval.py:1454: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type [valid-type]
- jax/interpreters/partial_eval.py:1454: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/interpreters/partial_eval.py:1475: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type [valid-type]
- jax/interpreters/partial_eval.py:1475: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/api.py:370: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type [valid-type]
- jax/_src/api.py:370: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/api.py:370: note: (Skipping most remaining errors due to unresolved imports or missing stubs; fix these first)
- jax/_src/api.py:493: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type [valid-type]
- jax/_src/api.py:493: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/api.py:494: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type [valid-type]
- jax/_src/api.py:494: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/api.py:524: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type [valid-type]
- jax/_src/api.py:524: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/api.py:525: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type [valid-type]
- jax/_src/api.py:525: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/api.py:1925: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type [valid-type]
- jax/_src/api.py:1925: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/experimental/gsda.py:34: error: Variable "jax.experimental.gsda.DeviceArray" is not valid as a type [valid-type]
- jax/experimental/gsda.py:34: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/experimental/gsda.py:92: error: Variable "jax.experimental.gsda.Device" is not valid as a type [valid-type]
- jax/experimental/gsda.py:92: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/experimental/gsda.py:96: error: Variable "jax.experimental.gsda.DeviceArray" is not valid as a type [valid-type]
- jax/experimental/gsda.py:96: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ Traceback (most recent call last):
+ File "mypy/checkexpr.py", line 3911, in accept
+ File "mypy/nodes.py", line 1429, in accept
+ File "mypy/checkexpr.py", line 2136, in visit_ellipsis
+ File "mypy/checkexpr.py", line 3936, in named_type
+ File "mypy/checker.py", line 4688, in named_type
+ File "mypy/checker.py", line 4773, in lookup_qualified
+ KeyError: "Could not find builtin symbol 'ellipsis' (If you are running a test case, use a fixture that defines this symbol)"
dulwich (https://github.com/dulwich/dulwich.git)
+ /tmp/mypy_primer/new_type``` |
We can't just remove If someone gets around to fixing this in mypy, it would be good to also do the same for |
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.
fixes #3556