Skip to content

Conversation

tushar-deepsource
Copy link

@tushar-deepsource tushar-deepsource commented Jan 20, 2022

Note that the change to fail in the interfaces in plugin.py will break all plugins.

@github-actions

This comment has been minimized.

@github-actions
Copy link

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

pandera (https://github.com/pandera-dev/pandera)
- pandera/model.py:426: error: Need type annotation for "config"  [var-annotated]

rotki (https://github.com/rotki/rotki)
- rotkehlchen/api/v1/parser.py:62: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/parser.py:62: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/parser.py:63: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/parser.py:63: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/parser.py:72: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/parser.py:72: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/parser.py:89: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/parser.py:89: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/parser.py:131: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/parser.py:131: error: Unused "type: ignore" comment
- rotkehlchen/db/upgrades/v22_v23.py:127: error: unused "type: ignore" comment
+ rotkehlchen/db/upgrades/v22_v23.py:127: error: Unused "type: ignore" comment
+ rotkehlchen/chain/ethereum/modules/adex/adex.py:811: error: "Unbond" has no attribute "token"
+ rotkehlchen/chain/ethereum/modules/adex/adex.py:811: error: Subclass of "Unbond" and "ChannelWithdraw" cannot exist: would have incompatible method signatures
- rotkehlchen/serialization/serialize.py:210: error: unused "type: ignore" comment
+ rotkehlchen/serialization/serialize.py:210: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:105: error: unused "type: ignore" comment
+ rotkehlchen/chain/ethereum/manager.py:105: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:572: error: unused "type: ignore" comment
+ rotkehlchen/chain/ethereum/manager.py:572: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:794: error: unused "type: ignore" comment
+ rotkehlchen/chain/ethereum/manager.py:794: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:816: error: unused "type: ignore" comment
+ rotkehlchen/chain/ethereum/manager.py:816: error: Unused "type: ignore" comment
- rotkehlchen/chain/ethereum/manager.py:962: error: unused "type: ignore" comment
+ rotkehlchen/chain/ethereum/manager.py:962: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:92: error: unused "type: ignore" comment
+ rotkehlchen/chain/avalanche/manager.py:92: error: Unused "type: ignore" comment
- rotkehlchen/chain/avalanche/manager.py:111: error: unused "type: ignore" comment
+ rotkehlchen/chain/avalanche/manager.py:111: error: Unused "type: ignore" comment
- rotkehlchen/data_handler.py:99: error: unused "type: ignore" comment
+ rotkehlchen/data_handler.py:99: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/encoding.py:126: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/encoding.py:126: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/encoding.py:2280: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/encoding.py:2280: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/encoding.py:2291: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/encoding.py:2291: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/encoding.py:2400: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/encoding.py:2400: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:170: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/resources.py:170: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:185: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/resources.py:185: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:191: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/resources.py:191: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:195: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/resources.py:195: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:207: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/resources.py:207: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:208: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/resources.py:208: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:216: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/resources.py:216: error: Unused "type: ignore" comment
- rotkehlchen/api/v1/resources.py:217: error: unused "type: ignore" comment
+ rotkehlchen/api/v1/resources.py:217: error: Unused "type: ignore" comment
- rotkehlchen/api/server.py:362: error: unused "type: ignore" comment
+ rotkehlchen/api/server.py:362: error: Unused "type: ignore" comment
- rotkehlchen/api/server.py:363: error: unused "type: ignore" comment
+ rotkehlchen/api/server.py:363: error: Unused "type: ignore" comment

python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:224: error: Missing type parameters for generic type "_SubParsersAction"
+ sop/__init__.py:387: error: Missing type parameters for generic type "_SubParsersAction"

arviz (https://github.com/arviz-devs/arviz)
+ arviz/data/io_pymc3_3x.py:47: error: Unused "type: ignore" comment
+ arviz/data/io_pymc3_3x.py:48: error: Unused "type: ignore" comment

starlette (https://github.com/encode/starlette)
- starlette/concurrency.py:34: error: Name "P.args" is not defined  [name-defined]
- starlette/concurrency.py:34: error: Name "P.kwargs" is not defined  [name-defined]
- starlette/background.py:17: error: Name "P.args" is not defined  [name-defined]
- starlette/background.py:17: error: Name "P.kwargs" is not defined  [name-defined]
- starlette/background.py:36: error: Name "P.args" is not defined  [name-defined]
- starlette/background.py:36: error: Name "P.kwargs" is not defined  [name-defined]

pydantic (https://github.com/samuelcolvin/pydantic)
- pydantic/typing.py:190: error: "classmethod" expects no type arguments, but 1 given  [type-arg]
+ pydantic/networks.py:268: error: Unused "type: ignore" comment
+ pydantic/networks.py:268: error: TypedDict key must be a string literal; expected one of ("scheme", "user", "password", "ipv4", "ipv6", ...)  [literal-required]
- pydantic/validators.py:503: error: unused "type: ignore" comment
+ pydantic/networks.py:313: error: Unused "type: ignore" comment
+ pydantic/networks.py:313: error: TypedDict key must be a string literal; expected one of ("scheme", "user", "password", "ipv4", "ipv6", ...)  [literal-required]
+ pydantic/networks.py:314: error: Unused "type: ignore" comment
+ pydantic/networks.py:314: error: TypedDict key must be a string literal; expected one of ("scheme", "user", "password", "ipv4", "ipv6", ...)  [literal-required]
- pydantic/mypy.py:60: error: unused "type: ignore" comment
+ pydantic/mypy.py:60: error: Unused "type: ignore" comment
- pydantic/mypy.py:363: error: unused "type: ignore" comment
+ pydantic/mypy.py:363: error: Unused "type: ignore" comment
- pydantic/mypy.py:739: error: unused "type: ignore" comment
+ pydantic/mypy.py:739: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:67: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:67: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:71: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:71: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:79: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:79: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:138: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:138: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:152: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:152: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:155: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:155: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:159: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:159: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:174: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:174: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:196: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:196: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:203: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:203: error: Unused "type: ignore" comment
- pydantic/_hypothesis_plugin.py:223: error: unused "type: ignore" comment
+ pydantic/_hypothesis_plugin.py:223: error: Unused "type: ignore" comment

graphql-core (https://github.com/graphql-python/graphql-core)
- src/graphql/execution/execute.py:216: error: unused "type: ignore" comment
+ src/graphql/utilities/extend_schema.py:644: error: Unused "type: ignore" comment
- src/graphql/execution/execute.py:217: error: unused "type: ignore" comment
- src/graphql/execution/execute.py:218: error: unused "type: ignore" comment
- src/graphql/execution/execute.py:803: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:69: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:75: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:76: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:77: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:87: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:88: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:89: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:100: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:101: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:102: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:127: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:128: error: unused "type: ignore" comment
- tests/execution/test_union_interface.py:129: error: unused "type: ignore" comment

paasta (https://github.com/yelp/paasta)
- paasta_tools/kubernetes_tools.py:2161: error: Need type annotation for "stream_lines"
- paasta_tools/metrics/metastatus_lib.py:650: error: Argument "key" to "sorted" has incompatible type "Callable[[Any], Sequence[Tuple[str, str]]]"; expected "Callable[[_SlaveT], SupportsLessThan]"
+ paasta_tools/metrics/metastatus_lib.py:650: error: Argument "key" to "sorted" has incompatible type "Callable[[Any], Sequence[Tuple[str, str]]]"; expected "Callable[[_SlaveT], Union[SupportsDunderLT, SupportsDunderGT]]"
- paasta_tools/metrics/metastatus_lib.py:650: error: Argument "key" to "sorted" has incompatible type "Callable[[Any], Sequence[Tuple[str, str]]]"; expected "Callable[[Any], SupportsLessThan]"
+ paasta_tools/metrics/metastatus_lib.py:650: error: Argument "key" to "sorted" has incompatible type "Callable[[Any], Sequence[Tuple[str, str]]]"; expected "Callable[[Any], Union[SupportsDunderLT, SupportsDunderGT]]"

boostedblob (https://github.com/hauntsaninja/boostedblob)
- boostedblob/path.py:457: error: Argument 1 to "isdir" has incompatible type "LocalPath"; expected "Union[str, bytes, PathLike[str], PathLike[bytes]]"
+ boostedblob/path.py:457: error: Argument 1 to "isdir" has incompatible type "LocalPath"; expected "Union[Union[str, bytes, PathLike[str], PathLike[bytes]], int]"
- boostedblob/path.py:457: note: "LocalPath" is missing following "PathLike" protocol member:
- boostedblob/path.py:457: note:     __class_getitem__
- boostedblob/path.py:457: note: Following member(s) of "LocalPath" have conflicts:
- boostedblob/path.py:457: note:     Expected:
- boostedblob/path.py:457: note:         def __fspath__(self) -> bytes
- boostedblob/path.py:457: note:     Got:
- boostedblob/path.py:457: note:         def __fspath__(self) -> str
- boostedblob/path.py:481: error: Argument 1 to "isfile" has incompatible type "LocalPath"; expected "Union[str, bytes, PathLike[str], PathLike[bytes]]"
+ boostedblob/path.py:481: error: Argument 1 to "isfile" has incompatible type "LocalPath"; expected "Union[Union[str, bytes, PathLike[str], PathLike[bytes]], int]"
- boostedblob/path.py:481: note: "LocalPath" is missing following "PathLike" protocol member:
- boostedblob/path.py:481: note:     __class_getitem__
- boostedblob/path.py:481: note: Following member(s) of "LocalPath" have conflicts:
- boostedblob/path.py:481: note:     Expected:
- boostedblob/path.py:481: note:         def __fspath__(self) -> bytes
- boostedblob/path.py:481: note:     Got:
- boostedblob/path.py:481: note:         def __fspath__(self) -> str
- boostedblob/path.py:505: error: Argument 1 to "exists" has incompatible type "LocalPath"; expected "Union[str, bytes, PathLike[str], PathLike[bytes]]"
+ boostedblob/path.py:505: error: Argument 1 to "exists" has incompatible type "LocalPath"; expected "Union[Union[str, bytes, PathLike[str], PathLike[bytes]], int]"
- boostedblob/path.py:505: note: "LocalPath" is missing following "PathLike" protocol member:
- boostedblob/path.py:505: note:     __class_getitem__
- boostedblob/path.py:505: note: Following member(s) of "LocalPath" have conflicts:
- boostedblob/path.py:505: note:     Expected:
- boostedblob/path.py:505: note:         def __fspath__(self) -> bytes
- boostedblob/path.py:505: note:     Got:
- boostedblob/path.py:505: note:         def __fspath__(self) -> str
- boostedblob/cli.py:23: error: unused "type: ignore" comment
+ boostedblob/cli.py:23: error: Unused "type: ignore" comment

ignite (https://github.com/pytorch/ignite)
- ignite/engine/deterministic.py:227: error: unused "type: ignore" comment
+ ignite/engine/deterministic.py:227: error: Unused "type: ignore" comment
- ignite/engine/deterministic.py:254: error: unused "type: ignore" comment
+ ignite/engine/deterministic.py:254: error: Unused "type: ignore" comment
- ignite/engine/deterministic.py:259: error: unused "type: ignore" comment
+ ignite/engine/deterministic.py:259: error: Unused "type: ignore" comment
- ignite/distributed/auto.py:310: error: unused "type: ignore" comment
+ ignite/distributed/auto.py:310: error: Unused "type: ignore" comment
- ignite/distributed/auto.py:355: error: unused "type: ignore" comment
+ ignite/distributed/auto.py:355: error: Unused "type: ignore" comment
- ignite/metrics/ssim.py:181: 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:50: error: Unused "type: ignore" comment
- ignite/metrics/precision.py:51: error: unused "type: ignore" comment
+ ignite/metrics/precision.py:51: error: Unused "type: ignore" comment
- ignite/engine/__init__.py:372: error: unused "type: ignore" comment
+ ignite/engine/__init__.py:372: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:842: error: unused "type: ignore" comment
+ 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:849: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:855: 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:857: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:891: error: unused "type: ignore" comment
+ ignite/handlers/param_scheduler.py:891: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:904: error: unused "type: ignore" comment
+ ignite/handlers/param_scheduler.py:904: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:1377: error: unused "type: ignore" comment
+ ignite/handlers/param_scheduler.py:1377: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:1382: error: unused "type: ignore" comment
+ ignite/handlers/param_scheduler.py:1382: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:1384: error: unused "type: ignore" comment
+ ignite/handlers/param_scheduler.py:1384: error: Unused "type: ignore" comment
- ignite/handlers/param_scheduler.py:1391: error: unused "type: ignore" comment
+ ignite/handlers/param_scheduler.py:1391: error: Unused "type: ignore" comment
- ignite/handlers/lr_finder.py:498: error: unused "type: ignore" comment
+ ignite/handlers/lr_finder.py:498: error: Unused "type: ignore" comment
- ignite/handlers/lr_finder.py:499: 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/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/tensorboard_logger.py:155: 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

mypy (https://github.com/python/mypy)
- mypy/stubtest.py:218: error: Module has no attribute "__all__"  [attr-defined]

SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
- devtools/patches.py:22: error: unused "type: ignore" comment
+ devtools/patches.py:22: error: Unused "type: ignore" comment
- devtools/patches.py:30: error: unused "type: ignore" comment
+ devtools/patches.py:30: error: Unused "type: ignore" comment
- devtools/runner.py:26: error: unused "type: ignore" comment
+ devtools/runner.py:26: error: Unused "type: ignore" comment
- scheduler/message.py:87: error: unused "type: ignore" comment
+ scheduler/message.py:87: error: Unused "type: ignore" comment
- scheduler/message.py:89: error: unused "type: ignore" comment
+ scheduler/message.py:89: error: Unused "type: ignore" comment
- scheduler/message.py:111: error: unused "type: ignore" comment
+ scheduler/message.py:111: error: Unused "type: ignore" comment
- rolemanagement/core.py:800: error: unused "type: ignore" comment
+ rolemanagement/core.py:800: error: Unused "type: ignore" comment
- anticommandspam/core.py:136: error: unused "type: ignore" comment
+ anticommandspam/core.py:136: error: Unused "type: ignore" comment
- scheduler/scheduler.py:116: error: unused "type: ignore" comment
+ scheduler/scheduler.py:116: error: Unused "type: ignore" comment
- scheduler/__init__.py:31: error: unused "type: ignore" comment
+ scheduler/__init__.py:31: error: Unused "type: ignore" comment

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcdtlstransport.py:186: error: unused "type: ignore" comment
+ src/aiortc/rtcdtlstransport.py:186: error: Unused "type: ignore" comment
- src/aiortc/rtcdtlstransport.py:211: 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
+ src/aiortc/rtcdtlstransport.py:212: error: Unused "type: ignore" comment

steam.py (https://github.com/Gobot1234/steam.py)
- steam/enums.py:35: error: Module "typing_extensions" has no attribute "Self"  [attr-defined]
+ steam/enums.py:74: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:74: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/enums.py:139: error: "__new__" must return a class instance (got Self?)  [misc]
+ steam/enums.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:139: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/enums.py:168: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:168: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/enums.py:170: error: "Type[Self?]" has no attribute "_value_map_"  [attr-defined]
- steam/enums.py:172: error: No overload variant of "__new__" of "type" matches argument types "Type[Any]", "str", "Any"  [call-overload]
+ steam/enums.py:172: error: No overload variant of "__new__" of "type" matches argument types "Type[Self?]", "str", "Any"  [call-overload]
- steam/enums.py:172: note:     def __new__(cls: Type[type], o: object) -> type
+ steam/enums.py:172: note:     def __new__(cls, cls: Type[type], object) -> type
- steam/enums.py:172: note:     def [_TT <: type] __new__(cls: Type[_TT], name: str, bases: Tuple[type, ...], namespace: Dict[str, Any], **kwds: Any) -> _TT
+ steam/enums.py:172: note:     def [_TT <: type] __new__(cls, cls: Type[_TT], str, Tuple[type, ...], Dict[str, Any], **kwds: Any) -> _TT
+ steam/enums.py:185: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:185: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/enums.py:200: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:200: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/enums.py:210: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:210: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/enums.py:214: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:214: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:48: error: Module "typing_extensions" has no attribute "Self"  [attr-defined]
- steam/utils.py:141: error: Incompatible types in assignment (expression has type "int", variable has type "Optional[Union[Literal[0], Literal[1], Literal[2], Literal[4]]]")  [assignment]
+ steam/utils.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:408: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/utils.py:415: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:415: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/utils.py:431: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:431: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:438: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/utils.py:484: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:484: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:527: error: Name "_P.args" is not defined  [name-defined]
- steam/utils.py:527: error: Name "_P.kwargs" is not defined  [name-defined]
+ steam/utils.py:547: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:547: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/utils.py:551: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:551: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/utils.py:729: error: Name "_P.args" is not defined  [name-defined]
- steam/utils.py:730: error: Name "_P.kwargs" is not defined  [name-defined]
- steam/protobufs/struct_messages.py:5: error: Module "typing_extensions" has no attribute "Self"  [attr-defined]
+ steam/protobufs/struct_messages.py:13: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/protobufs/struct_messages.py:13: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/protobufs/struct_messages.py:30: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/protobufs/struct_messages.py:30: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/protobufs/struct_messages.py:47: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/protobufs/struct_messages.py:47: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/protobufs/struct_messages.py:60: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/protobufs/struct_messages.py:60: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/trade.py:35: error: Module "typing_extensions" has no attribute "NotRequired"  [attr-defined]
- steam/trade.py:35: error: Module "typing_extensions" has no attribute "Required"  [attr-defined]
+ steam/profile.py:204: error: Cannot override final attribute "__match_args__" (previously declared in base class "EquippedProfileItems")  [misc]
+ steam/profile.py:204: error: Cannot override writable attribute "__match_args__" with a final one  [misc]
+ steam/profile.py:204: error: Definition of "__match_args__" in base class "ProfileInfo" is incompatible with definition in base class "EquippedProfileItems"  [misc]
- steam/trade.py:384: error: Argument 1 to "update" of "TypedDict" has incompatible type "AssetDict"; expected "TypedDict({'instanceid'?: Any, 'classid'?: Any, 'market_name'?: str, 'currency'?: int, 'name'?: str, 'market_hash_name'?: str, 'name_color'?: str, 'background_color'?: str, 'type'?: str, 'descriptions'?: Dict[str, str], 'market_actions'?: List[Dict[str, str]], 'actions'?: List[Dict[str, str]], 'tags'?: List[Dict[str, str]], 'icon_url'?: str, 'icon_url_large'?: str, 'tradable'?: bool, 'marketable'?: bool, 'commodity'?: int, 'fraudwarnings'?: List[str]})"  [typeddict-item]
+ steam/trade.py:384: error: Argument 1 to "update" of "TypedDict" has incompatible type "AssetDict"; expected "TypedDict({'instanceid'?: str, 'classid'?: str, 'market_name'?: str, 'currency'?: int, 'name'?: str, 'market_hash_name'?: str, 'name_color'?: str, 'background_color'?: str, 'type'?: str, 'descriptions'?: Dict[str, str], 'market_actions'?: List[Dict[str, str]], 'actions'?: List[Dict[str, str]], 'tags'?: List[Dict[str, str]], 'icon_url'?: str, 'icon_url_large'?: str, 'tradable'?: bool, 'marketable'?: bool, 'commodity'?: int, 'fraudwarnings'?: List[str]})"  [typeddict-item]
- steam/abc.py:39: error: Module "typing_extensions" has no attribute "Self"  [attr-defined]
+ steam/abc.py:308: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:308: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/abc.py:326: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:326: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
+ steam/abc.py:348: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:348: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/channel.py:33: error: Module "typing_extensions" has no attribute "Self"  [attr-defined]
- steam/channel.py:82: error: Argument 1 to "asynccontextmanager" has incompatible type "Callable[[DMChannel], Generator[None, None, None]]"; expected "Callable[..., AsyncIterator[<nothing>]]"  [arg-type]
+ steam/channel.py:82: error: Argument 1 to "asynccontextmanager" has incompatible type "Callable[[DMChannel], Generator[None, None, None]]"; expected "Callable[[DMChannel], AsyncIterator[<nothing>]]"  [arg-type]
- steam/channel.py:162: note:     def __new__(cls: Type[type], o: object) -> type
+ steam/channel.py:162: note:     def __new__(cls, cls: Type[type], object) -> type
- steam/channel.py:162: note:     def [_TT <: type] __new__(cls: Type[_TT], name: str, bases: Tuple[type, ...], namespace: Dict[str, Any], **kwds: Any) -> _TT
+ steam/channel.py:162: note:     def [_TT <: type] __new__(cls, cls: Type[_TT], str, Tuple[type, ...], Dict[str, Any], **kwds: Any) -> _TT
- steam/channel.py:184: error: Type argument "M_co`1" of "GroupChannelHistoryIterator" must be a subtype of "Union[steam.message.ClanMessage, steam.message.GroupMessage]"  [type-var]
+ steam/channel.py:184: error: Type argument "M_co" of "GroupChannelHistoryIterator" must be a subtype of "Union[ClanMessage, GroupMessage]"  [type-var]
+ steam/channel.py:184: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/channel.py:184: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
- steam/channel.py:185: error: Incompatible return value type (got "GroupChannelHistoryIterator[<nothing>, Any]", expected "GroupChannelHistoryIterator[M_co, Any]")  [return-value]
+ steam/channel.py:185: error: Incompatible return value type (got "GroupChannelHistoryIterator[<nothing>, Self?]", expected "GroupChannelHistoryIterator[M_co, Self?]")  [return-v```

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