Skip to content

Conversation

@AlexWaygood
Copy link
Member

This is another PR to reproduce a mypy bug discovered while working on #6717

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

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

more-itertools (https://github.com/more-itertools/more-itertools)
- Warning: unused section(s) in setup.cfg: [mypy-tests.*]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

bidict (https://github.com/jab/bidict)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 
- bidict/_mut.py:150: error: Signature of "update" incompatible with supertype "MutableMapping"  [override]
- bidict/_mut.py:150: note:      Superclass:
- bidict/_mut.py:150: note:          @overload
- bidict/_mut.py:150: note:          def update(self, SupportsKeysAndGetItem[KT, VT], **kwargs: VT) -> None
- bidict/_mut.py:150: note:          @overload
- bidict/_mut.py:150: note:          def update(self, Iterable[Tuple[KT, VT]], **kwargs: VT) -> None
- bidict/_mut.py:150: note:          @overload
- bidict/_mut.py:150: note:          def update(self, **kwargs: VT) -> None
- bidict/_mut.py:150: note:      Subclass:
- bidict/_mut.py:150: note:          @overload
- bidict/_mut.py:150: note:          def update(self, Mapping[KT, VT], **kw: VT) -> None
- bidict/_mut.py:150: note:          @overload
- bidict/_mut.py:150: note:          def update(self, Iterable[Tuple[KT, VT]], **kw: VT) -> None
- bidict/_mut.py:150: note:          @overload
- bidict/_mut.py:150: note:          def update(self, **kw: VT) -> None

pycryptodome (https://github.com/Legrandin/pycryptodome)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

xarray (https://github.com/pydata/xarray)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcdtlstransport.py:186: error: Unused "type: ignore" comment
- src/aiortc/rtcdtlstransport.py:211: error: Unused "type: ignore" comment
- src/aiortc/rtcdtlstransport.py:212: error: Unused "type: ignore" comment
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

flake8 (https://github.com/pycqa/flake8)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

twine (https://github.com/pypa/twine)
- Warning: unused section(s) in mypy.ini: [mypy-tests.*]
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

pytest (https://github.com/pytest-dev/pytest)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 
- src/_pytest/pathlib.py:542: error: Item "None" of "Optional[str]" has no attribute "endswith"  [union-attr]
- src/_pytest/pathlib.py:543: error: Value of type "Optional[str]" is not indexable  [index]
- src/_pytest/pathlib.py:544: error: Item "None" of "Optional[str]" has no attribute "endswith"  [union-attr]
- src/_pytest/pathlib.py:545: error: Value of type "Optional[str]" is not indexable  [index]
- src/_pytest/pathlib.py:548: error: Argument 2 to "_is_same" has incompatible type "Optional[str]"; expected "str"  [arg-type]
- src/_pytest/config/__init__.py:1432: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"  [arg-type]
- src/_pytest/config/__init__.py:1675: error: Argument 1 to "filterwarnings" has incompatible type "*Tuple[str, str, Type[Warning], str, int]"; expected "Union[Literal['default'], Literal['error'], Literal['ignore'], Literal['always'], Literal['module'], Literal['once']]"  [arg-type]
- src/_pytest/config/__init__.py:1678: error: Argument 1 to "filterwarnings" has incompatible type "*Tuple[str, str, Type[Warning], str, int]"; expected "Union[Literal['default'], Literal['error'], Literal['ignore'], Literal['always'], Literal['module'], Literal['once']]"  [arg-type]
- src/_pytest/fixtures.py:1154: error: Incompatible types in assignment (expression has type "Union[Tuple[Union[None, str, float, int, bool], ...], Callable[[Any], Optional[object]], None]", variable has type "Union[Tuple[Union[None, str, float, int, bool], ...], Callable[[Any], Optional[object]]]")  [assignment]
- src/_pytest/monkeypatch.py:77: error: Incompatible types in assignment (expression has type "object", variable has type Module)  [assignment]
- src/_pytest/python.py:333: error: Item "None" of "Optional[str]" has no attribute "endswith"  [union-attr]
- src/_pytest/python.py:334: error: Value of type "Optional[str]" is not indexable  [index]
- src/_pytest/python.py:335: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "Union[PathLike[str], str]")  [assignment]
- src/_pytest/assertion/rewrite.py:285: error: Returning Any from function declared to return "TraversableResources"  [no-any-return]
- src/_pytest/warnings.py:59: error: Argument 1 to "filterwarnings" has incompatible type "*Tuple[str, str, Type[Warning], str, int]"; expected "Union[Literal['default'], Literal['error'], Literal['ignore'], Literal['always'], Literal['module'], Literal['once']]"  [arg-type]
- testing/test_conftest.py:117: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"  [arg-type]
- testing/test_conftest.py:200: error: Item "None" of "Optional[str]" has no attribute "startswith"  [union-attr]
- testing/test_conftest.py:206: error: Item "None" of "Optional[str]" has no attribute "startswith"  [union-attr]
- testing/test_conftest.py:217: error: Item "None" of "Optional[str]" has no attribute "startswith"  [union-attr]
- testing/test_assertion.py:1020: error: No overload variant matches argument type "bool"  [call-overload]
- testing/test_assertion.py:1020: note: Possible overload variants:
- testing/test_assertion.py:1020: note:     def [_C <: type] attrs(maybe_cls: _C, these: Optional[Dict[str, Any]] = ..., repr_ns: Optional[str] = ..., repr: bool = ..., cmp: Optional[bool] = ..., hash: Optional[bool] = ..., init: bool = ..., slots: bool = ..., frozen: bool = ..., weakref_slot: bool = ..., str: bool = ..., auto_attribs: bool = ..., kw_only: bool = ..., cache_hash: bool = ..., auto_exc: bool = ..., eq: Optional[bool] = ..., order: Optional[bool] = ...) -> _C
- testing/test_assertion.py:1020: note:     def attrs(maybe_cls: None = ..., these: Optional[Dict[str, Any]] = ..., repr_ns: Optional[str] = ..., repr: bool = ..., cmp: Optional[bool] = ..., hash: Optional[bool] = ..., init: bool = ..., slots: bool = ..., frozen: bool = ..., weakref_slot: bool = ..., str: bool = ..., auto_attribs: bool = ..., kw_only: bool = ..., cache_hash: bool = ..., auto_exc: bool = ..., eq: Optional[bool] = ..., order: Optional[bool] = ...) -> Callable[[_C], _C]
- testing/test_assertion.py:1036: error: Module has no attribute "define"  [attr-defined]
- testing/test_assertion.py:1043: error: Too many arguments for "SimpleDataObject"  [call-arg]
- testing/test_assertion.py:1044: error: Too many arguments for "SimpleDataObject"  [call-arg]

dedupe (https://github.com/dedupeio/dedupe)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

pegen (https://github.com/we-like-parsers/pegen)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

sockeye (https://github.com/awslabs/sockeye)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

dulwich (https://github.com/dulwich/dulwich)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

black (https://github.com/psf/black)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

websockets (https://github.com/aaugustin/websockets)
- src/websockets/datastructures.py:137: error: Signature of "update" incompatible with supertype "MutableMapping"
- src/websockets/datastructures.py:137: note:      Superclass:
- src/websockets/datastructures.py:137: note:          @overload
- src/websockets/datastructures.py:137: note:          def update(self, SupportsKeysAndGetItem[str, str], **kwargs: str) -> None
- src/websockets/datastructures.py:137: note:          @overload
- src/websockets/datastructures.py:137: note:          def update(self, Iterable[Tuple[str, str]], **kwargs: str) -> None
- src/websockets/datastructures.py:137: note:          @overload
- src/websockets/datastructures.py:137: note:          def update(self, **kwargs: str) -> None
- src/websockets/datastructures.py:137: note:      Subclass:
- src/websockets/datastructures.py:137: note:          def update(self, *args: Union[Headers, Mapping[str, str], Iterable[Tuple[str, str]]], **kwargs: str) -> None
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

rich (https://github.com/willmcgugan/rich)
- rich/_windows.py:35: error: Statement is unreachable
- rich/style.py:726: error: Statement is unreachable
- rich/traceback.py:249: error: Value of type variable "AnyStr" of "dirname" cannot be "Optional[str]"
- rich/traceback.py:252: error: Value of type variable "AnyStr" of "normpath" cannot be "Optional[str]"
- rich/traceback.py:252: error: Value of type variable "AnyStr" of "abspath" cannot be "Optional[str]"
- rich/traceback.py:253: error: Argument 1 to "append" of "list" has incompatible type "Optional[str]"; expected "str"
- rich/live.py:172: error: Subclass of "TextIO" and "FileProxy" cannot exist: would have incompatible method signatures
- rich/live.py:175: error: Subclass of "TextIO" and "FileProxy" cannot exist: would have incompatible method signatures
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

ignite (https://github.com/pytorch/ignite)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
- ignite/engine/events.py:141: error: Unused "type: ignore" comment
- ignite/engine/deterministic.py:38: error: Class cannot subclass "BatchSampler" (has type "Any")  [misc]
- ignite/engine/deterministic.py:228: error: Unused "type: ignore" comment
- ignite/engine/deterministic.py:255: error: Unused "type: ignore[arg-type, attr-defined]" comment
- ignite/engine/deterministic.py:260: error: Unused "type: ignore[attr-defined, union-attr]" comment
- ignite/distributed/auto.py:284: error: Class cannot subclass "DistributedSampler" (has type "Any")  [misc]
- ignite/distributed/auto.py:310: error: Unused "type: ignore" comment
- ignite/distributed/auto.py:353: error: Class cannot subclass "Optimizer" (has type "Any")  [misc]
- ignite/distributed/auto.py:355: error: Unused "type: ignore" comment
- ignite/metrics/ssim.py:181: error: Unused "type: ignore" comment
- ignite/metrics/precision.py:50: error: Unused "type: ignore" comment
- ignite/metrics/precision.py:51: error: Unused "type: ignore" comment
- ignite/metrics/metric.py:277: error: Untyped decorator makes function "iteration_completed" untyped  [misc]
- ignite/metrics/gan/utils.py:8: error: Class cannot subclass "Module" (has type "Any")  [misc]
- ignite/metrics/gan/utils.py:33: error: Untyped decorator makes function "forward" untyped  [misc]
- ignite/metrics/gan/utils.py:64: error: Cannot determine type of "_feature_extractor"  [has-type]
- ignite/engine/__init__.py:372: error: Unused "type: ignore" comment
- ignite/handlers/time_profilers.py:638: error: Incompatible return value type (got "List[List[Union[Any, str, float, Tuple[Union[str, float], Union[str, float]]]]]", expected "List[List[Union[str, float]]]")  [return-value]
- ignite/handlers/param_scheduler.py:842: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:849: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:855: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:857: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:891: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:896: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:904: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:1381: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:1386: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:1388: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:1395: error: Unused "type: ignore" comment
- ignite/handlers/checkpoint.py:721: error: Unused "type: ignore" comment
- ignite/handlers/lr_finder.py:476: error: Class cannot subclass "_LRScheduler" (has type "Any")  [misc]
- ignite/handlers/lr_finder.py:498: error: Unused "type: ignore" comment
- ignite/handlers/lr_finder.py:499: error: Unused "type: ignore" comment
- ignite/contrib/handlers/wandb_logger.py:138: error: Unused "type: ignore" comment
- ignite/contrib/handlers/visdom_logger.py:188: error: Unused "type: ignore" comment
- ignite/contrib/handlers/visdom_logger.py:196: error: Unused "type: ignore" comment
- ignite/contrib/handlers/visdom_logger.py:241: error: Unused "type: ignore" comment
- ignite/contrib/handlers/tensorboard_logger.py:155: error: Unused "type: ignore" comment
- ignite/contrib/handlers/neptune_logger.py:588: error: Unused "type: ignore" comment
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

dacite (https://github.com/konradhalas/dacite)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "mypy/build.py", line 1972, in wrap_context
+   File "mypy/semanal_main.py", line 326, in semantic_analyze_target
+   File "mypy/semanal.py", line 405, in refresh_partial
+   File "mypy/semanal.py", line 414, in refresh_top_level
+   File "mypy/semanal.py", line 444, in add_implicit_module_attrs
+ AssertionError: 

jax (https://github.com/google/jax)
+ /tmp/mypy_primer/new_typeshed/typeshed_to_test/stdlib/collections/__init__.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.930
- jax/interpreters/mlir.py:37: error: Name "Traceback" is not defined  [name-defined]
- 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:55: error: Need type annotation for "x"  [var-annotated]
- 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/_src/device_array.py:52: error: Variable "jax._src.device_array.Device" is not valid as a type  [valid-type]
- jax/_src/device_array.py:52: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/device_array.py:53: error: Variable "jax._src.device_array.Buffer" is not valid as a type  [valid-type]
- jax/_src/device_array.py:53: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/device_array.py:54: error: Variable "jax._src.device_array.Buffer" is not valid as a type  [valid-type]
- jax/_src/device_array.py:54: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/device_array.py:103: error: Variable "jax._src.device_array.Device" is not valid as a type  [valid-type]
- jax/_src/device_array.py:103: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/device_array.py:104: error: Variable "jax._src.device_array.Buffer" is not valid as a type  [valid-type]
- jax/_src/device_array.py:104: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/lib/xla_bridge.py:307: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
- jax/_src/lib/xla_bridge.py:307: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/lib/xla_bridge.py:327: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
- jax/_src/lib/xla_bridge.py:327: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/lib/xla_bridge.py:332: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
- jax/_src/lib/xla_bridge.py:332: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/lib/xla_bridge.py:364: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
- jax/_src/lib/xla_bridge.py:364: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/lib/xla_bridge.py:393: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
- jax/_src/lib/xla_bridge.py:393: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/lib/xla_bridge.py:418: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
- jax/_src/lib/xla_bridge.py:418: 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/_src/dispatch.py:80: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
- jax/_src/dispatch.py:80: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/dispatch.py:119: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
- jax/_src/dispatch.py:119: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/dispatch.py:397: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
- jax/_src/dispatch.py:397: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/dispatch.py:404: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
- jax/_src/dispatch.py:404: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- jax/_src/dispatch.py:412: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
- jax/_src/dispatch.py:412: note: See https://mypy.readth```

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