mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Migrate core to use ErrorMessage class

Open tushar-deepsource opened this issue 4 years ago • 24 comments

Description

Migrates fastparse.py and fastparse2.py, semanal.py, semanal_*.py and typeanal.py to use the ErrorMessage class.

The initial plan was to do only fastparse and fastparse2, but because of how intertwined the core files are, all of these had to be done in one go.

This is a continuation of the discussion on #10947.

Notes:

  • The fail method of SemanticAnalyzer and SemanticAnalyzerCoreInterface still implements the msg: str code instead of only supporting msg: ErrorMessage, because all the plugins that implement SemanticAnalyzerCoreInterface have yet to be migrated. I could do them in the same PR but the PR is already huge.
  • One message (specifically "Mypy doesn't support match stataments") was not moved to the message registry as it seems temporary.

tushar-deepsource avatar Jan 17 '22 18:01 tushar-deepsource

Well, it seems like typeanal.py also uses the one method that I had to change in nodes.py, so this PR will be migrating all 3 of those files at once, hopefully that's not too big!

tushar-deepsource avatar Jan 17 '22 18:01 tushar-deepsource

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

pylox (https://github.com/sco1/pylox)
- pylox/containers/array.py:168: error: Match statement is not supported  [syntax]
+ pylox/containers/array.py:168: error: Match statement is not supported

github-actions[bot] avatar Jan 17 '22 18:01 github-actions[bot]

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

pydantic (https://github.com/samuelcolvin/pydantic)
+ pydantic/validators.py:581: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]
+ pydantic/validators.py:592: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]
+ pydantic/annotated_types.py:12: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]

psycopg (https://github.com/psycopg/psycopg)
+ tests/fix_db.py:199: error: Unused "type: ignore" comment
+ tests/fix_db.py:199: error: Missing type parameters for generic type "list"  [misc]

anyio (https://github.com/agronholm/anyio)
- src/anyio/_backends/_trio.py:337: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [valid-type]
+ src/anyio/_backends/_trio.py:337: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [misc]
- src/anyio/_backends/_trio.py:715: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [valid-type]
+ src/anyio/_backends/_trio.py:715: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [misc]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/enums.py:74: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:74: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:168: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:168: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:185: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:185: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:200: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:200: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:210: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:210: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:214: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:214: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:178: error: Variable "steam.enums.Type.Individual" is not valid as a type  [valid-type]
+ steam/utils.py:178: error: Variable "steam.enums.Type.Individual" is not valid as a type  [misc]
- steam/utils.py:178: error: Variable "steam.enums.Universe.Public" is not valid as a type  [valid-type]
+ steam/utils.py:178: error: Variable "steam.enums.Universe.Public" is not valid as a type  [misc]
- steam/utils.py:271: error: Variable "steam.enums.Type.Individual" is not valid as a type  [valid-type]
+ steam/utils.py:271: error: Variable "steam.enums.Type.Individual" is not valid as a type  [misc]
- steam/utils.py:271: error: Variable "steam.enums.Universe.Public" is not valid as a type  [valid-type]
+ steam/utils.py:271: error: Variable "steam.enums.Universe.Public" is not valid as a type  [misc]
- steam/utils.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:415: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:415: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:431: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:431: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:484: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:484: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:547: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:547: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:551: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:551: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:286: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/abc.py:286: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/abc.py:308: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:308: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:326: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:326: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:348: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:348: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/channel.py:184: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/channel.py:184: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/event.py:203: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/event.py:203: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/event.py:224: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [valid-type]
+ steam/event.py:224: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [misc]
- steam/event.py:236: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/event.py:236: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/http.py:112: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:112: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/http.py:178: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:178: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/http.py:181: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:181: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/clan.py:531: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/clan.py:531: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/clan.py:552: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [valid-type]
+ steam/clan.py:552: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [misc]
- steam/clan.py:564: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/clan.py:564: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/state.py:104: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/state.py:104: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/state.py:119: error: Variable "steam.models.EventParser" is not valid as a type  [valid-type]
+ steam/state.py:119: error: Variable "steam.models.EventParser" is not valid as a type  [misc]
- steam/ext/commands/cooldown.py:102: error: "list" expects 1 type argument, but 2 given  [type-arg]
+ steam/ext/commands/cooldown.py:102: error: "list" expects 1 type argument, but 2 given  [misc]
- steam/ext/commands/commands.py:79: error: "CommandDeco" expects no type arguments, but 1 given  [type-arg]
+ steam/ext/commands/commands.py:79: error: "CommandDeco" expects no type arguments, but 1 given  [misc]
- steam/ext/commands/commands.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/ext/commands/commands.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/ext/commands/commands.py:847: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/ext/commands/commands.py:847: error: Variable "typing_extensions.Self" is not valid as a type  [misc]

spark (https://github.com/apache/spark)
- python/pyspark/sql/session.py:755: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/session.py:755: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/session.py:762: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/session.py:762: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/session.py:770: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/session.py:770: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/context.py:353: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/context.py:353: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/context.py:360: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/context.py:360: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/context.py:368: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/context.py:368: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:216: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:216: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:249: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:249: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:250: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:250: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:316: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:316: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:317: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:317: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:352: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:352: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:366: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:366: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:367: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:367: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:386: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:386: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:387: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:387: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:405: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:405: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:412: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:412: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:415: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:415: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:422: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:422: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:57: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:57: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:373: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:373: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:380: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:380: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:388: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:388: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:438: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:438: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:542: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:542: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:40: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:40: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:40: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:40: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:70: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:70: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:80: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:80: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:91: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:91: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:103: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:103: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:116: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:116: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:130: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:130: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:145: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:145: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:150: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:150: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:154: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:154: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:155: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:155: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:158: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:158: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:167: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:167: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:177: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:177: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:188: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:188: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:200: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:200: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:213: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:213: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:227: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:227: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:242: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:242: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:247: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:247: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:248: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:248: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:252: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:252: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:253: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:253: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:257: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:257: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:260: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:260: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:261: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:261: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:262: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:262: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:263: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:263: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:264: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:264: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:266: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:266: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:271: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:271: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:272: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:272: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:273: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:273: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:274: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:274: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:275: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:275: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:276: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:276: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:277: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:277: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:283: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:283: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:284: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:284: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:285: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:285: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:286: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:286: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:287: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:287: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:288: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:288: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:289: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:289: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:290: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:290: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:296: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  ```

github-actions[bot] avatar Jan 17 '22 19:01 github-actions[bot]

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

psycopg (https://github.com/psycopg/psycopg)
+ tests/fix_db.py:199: error: Unused "type: ignore" comment
+ tests/fix_db.py:199: error: Missing type parameters for generic type "list"  [misc]

pydantic (https://github.com/samuelcolvin/pydantic)
+ pydantic/validators.py:581: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]
+ pydantic/validators.py:592: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]
+ pydantic/annotated_types.py:12: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]

jax (https://github.com/google/jax)
- 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: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type  [misc]
- 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: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type  [misc]
- jax/_src/source_info_util.py:51: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [valid-type]
+ jax/_src/source_info_util.py:51: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [misc]
- jax/_src/source_info_util.py:63: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [valid-type]
+ jax/_src/source_info_util.py:63: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [misc]
- jax/_src/source_info_util.py:102: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type  [valid-type]
+ jax/_src/source_info_util.py:102: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Device" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Buffer" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Buffer" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Device" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Buffer" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:308: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:308: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:328: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:328: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:333: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:333: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:365: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:365: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:394: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:394: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:419: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:419: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/dispatch.py:80: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:80: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:119: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:119: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:397: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:397: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:404: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:404: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:412: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:412: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:438: error: Variable "jax._src.dispatch.XlaExecutable" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:438: error: Variable "jax._src.dispatch.XlaExecutable" is not valid as a type  [misc]
- jax/_src/dispatch.py:453: error: Variable "jax._src.dispatch.XlaExecutable" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:453: error: Variable "jax._src.dispatch.XlaExecutable" is not valid as a type  [misc]
- jax/_src/dispatch.py:473: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:473: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:595: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:595: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:656: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:656: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:666: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:666: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:687: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:687: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:694: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:694: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:722: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:722: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/interpreters/xla.py:88: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:88: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:94: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:94: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [misc]
- jax/interpreters/xla.py:245: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:245: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:251: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:251: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:560: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:560: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [misc]
- jax/interpreters/xla.py:578: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:578: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [misc]
- jax/interpreters/xla.py:674: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:674: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:702: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:702: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:706: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:706: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:707: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:707: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:725: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:725: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:939: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:939: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [misc]
- jax/interpreters/xla.py:954: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:954: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [misc]
- jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.Unstacked" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.Unstacked" is not valid as a type  [misc]
- jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.Chunked" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.Chunked" is not valid as a type  [misc]
- jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.NoSharding" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.NoSharding" is not valid as a type  [misc]
- jax/interpreters/pxla.py:103: error: Variable "jax.interpreters.pxla.ShardedAxis" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:103: error: Variable "jax.interpreters.pxla.ShardedAxis" is not valid as a type  [misc]
- jax/interpreters/pxla.py:103: error: Variable "jax.interpreters.pxla.Replicated" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:103: error: Variable "jax.interpreters.pxla.Replicated" is not valid as a type  [misc]
- jax/interpreters/pxla.py:251: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:251: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:420: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:420: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:489: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:489: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:569: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:569: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:806: error: Variable "jax.interpreters.xla.Backend" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:806: error: Variable "jax.interpreters.xla.Backend" is not valid as a type  [misc]
- jax/interpreters/pxla.py:810: error: Variable "jax.interpreters.xla.Device" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:810: error: Variable "jax.interpreters.xla.Device" is not valid as a type  [misc]
- jax/interpreters/pxla.py:919: error: Variable "jax.interpreters.xla.Device" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:919: error: Variable "jax.interpreters.xla.Device" is not valid as a type  [misc]
- jax/interpreters/pxla.py:1380: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:1380: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:1466: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:1466: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:1505: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:1505: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/_src/api_util.py:90: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api_util.py:90: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/interpreters/partial_eval.py:1498: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/interpreters/partial_eval.py:1498: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/interpreters/partial_eval.py:1519: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/interpreters/partial_eval.py:1519: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:379: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type  [valid-type]
+ jax/_src/api.py:379: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type  [misc]
- jax/_src/api.py:503: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:503: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:504: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:504: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:548: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:548: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:549: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:549: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:1835: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:1835: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:1836: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:1836: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:2019: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type  [valid-type]
+ jax/_src/api.py:2019: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type  [misc]
- jax/_src/api.py:2024: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/_src/api.py:2024: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/_src/api.py:2028: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/_src/api.py:2028: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:34: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:34: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:66: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:66: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:100: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:100: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:137: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:137: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:141: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:141: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:145: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:145: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:146: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:146: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:231: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:231: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:349: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:349: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:386: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:386: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:386: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:386: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:392: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:392: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/host_callback.py:967: error: Variable "jax.experimental.host_callback.XlaOp" is not valid as a type  [valid-type]
+ jax/experimental/host_callback.py:967: error: Variable "jax.experimental.host_callback.XlaOp" is not valid as a type  [misc]
- jax/experimental/host_callback.py:1764: error: Variable "jax.experimental.host_callback.XlaLocalClient" is not valid as a type  [valid-type]
+ jax/experimental/host_callback.py:1764: error: Variable "jax.experimental.host_callback.XlaLocalClient" is not valid as a type  [misc]
- jax/experimental/host_callback.py:1765: error: Variable "jax.experimental.host_callback.XlaDevice" is not valid as a type  [valid-type]
+ jax/experimental/host_callback.py:1765: error: Variable "jax.experimental.host_callback.XlaDevice" is not valid as a type  [misc]

anyio (https://github.com/agronholm/anyio)
- src/anyio/_backends/_trio.py:337: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [valid-type]
+ src/anyio/_backends/_trio.py:337: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [misc]
- src/anyio/_backends/_trio.py:715: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [valid-type]
+ src/anyio/_backends/_trio.py:715: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [misc]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/enums.py:74: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:74: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:168: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:168: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:185: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:185: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:200: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:200: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:210: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:210: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:214: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:214: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:178: error: Variable "steam.enums.Type.Individual" is not valid as a type  [valid-type]
+ steam/utils.py:178: error: Variable "steam.enums.Type.Individual" is not valid as a type  [misc]
- steam/utils.py:178: error: Variable "steam.enums.Universe.Public" is not valid as a type  [valid-type]
+ steam/utils.py:178: error: Variable "steam.enums.Universe.Public" is not valid as a type  [misc]
- steam/utils.py:271: error: Variable "steam.enums.Type.Individual" is not valid as a type  [valid-type]
+ steam/utils.py:271: error: Variable "steam.enums.Type.Individual" is not valid as a type  [misc]
- steam/utils.py:271: error: Variable "steam.enums.Universe.Public" is not valid as a type  [valid-type]
+ steam/utils.py:271: error: Variable "steam.enums.Universe.Public" is not valid as a type  [misc]
- steam/utils.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:415: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:415: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:431: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:431: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:484: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:484: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:547: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:547: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:551: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:551: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:286: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/abc.py:286: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/abc.py:308: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:308: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:326: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:326: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:348: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:348: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/channel.py:184: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/channel.py:184: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/event.py:203: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/event.py:203: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/event.py:224: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [valid-type]
+ steam/event.py:224: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [misc]
- steam/event.py:236: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/event.py:236: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/http.py:112: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:112: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/http.py:178: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:178: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/http.py:181: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:181: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/clan.py:531: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/clan.py:531: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/clan.py:552: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [valid-type]
+ steam/clan.py:552: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [misc]
- steam/clan.py:564: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/clan.py:564: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/state.py:104: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/state.py:104: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/state.py:119: error: Variable "steam.models.EventParser" is not valid as a type  [valid-type]
+ steam/state.py:119: error: Variable "steam.models.EventParser" is not valid as a type  [misc]
- steam/ext/commands/cooldown.py:102: error: "list" expects 1 type argument, but 2 given  [type-arg]
+ steam/ext/commands/cooldown.py:102: error: "list" expects 1 type argument, but 2 given  [misc]
- steam/ext/commands/commands.py:79: error: "CommandDeco" expects no type arguments, but 1 given  [type-arg]
+ steam/ext/commands/commands.py:79: error: "CommandDeco" expects no type arguments, but 1 given  [misc]
- steam/ext/commands/commands.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/ext/commands/commands.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/ext/commands/commands.py:847: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/ext/commands/commands.py:847: error: Variable "typing_extensions.Self" is not valid as a type  [misc]

spark (https://github.com/apache/spark)
- python/pyspark/sql/session.py:755: erro```

github-actions[bot] avatar Jan 17 '22 19:01 github-actions[bot]

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

psycopg (https://github.com/psycopg/psycopg)
+ tests/fix_db.py:199: error: Unused "type: ignore" comment
+ tests/fix_db.py:199: error: Missing type parameters for generic type "list"  [misc]

pydantic (https://github.com/samuelcolvin/pydantic)
+ pydantic/validators.py:581: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]
+ pydantic/validators.py:592: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]
+ pydantic/annotated_types.py:12: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]

jax (https://github.com/google/jax)
- 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: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type  [misc]
- 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: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type  [misc]
- jax/_src/source_info_util.py:51: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [valid-type]
+ jax/_src/source_info_util.py:51: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [misc]
- jax/_src/source_info_util.py:63: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [valid-type]
+ jax/_src/source_info_util.py:63: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [misc]
- jax/_src/source_info_util.py:102: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type  [valid-type]
+ jax/_src/source_info_util.py:102: error: Variable "jax._src.source_info_util.Traceback" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Device" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Buffer" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Buffer" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Device" is not valid as a type  [misc]
- 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: error: Variable "jax._src.device_array.Buffer" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:308: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:308: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:328: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:328: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:333: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:333: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:365: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:365: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:394: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:394: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/lib/xla_bridge.py:419: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [valid-type]
+ jax/_src/lib/xla_bridge.py:419: error: Variable "jax._src.lib.xla_bridge.XlaBackend" is not valid as a type  [misc]
- jax/_src/dispatch.py:80: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:80: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:119: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:119: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:397: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:397: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:404: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:404: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:412: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:412: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:438: error: Variable "jax._src.dispatch.XlaExecutable" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:438: error: Variable "jax._src.dispatch.XlaExecutable" is not valid as a type  [misc]
- jax/_src/dispatch.py:453: error: Variable "jax._src.dispatch.XlaExecutable" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:453: error: Variable "jax._src.dispatch.XlaExecutable" is not valid as a type  [misc]
- jax/_src/dispatch.py:473: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:473: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:595: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:595: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:656: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:656: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:666: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:666: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:687: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:687: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:694: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:694: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/_src/dispatch.py:722: error: Variable "jax._src.dispatch.Device" is not valid as a type  [valid-type]
+ jax/_src/dispatch.py:722: error: Variable "jax._src.dispatch.Device" is not valid as a type  [misc]
- jax/interpreters/xla.py:88: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:88: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:94: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:94: error: Variable "jax._src.source_info_util.Frame" is not valid as a type  [misc]
- jax/interpreters/xla.py:245: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:245: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:251: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:251: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:560: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:560: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [misc]
- jax/interpreters/xla.py:578: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:578: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [misc]
- jax/interpreters/xla.py:674: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:674: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:702: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:702: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:706: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:706: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:707: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:707: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:725: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:725: error: Variable "jax.interpreters.xla.XlaShape" is not valid as a type  [misc]
- jax/interpreters/xla.py:939: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:939: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [misc]
- jax/interpreters/xla.py:954: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [valid-type]
+ jax/interpreters/xla.py:954: error: Variable "jax.interpreters.xla.XlaOp" is not valid as a type  [misc]
- jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.Unstacked" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.Unstacked" is not valid as a type  [misc]
- jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.Chunked" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.Chunked" is not valid as a type  [misc]
- jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.NoSharding" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:102: error: Variable "jax.interpreters.pxla.NoSharding" is not valid as a type  [misc]
- jax/interpreters/pxla.py:103: error: Variable "jax.interpreters.pxla.ShardedAxis" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:103: error: Variable "jax.interpreters.pxla.ShardedAxis" is not valid as a type  [misc]
- jax/interpreters/pxla.py:103: error: Variable "jax.interpreters.pxla.Replicated" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:103: error: Variable "jax.interpreters.pxla.Replicated" is not valid as a type  [misc]
- jax/interpreters/pxla.py:251: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:251: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:420: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:420: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:489: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:489: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:569: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:569: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:806: error: Variable "jax.interpreters.xla.Backend" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:806: error: Variable "jax.interpreters.xla.Backend" is not valid as a type  [misc]
- jax/interpreters/pxla.py:810: error: Variable "jax.interpreters.xla.Device" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:810: error: Variable "jax.interpreters.xla.Device" is not valid as a type  [misc]
- jax/interpreters/pxla.py:919: error: Variable "jax.interpreters.xla.Device" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:919: error: Variable "jax.interpreters.xla.Device" is not valid as a type  [misc]
- jax/interpreters/pxla.py:1380: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:1380: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:1466: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:1466: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/interpreters/pxla.py:1505: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/interpreters/pxla.py:1505: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/_src/api_util.py:90: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api_util.py:90: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/interpreters/partial_eval.py:1498: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/interpreters/partial_eval.py:1498: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/interpreters/partial_eval.py:1519: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/interpreters/partial_eval.py:1519: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:379: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type  [valid-type]
+ jax/_src/api.py:379: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type  [misc]
- jax/_src/api.py:503: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:503: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:504: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:504: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:548: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:548: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:549: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:549: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:1835: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:1835: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:1836: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [valid-type]
+ jax/_src/api.py:1836: error: Variable "jax._src.tree_util.PyTreeDef" is not valid as a type  [misc]
- jax/_src/api.py:2019: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type  [valid-type]
+ jax/_src/api.py:2019: error: Variable "jax.interpreters.xla.XlaExecutable" is not valid as a type  [misc]
- jax/_src/api.py:2024: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/_src/api.py:2024: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/_src/api.py:2028: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [valid-type]
+ jax/_src/api.py:2028: error: Variable "jax.interpreters.pxla.ShardingSpec" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:34: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:34: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:66: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:66: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:100: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:100: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:137: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:137: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:141: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:141: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:145: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:145: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:146: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:146: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:231: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:231: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:349: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:349: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:386: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:386: error: Variable "jax.experimental.global_device_array.DeviceArray" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:386: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:386: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/global_device_array.py:392: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [valid-type]
+ jax/experimental/global_device_array.py:392: error: Variable "jax.experimental.global_device_array.Device" is not valid as a type  [misc]
- jax/experimental/host_callback.py:967: error: Variable "jax.experimental.host_callback.XlaOp" is not valid as a type  [valid-type]
+ jax/experimental/host_callback.py:967: error: Variable "jax.experimental.host_callback.XlaOp" is not valid as a type  [misc]
- jax/experimental/host_callback.py:1764: error: Variable "jax.experimental.host_callback.XlaLocalClient" is not valid as a type  [valid-type]
+ jax/experimental/host_callback.py:1764: error: Variable "jax.experimental.host_callback.XlaLocalClient" is not valid as a type  [misc]
- jax/experimental/host_callback.py:1765: error: Variable "jax.experimental.host_callback.XlaDevice" is not valid as a type  [valid-type]
+ jax/experimental/host_callback.py:1765: error: Variable "jax.experimental.host_callback.XlaDevice" is not valid as a type  [misc]

anyio (https://github.com/agronholm/anyio)
- src/anyio/_backends/_trio.py:337: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [valid-type]
+ src/anyio/_backends/_trio.py:337: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [misc]
- src/anyio/_backends/_trio.py:715: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [valid-type]
+ src/anyio/_backends/_trio.py:715: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [misc]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/enums.py:74: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:74: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:168: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:168: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:185: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:185: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:200: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:200: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:210: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:210: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:214: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:214: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:178: error: Variable "steam.enums.Type.Individual" is not valid as a type  [valid-type]
+ steam/utils.py:178: error: Variable "steam.enums.Type.Individual" is not valid as a type  [misc]
- steam/utils.py:178: error: Variable "steam.enums.Universe.Public" is not valid as a type  [valid-type]
+ steam/utils.py:178: error: Variable "steam.enums.Universe.Public" is not valid as a type  [misc]
- steam/utils.py:271: error: Variable "steam.enums.Type.Individual" is not valid as a type  [valid-type]
+ steam/utils.py:271: error: Variable "steam.enums.Type.Individual" is not valid as a type  [misc]
- steam/utils.py:271: error: Variable "steam.enums.Universe.Public" is not valid as a type  [valid-type]
+ steam/utils.py:271: error: Variable "steam.enums.Universe.Public" is not valid as a type  [misc]
- steam/utils.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:415: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:415: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:431: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:431: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:484: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:484: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:547: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:547: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:551: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:551: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:286: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/abc.py:286: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/abc.py:308: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:308: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:326: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:326: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:348: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:348: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/channel.py:184: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/channel.py:184: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/event.py:203: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/event.py:203: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/event.py:224: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [valid-type]
+ steam/event.py:224: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [misc]
- steam/event.py:236: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/event.py:236: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/http.py:112: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:112: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/http.py:178: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:178: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/http.py:181: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:181: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/clan.py:531: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/clan.py:531: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/clan.py:552: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [valid-type]
+ steam/clan.py:552: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [misc]
- steam/clan.py:564: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/clan.py:564: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/state.py:104: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/state.py:104: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/state.py:119: error: Variable "steam.models.EventParser" is not valid as a type  [valid-type]
+ steam/state.py:119: error: Variable "steam.models.EventParser" is not valid as a type  [misc]
- steam/ext/commands/cooldown.py:102: error: "list" expects 1 type argument, but 2 given  [type-arg]
+ steam/ext/commands/cooldown.py:102: error: "list" expects 1 type argument, but 2 given  [misc]
- steam/ext/commands/commands.py:79: error: "CommandDeco" expects no type arguments, but 1 given  [type-arg]
+ steam/ext/commands/commands.py:79: error: "CommandDeco" expects no type arguments, but 1 given  [misc]
- steam/ext/commands/commands.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/ext/commands/commands.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/ext/commands/commands.py:847: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/ext/commands/commands.py:847: error: Variable "typing_extensions.Self" is not valid as a type  [misc]

spark (https://github.com/apache/spark)
- python/pyspark/sql/session.py:755: erro```

github-actions[bot] avatar Jan 17 '22 19:01 github-actions[bot]

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

psycopg (https://github.com/psycopg/psycopg)
+ psycopg/psycopg/pq/__init__.py:75: 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.940+dev.ce50b0e72adb6cac334ff1bdfe3a4a5ed0b17695
+ psycopg/psycopg/pq/__init__.py:75: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 96, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 180, in build
+     result = _build(
+   File "/build.py", line 256, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2715, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3046, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3138, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 79, in semantic_analysis_for_scc
+     process_functions(graph, scc, patches)
+   File "/semanal_main.py", line 233, in process_functions
+     process_top_level_function(analyzer,
+   File "/semanal_main.py", line 274, in process_top_level_function
+     deferred, incomplete, progress = semantic_analyze_target(target, state, node, active_type,
+   File "/semanal_main.py", line 326, in semantic_analyze_target
+     analyzer.refresh_partial(refresh_node,
+   File "/semanal.py", line 416, in refresh_partial
+     self.accept(node)
+   File "/semanal.py", line 5163, in accept
+     node.accept(self)
+   File "/nodes.py", line 732, in accept
+     return visitor.visit_func_def(self)
+   File "/semanal.py", line 629, in visit_func_def
+     self.analyze_func_def(defn)
+   File "/semanal.py", line 672, in analyze_func_def
+     self.analyze_function_body(defn)
+   File "/semanal.py", line 996, in analyze_function_body
+     defn.body.accept(self)
+   File "/nodes.py", line 1079, in accept
+     return visitor.visit_block(self)
+   File "/semanal.py", line 3563, in visit_block
+     self.accept(s)
+   File "/semanal.py", line 5163, in accept
+     node.accept(self)
+   File "/nodes.py", line 1303, in accept
+     return visitor.visit_if_stmt(self)
+   File "/semanal.py", line 3648, in visit_if_stmt
+     self.visit_block(s.body[i])
+   File "/semanal.py", line 3563, in visit_block
+     self.accept(s)
+   File "/semanal.py", line 5163, in accept
+     node.accept(self)
+   File "/nodes.py", line 1346, in accept
+     return visitor.visit_try_stmt(self)
+   File "/semanal.py", line 3653, in visit_try_stmt
+     self.analyze_try_stmt(s, self)
+   File "/semanal.py", line 3656, in analyze_try_stmt
+     s.body.accept(visitor)
+   File "/nodes.py", line 1079, in accept
+     return visitor.visit_block(self)
+   File "/semanal.py", line 3563, in visit_block
+     self.accept(s)
+   File "/semanal.py", line 5163, in accept
+     node.accept(self)
+   File "/nodes.py", line 414, in accept
+     return visitor.visit_import_from(self)
+   File "/semanal.py", line 1883, in visit_import_from
+     self.report_missing_module_attribute(
+   File "/semanal.py", line 1961, in report_missing_module_attribute
+     message = message.format(import_id, source_id, suggestion)
+ UnboundLocalError: local variable 'suggestion' referenced before assignment

arviz (https://github.com/arviz-devs/arviz)
+ /tmp/mypy_primer/projects/_arviz_venv/lib/python3.10/site-packages/xarray/core/npcompat.py:85: 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.940+dev.ce50b0e72adb6cac334ff1bdfe3a4a5ed0b17695
- arviz/plots/tsplot.py:286: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "List[Any]")
- arviz/plots/tsplot.py:287: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "List[Any]")
- arviz/plots/tsplot.py:317: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "Optional[List[Any]]")
- arviz/plots/tsplot.py:318: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "Optional[List[Any]]")
- arviz/plots/tsplot.py:342: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "Optional[List[Any]]")
- arviz/plots/tsplot.py:343: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "Optional[List[Any]]")
- arviz/plots/tsplot.py:381: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "Optional[List[Any]]")
- arviz/plots/tsplot.py:382: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "Optional[List[Any]]")
- arviz/plots/tsplot.py:383: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "Optional[List[Any]]")
- arviz/data/io_pymc3_3x.py:47: error: Unused "type: ignore" comment
- arviz/data/io_pymc3_3x.py:48: error: Unused "type: ignore" comment
- examples/matplotlib/mpl_plot_violin.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_violin.py:15: error: Call to untyped function "plot_violin" in typed context
- examples/matplotlib/mpl_plot_trace_vlines.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_trace_circ.py:13: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_trace_bars.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_trace.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_separation.py:13: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_separation.py:15: error: Call to untyped function "plot_separation" in typed context
- examples/matplotlib/mpl_plot_rank.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_rank.py:15: error: Call to untyped function "plot_rank" in typed context
- examples/matplotlib/mpl_plot_ppc_cumulative.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_ppc_cumulative.py:15: error: Call to untyped function "plot_ppc" in typed context
- examples/matplotlib/mpl_plot_ppc.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_ppc.py:15: error: Call to untyped function "plot_ppc" in typed context
- examples/matplotlib/mpl_plot_posterior.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_posterior.py:17: error: Call to untyped function "plot_posterior" in typed context
- examples/matplotlib/mpl_plot_parallel_rank.py:13: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_parallel_rank.py:14: error: Call to untyped function "plot_parallel" in typed context
- examples/matplotlib/mpl_plot_parallel_normal.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_parallel_normal.py:15: error: Call to untyped function "plot_parallel" in typed context
- examples/matplotlib/mpl_plot_parallel_minmax.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_parallel_minmax.py:15: error: Call to untyped function "plot_parallel" in typed context
- examples/matplotlib/mpl_plot_parallel.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_parallel.py:15: error: Call to untyped function "plot_parallel" in typed context
- examples/matplotlib/mpl_plot_pair_point_estimate.py:12: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_pair_kde_hdi.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_pair_kde.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_pair_hex.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_pair.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_mcse_errorbar.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_mcse_errorbar.py:15: error: Call to untyped function "plot_mcse" in typed context
- examples/matplotlib/mpl_plot_mcse.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_mcse.py:15: error: Call to untyped function "plot_mcse" in typed context
- examples/matplotlib/mpl_plot_loo_pit_overlay.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_loo_pit_overlay.py:16: error: Call to untyped function "plot_loo_pit" in typed context
- examples/matplotlib/mpl_plot_loo_pit_ecdf.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_loo_pit_ecdf.py:16: error: Call to untyped function "plot_loo_pit" in typed context
- examples/matplotlib/mpl_plot_lm.py:15: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_lm.py:22: error: Call to untyped function "plot_lm" in typed context
- examples/matplotlib/mpl_plot_khat.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_khat.py:15: error: Call to untyped function "loo" in typed context
- examples/matplotlib/mpl_plot_khat.py:17: error: Call to untyped function "plot_khat" in typed context
- examples/matplotlib/mpl_plot_kde_quantiles.py:16: error: Call to untyped function "plot_kde" in typed context
- examples/matplotlib/mpl_plot_kde_2d_hdi.py:18: error: Call to untyped function "plot_kde" in typed context
- examples/matplotlib/mpl_plot_kde_2d_bis.py:14: error: Call to untyped function "plot_kde" in typed context
- examples/matplotlib/mpl_plot_kde_2d.py:15: error: Call to untyped function "plot_kde" in typed context
- examples/matplotlib/mpl_plot_kde.py:15: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_kde.py:20: error: Call to untyped function "plot_kde" in typed context
- examples/matplotlib/mpl_plot_joint.py:15: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_hdi.py:17: error: Call to untyped function "plot_hdi" in typed context
- examples/matplotlib/mpl_plot_forest_ridge.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_forest_ridge.py:15: error: Call to untyped function "plot_forest" in typed context
- examples/matplotlib/mpl_plot_forest.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_forest.py:15: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_forest.py:16: error: Call to untyped function "plot_forest" in typed context
- examples/matplotlib/mpl_plot_ess_quantile.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_ess_quantile.py:16: error: Call to untyped function "plot_ess" in typed context
- examples/matplotlib/mpl_plot_ess_local.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_ess_local.py:16: error: Call to untyped function "plot_ess" in typed context
- examples/matplotlib/mpl_plot_ess_evolution.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_ess_evolution.py:16: error: Call to untyped function "plot_ess" in typed context
- examples/matplotlib/mpl_plot_energy.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_energy.py:15: error: Call to untyped function "plot_energy" in typed context
- examples/matplotlib/mpl_plot_elpd.py:13: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_elpd.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_elpd.py:16: error: Call to untyped function "plot_elpd" in typed context
- examples/matplotlib/mpl_plot_dot.py:16: error: Call to untyped function "plot_dot" in typed context
- examples/matplotlib/mpl_plot_dist.py:19: error: Call to untyped function "plot_dist" in typed context
- examples/matplotlib/mpl_plot_dist.py:20: error: Call to untyped function "plot_dist" in typed context
- examples/matplotlib/mpl_plot_density.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_density.py:15: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_density.py:16: error: Call to untyped function "plot_density" in typed context
- examples/matplotlib/mpl_plot_compare.py:17: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_compare.py:18: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_compare.py:21: error: Call to untyped function "plot_compare" in typed context
- examples/matplotlib/mpl_plot_bpv_tstat.py:13: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_bpv_tstat.py:14: error: Call to untyped function "plot_bpv" in typed context
- examples/matplotlib/mpl_plot_bpv.py:13: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_bpv.py:14: error: Call to untyped function "plot_bpv" in typed context
- examples/matplotlib/mpl_plot_autocorr.py:14: error: Call to untyped function "load_arviz_data" in typed context
- examples/matplotlib/mpl_plot_autocorr.py:15: error: Call to untyped function "plot_autocorr" in typed context
- examples/bokeh/bokeh_plot_violin.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_violin.py:10: error: Call to untyped function "plot_violin" in typed context
- examples/bokeh/bokeh_plot_trace_vlines.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_trace_bars.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_trace.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_separation.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_separation.py:11: error: Call to untyped function "plot_separation" in typed context
- examples/bokeh/bokeh_plot_rank.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_rank.py:10: error: Call to untyped function "plot_rank" in typed context
- examples/bokeh/bokeh_plot_ppc_cumulative.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_ppc_cumulative.py:10: error: Call to untyped function "plot_ppc" in typed context
- examples/bokeh/bokeh_plot_ppc.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_ppc.py:10: error: Call to untyped function "plot_ppc" in typed context
- examples/bokeh/bokeh_plot_posterior.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_posterior.py:12: error: Call to untyped function "plot_posterior" in typed context
- examples/bokeh/bokeh_plot_parallel_rank.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_parallel_rank.py:10: error: Call to untyped function "plot_parallel" in typed context
- examples/bokeh/bokeh_plot_parallel_normal.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_parallel_normal.py:10: error: Call to untyped function "plot_parallel" in typed context
- examples/bokeh/bokeh_plot_parallel_minmax.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_parallel_minmax.py:10: error: Call to untyped function "plot_parallel" in typed context
- examples/bokeh/bokeh_plot_parallel.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_parallel.py:10: error: Call to untyped function "plot_parallel" in typed context
- examples/bokeh/bokeh_plot_pair_point_estimate.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_pair_kde_hdi.py:12: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_pair_kde.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_pair_hex.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_pair.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_mcse_errorbar.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_mcse_errorbar.py:10: error: Call to untyped function "plot_mcse" in typed context
- examples/bokeh/bokeh_plot_mcse.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_mcse.py:10: error: Call to untyped function "plot_mcse" in typed context
- examples/bokeh/bokeh_plot_loo_pit_overlay.py:10: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_loo_pit_overlay.py:12: error: Call to untyped function "plot_loo_pit" in typed context
- examples/bokeh/bokeh_plot_loo_pit_ecdf.py:10: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_loo_pit_ecdf.py:12: error: Call to untyped function "plot_loo_pit" in typed context
- examples/bokeh/bokeh_plot_lm.py:11: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_lm.py:19: error: Call to untyped function "plot_lm" in typed context
- examples/bokeh/bokeh_plot_khat.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_khat.py:10: error: Call to untyped function "loo" in typed context
- examples/bokeh/bokeh_plot_khat.py:12: error: Call to untyped function "plot_khat" in typed context
- examples/bokeh/bokeh_plot_kde_quantiles.py:12: error: Call to untyped function "plot_kde" in typed context
- examples/bokeh/bokeh_plot_kde_2d_hdi.py:17: error: Call to untyped function "plot_kde" in typed context
- examples/bokeh/bokeh_plot_kde_2d_bis.py:13: error: Call to untyped function "plot_kde" in typed context
- examples/bokeh/bokeh_plot_kde_2d.py:11: error: Call to untyped function "plot_kde" in typed context
- examples/bokeh/bokeh_plot_kde.py:12: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_kde.py:20: error: Call to untyped function "plot_kde" in typed context
- examples/bokeh/bokeh_plot_joint.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_hdi.py:17: error: Call to untyped function "plot_hdi" in typed context
- examples/bokeh/bokeh_plot_forest_ridge.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_forest_ridge.py:10: error: Call to untyped function "plot_forest" in typed context
- examples/bokeh/bokeh_plot_forest.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_forest.py:10: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_forest.py:11: error: Call to untyped function "plot_forest" in typed context
- examples/bokeh/bokeh_plot_ess_quantile.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_ess_quantile.py:11: error: Call to untyped function "plot_ess" in typed context
- examples/bokeh/bokeh_plot_ess_local.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_ess_local.py:11: error: Call to untyped function "plot_ess" in typed context
- examples/bokeh/bokeh_plot_ess_evolution.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_ess_evolution.py:11: error: Call to untyped function "plot_ess" in typed context
- examples/bokeh/bokeh_plot_energy.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_energy.py:10: error: Call to untyped function "plot_energy" in typed context
- examples/bokeh/bokeh_plot_elpd.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_elpd.py:10: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_elpd.py:12: error: Call to untyped function "plot_elpd" in typed context
- examples/bokeh/bokeh_plot_dot.py:12: error: Call to untyped function "plot_dot" in typed context
- examples/bokeh/bokeh_plot_dist.py:20: error: Call to untyped function "plot_dist" in typed context
- examples/bokeh/bokeh_plot_dist.py:21: error: Call to untyped function "plot_dist" in typed context
- examples/bokeh/bokeh_plot_density.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_density.py:10: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_density.py:11: error: Call to untyped function "plot_density" in typed context
- examples/bokeh/bokeh_plot_compare.py:11: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_compare.py:12: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_compare.py:15: error: Call to untyped function "plot_compare" in typed context
- examples/bokeh/bokeh_plot_bpv_tstat.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_bpv_tstat.py:10: error: Call to untyped function "plot_bpv" in typed context
- examples/bokeh/bokeh_plot_bpv.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_bpv.py:10: error: Call to untyped function "plot_bpv" in typed context
- examples/bokeh/bokeh_plot_autocorr.py:9: error: Call to untyped function "load_arviz_data" in typed context
- examples/bokeh/bokeh_plot_autocorr.py:10: error: Call to untyped function "plot_autocorr" in typed context
- doc/sphinxext/gallery_generator.py:168: error: Function is missing a type annotation
- doc/sphinxext/gallery_generator.py:194: error: Function is missing a type annotation
- doc/sphinxext/gallery_generator.py:204: error: Function is missing a type annotation
- doc/sphinxext/gallery_generator.py:211: error: Call to untyped function "extract_docstring" in typed context
- doc/sphinxext/gallery_generator.py:221: error: Call to untyped function "exec_file" in typed context
- doc/sphinxext/gallery_generator.py:233: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:237: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:249: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:253: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:257: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:261: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:266: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:271: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:283: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:287: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:290: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:303: error: Incompatible types in assignment (expression has type "str", variable has type "int")
- doc/sphinxext/gallery_generator.py:352: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:352: note: Use "-> None" if function does not return a value
- doc/sphinxext/gallery_generator.py:370: error: Call to untyped function "create_thumbnail" in typed context
- doc/sphinxext/gallery_generator.py:375: error: Call to untyped function "rc_context" in typed context
- doc/sphinxext/gallery_generator.py:378: error: Function is missing a return type annotation
- doc/sphinxext/gallery_generator.py:391: error: Function is missing a type annotation
- doc/sphinxext/gallery_generator.py:447: error: Call to untyped function "ExampleGenerator" in typed context
- doc/sphinxext/gallery_generator.py:466: error: Call to untyped function "toctree_entry" in typed context
- doc/sphinxext/gallery_generator.py:487: error: Function is missing a type annotation
- doc/source/conf.py:28: error: Call to untyped function "disable_numba" of "Numba" in typed context
- doc/source/conf.py:300: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:16: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:19: error: Call to untyped function "enable_numba" of "Numba" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:21: error: Call to untyped function "disable_numba" of "Numba" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:23: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:31: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:34: error: Call to untyped function "enable_numba" of "Numba" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:36: error: Call to untyped function "disable_numba" of "Numba" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:38: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:39: error: Call to untyped function "stats_variance_2d" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:46: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:53: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:54: error: Call to untyped function (unknown) in typed context
- asv_benchmarks/benchmarks/benchmarks.py:61: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:64: error: Call to untyped function "enable_numba" of "Numba" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:66: error: Call to untyped function "disable_numba" of "Numba" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:68: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:69: error: Call to untyped function "kde" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:76: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:80: error: Call to untyped function "enable_numba" of "Numba" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:82: error: Call to untyped function "disable_numba" of "Numba" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:84: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:85: error: Call to untyped function "_fast_kde_2d" in typed context
- asv_benchmarks/benchmarks/benchmarks.py:92: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:102: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:103: error: Call to untyped function (unknown) in typed context
- asv_benchmarks/benchmarks/benchmarks.py:105: error: Function is missing a type annotation
- asv_benchmarks/benchmarks/benchmarks.py:106: error: Call to untyped function (unknown) in typed context
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 96, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 180, in build
+     result = _build(
+   File "/build.py", line 256, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2715, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3046, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3138, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 78, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.p```

github-actions[bot] avatar Jan 18 '22 11:01 github-actions[bot]

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

psycopg (https://github.com/psycopg/psycopg)
+ tests/fix_db.py:199: error: Unused "type: ignore" comment
+ tests/fix_db.py:199: error: Missing type parameters for generic type "list"  [misc]

pydantic (https://github.com/samuelcolvin/pydantic)
+ pydantic/validators.py:581: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]
+ pydantic/validators.py:592: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]
+ pydantic/annotated_types.py:12: error: Variable "typing_extensions.TypedDict" is not valid as a type  [misc]

anyio (https://github.com/agronholm/anyio)
- src/anyio/_backends/_trio.py:337: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [valid-type]
+ src/anyio/_backends/_trio.py:337: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [misc]
- src/anyio/_backends/_trio.py:715: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [valid-type]
+ src/anyio/_backends/_trio.py:715: error: Variable "anyio._backends._trio.RunVar" is not valid as a type  [misc]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/enums.py:74: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:74: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:139: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:168: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:168: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:185: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:185: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:200: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:200: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:210: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:210: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/enums.py:214: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/enums.py:214: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:178: error: Variable "steam.enums.Type.Individual" is not valid as a type  [valid-type]
+ steam/utils.py:178: error: Variable "steam.enums.Type.Individual" is not valid as a type  [misc]
- steam/utils.py:178: error: Variable "steam.enums.Universe.Public" is not valid as a type  [valid-type]
+ steam/utils.py:178: error: Variable "steam.enums.Universe.Public" is not valid as a type  [misc]
- steam/utils.py:271: error: Variable "steam.enums.Type.Individual" is not valid as a type  [valid-type]
+ steam/utils.py:271: error: Variable "steam.enums.Type.Individual" is not valid as a type  [misc]
- steam/utils.py:271: error: Variable "steam.enums.Universe.Public" is not valid as a type  [valid-type]
+ steam/utils.py:271: error: Variable "steam.enums.Universe.Public" is not valid as a type  [misc]
- steam/utils.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:408: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:415: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:415: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:431: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:431: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:438: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:484: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:484: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:547: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:547: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/utils.py:551: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/utils.py:551: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- 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: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:286: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/abc.py:286: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/abc.py:308: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:308: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:326: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:326: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/abc.py:348: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/abc.py:348: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/channel.py:184: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/channel.py:184: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/event.py:203: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/event.py:203: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/event.py:224: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [valid-type]
+ steam/event.py:224: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [misc]
- steam/event.py:236: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/event.py:236: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/http.py:112: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:112: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/http.py:178: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:178: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/http.py:181: error: Variable "steam.http.StrOrURL" is not valid as a type  [valid-type]
+ steam/http.py:181: error: Variable "steam.http.StrOrURL" is not valid as a type  [misc]
- steam/clan.py:531: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/clan.py:531: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/clan.py:552: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [valid-type]
+ steam/clan.py:552: error: Variable "steam.enums.ClanEvent.Game" is not valid as a type  [misc]
- steam/clan.py:564: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [valid-type]
+ steam/clan.py:564: error: Variable "steam.enums.ClanEvent.Other" is not valid as a type  [misc]
- steam/state.py:104: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/state.py:104: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/state.py:119: error: Variable "steam.models.EventParser" is not valid as a type  [valid-type]
+ steam/state.py:119: error: Variable "steam.models.EventParser" is not valid as a type  [misc]
- steam/ext/commands/cooldown.py:102: error: "list" expects 1 type argument, but 2 given  [type-arg]
+ steam/ext/commands/cooldown.py:102: error: "list" expects 1 type argument, but 2 given  [misc]
- steam/ext/commands/commands.py:79: error: "CommandDeco" expects no type arguments, but 1 given  [type-arg]
+ steam/ext/commands/commands.py:79: error: "CommandDeco" expects no type arguments, but 1 given  [misc]
- steam/ext/commands/commands.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/ext/commands/commands.py:256: error: Variable "typing_extensions.Self" is not valid as a type  [misc]
- steam/ext/commands/commands.py:847: error: Variable "typing_extensions.Self" is not valid as a type  [valid-type]
+ steam/ext/commands/commands.py:847: error: Variable "typing_extensions.Self" is not valid as a type  [misc]

spark (https://github.com/apache/spark)
- python/pyspark/sql/session.py:755: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/session.py:755: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/session.py:762: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/session.py:762: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/session.py:770: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/session.py:770: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/context.py:353: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/context.py:353: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/context.py:360: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/context.py:360: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/context.py:368: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/context.py:368: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:216: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:216: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:249: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:249: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:250: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:250: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:316: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:316: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:317: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:317: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:352: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:352: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:366: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:366: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:367: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:367: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:386: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:386: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:387: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:387: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:405: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:405: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:412: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:412: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:415: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:415: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/types.py:422: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/types.py:422: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:57: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:57: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:373: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:373: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:380: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:380: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:388: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:388: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:438: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:438: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/conversion.py:542: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/conversion.py:542: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:40: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:40: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:40: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:40: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:70: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:70: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:80: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:80: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:91: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:91: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:103: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:103: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:116: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:116: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:130: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:130: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:145: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:145: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:150: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:150: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:154: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:154: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:155: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:155: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:158: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:158: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:167: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:167: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:177: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:177: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:188: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:188: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:200: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:200: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:213: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:213: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:227: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:227: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:242: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:242: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:247: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:247: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:248: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:248: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:252: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:252: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:253: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:253: error: Variable "pyspark.sql.pandas._typing.DataFrameLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:257: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:257: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:260: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:260: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:261: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:261: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:262: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:262: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:263: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:263: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:264: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:264: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:266: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:266: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:271: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:271: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:272: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:272: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:273: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:273: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:274: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:274: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:275: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:275: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:276: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:276: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:277: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:277: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:283: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:283: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:284: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:284: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:285: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:285: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:286: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:286: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:287: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:287: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:288: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:288: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:289: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:289: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:290: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [valid-type]
+ python/pyspark/sql/pandas/_typing/__init__.pyi:290: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  [misc]
- python/pyspark/sql/pandas/_typing/__init__.pyi:296: error: Variable "pyspark.sql.pandas._typing.SeriesLike" is not valid as a type  ```

github-actions[bot] avatar Jan 18 '22 11:01 github-actions[bot]

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

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/trade.py:76: error: Required[] can be only used in a TypedDict definition  [misc]
+ steam/trade.py:77: error: Required[] can be only used in a TypedDict definition  [misc]
+ steam/trade.py:140: error: NotRequired[] can be only used in a TypedDict definition  [misc]
+ steam/trade.py:141: error: NotRequired[] can be only used in a TypedDict definition  [misc]
- 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/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/ext/commands/bot.py:671: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]
+ steam/ext/commands/bot.py:671: error: An overloaded function outside a stub file must have an implementation  [misc]

werkzeug (https://github.com/pallets/werkzeug)
- tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [attr-defined]
+ tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [misc]

pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/mark/structures.py:405: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]
- src/_pytest/mark/structures.py:423: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]

urllib3 (https://github.com/urllib3/urllib3)
+ test/test_connection.py:8: error: Unused "type: ignore" comment
+ test/test_connection.py:8: error: Module "urllib3.connection" does not explicitly export attribute "CertificateError"; implicit reexport disabled  [misc]
+ test/test_response.py:25: error: Unused "type: ignore" comment
+ test/test_response.py:25: error: Module "urllib3.response" does not explicitly export attribute "brotli"; implicit reexport disabled  [misc]

spack (https://github.com/spack/spack)
+ lib/spack/external/jsonschema/_types.py:49: 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.940+dev.892c20fdbe82f51c4cefe0572d1cf16bde8161f6
+ lib/spack/external/jsonschema/_types.py:49: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 96, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 180, in build
+     result = _build(
+   File "/build.py", line 256, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2715, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3046, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3138, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 78, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 199, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(next_id, state,
+   File "/semanal_main.py", line 326, in semantic_analyze_target
+     analyzer.refresh_partial(refresh_node,
+   File "/semanal.py", line 413, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 424, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 5170, in accept
+     node.accept(self)
+   File "/nodes.py", line 1010, in accept
+     return visitor.visit_class_def(self)
+   File "/semanal.py", line 1106, in visit_class_def
+     self.analyze_class(defn)
+   File "/semanal.py", line 1184, in analyze_class
+     self.analyze_class_body_common(defn)
+   File "/semanal.py", line 1193, in analyze_class_body_common
+     self.apply_class_plugin_hooks(defn)
+   File "/semanal.py", line 1239, in apply_class_plugin_hooks
+     hook(ClassDefContext(defn, decorator, self))
+   File "/plugins/attrs.py", line 294, in attr_class_maker_callback
+     attributes = _analyze_class(ctx, auto_attribs, kw_only)
+   File "/plugins/attrs.py", line 353, in _analyze_class
+     for attr in _attributes_from_assignment(ctx, stmt, auto_attribs, kw_only):
+   File "/plugins/attrs.py", line 471, in _attributes_from_assignment
+     attr = _attribute_from_attrib_maker(ctx, auto_attribs, kw_only, lhs, rvalue, stmt)
+   File "/plugins/attrs.py", line 581, in _attribute_from_attrib_maker
+     converter_info = _parse_converter(ctx, converter)
+   File "/plugins/attrs.py", line 616, in _parse_converter
+     ctx.api.fail(
+   File "/semanal.py", line 5158, in fail
+     assert isinstance(msg, ErrorMessage)
+ AssertionError: 

core (https://github.com/home-assistant/core)
- Warning: unused section(s) in mypy.ini: [mypy-tests.*]
+ homeassistant/components/zha/core/registries.py:117: 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.940+dev.892c20fdbe82f51c4cefe0572d1cf16bde8161f6
+ homeassistant/components/zha/core/registries.py:117: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 96, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 180, in build
+     result = _build(
+   File "/build.py", line 256, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2715, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3046, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3138, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 78, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 199, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(next_id, state,
+   File "/semanal_main.py", line 326, in semantic_analyze_target
+     analyzer.refresh_partial(refresh_node,
+   File "/semanal.py", line 413, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 424, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 5170, in accept
+     node.accept(self)
+   File "/nodes.py", line 1010, in accept
+     return visitor.visit_class_def(self)
+   File "/semanal.py", line 1106, in visit_class_def
+     self.analyze_class(defn)
+   File "/semanal.py", line 1184, in analyze_class
+     self.analyze_class_body_common(defn)
+   File "/semanal.py", line 1193, in analyze_class_body_common
+     self.apply_class_plugin_hooks(defn)
+   File "/semanal.py", line 1239, in apply_class_plugin_hooks
+     hook(ClassDefContext(defn, decorator, self))
+   File "/plugins/attrs.py", line 294, in attr_class_maker_callback
+     attributes = _analyze_class(ctx, auto_attribs, kw_only)
+   File "/plugins/attrs.py", line 353, in _analyze_class
+     for attr in _attributes_from_assignment(ctx, stmt, auto_attribs, kw_only):
+   File "/plugins/attrs.py", line 471, in _attributes_from_assignment
+     attr = _attribute_from_attrib_maker(ctx, auto_attribs, kw_only, lhs, rvalue, stmt)
+   File "/plugins/attrs.py", line 581, in _attribute_from_attrib_maker
+     converter_info = _parse_converter(ctx, converter)
+   File "/plugins/attrs.py", line 616, in _parse_converter
+     ctx.api.fail(
+   File "/semanal.py", line 5158, in fail
+     assert isinstance(msg, ErrorMessage)
+ AssertionError: 
- homeassistant/components/velbus/climate.py:50: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/velbus/climate.py:67: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/unifiprotect/sensor.py:78: error: Returning Any from function declared to return "Optional[datetime]"  [no-any-return]
- homeassistant/components/unifiprotect/sensor.py:92: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/unifiprotect/select.py:141: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/unifiprotect/select.py:151: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/unifiprotect/select.py:157: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/tolo/climate.py:79: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tolo/climate.py:84: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tolo/climate.py:89: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tolo/climate.py:94: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tailscale/sensor.py:44: error: Returning Any from function declared to return "Union[datetime, str, None]"  [no-any-return]
- homeassistant/components/tailscale/sensor.py:57: error: Returning Any from function declared to return "Union[datetime, str, None]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:43: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:50: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:57: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:64: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:71: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:78: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:85: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/steamist/switch.py:38: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/steamist/sensor.py:52: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/steamist/sensor.py:59: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/shelly/entity.py:375: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/shelly/entity.py:655: error: Unused "type: ignore" comment
- homeassistant/components/rtsp_to_webrtc/__init__.py:70: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:62: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:84: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:103: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:122: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/number.py:53: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/binary_sensor.py:53: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:122: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:152: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:160: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:162: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:172: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:181: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/camera_sdm.py:150: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/nest/camera_sdm.py:220: error: Returning Any from function declared to return "Optional[bytes]"  [no-any-return]
- homeassistant/components/nest/camera_sdm.py:244: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/knx/config_flow.py:437: error: Returning Any from function declared to return "List[Any]"  [no-any-return]
- homeassistant/components/flux_led/entity.py:120: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/flux_led/discovery.py:87: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/flux_led/discovery.py:106: error: Unused "type: ignore" comment
- homeassistant/components/flux_led/discovery.py:108: error: Unused "type: ignore" comment
- homeassistant/components/flux_led/discovery.py:184: error: Returning Any from function declared to return "List[Any]"  [no-any-return]
- homeassistant/components/esphome/switch.py:41: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/switch.py:46: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/sensor.py:80: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/sensor.py:98: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/sensor.py:105: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/sensor.py:131: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/select.py:41: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/select.py:48: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/number.py:57: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/number.py:62: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/number.py:67: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/number.py:72: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/number.py:78: error: Returning Any from function declared to return "NumberMode"  [no-any-return]
- homeassistant/components/esphome/number.py:88: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/light.py:144: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/light.py:149: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/light.py:343: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/light.py:348: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/light.py:352: error: Returning Any from function declared to return "List[int]"  [no-any-return]
- homeassistant/components/esphome/light.py:382: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/light.py:387: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/light.py:392: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/fan.py:70: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/fan.py:122: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/fan.py:132: error: Unused "type: ignore" comment
- homeassistant/components/esphome/fan.py:144: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/esphome/fan.py:151: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/fan.py:158: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/cover.py:65: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/cover.py:70: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/cover.py:76: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/cover.py:81: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/cover.py:86: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/climate.py:184: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:192: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:209: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/climate.py:214: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/climate.py:219: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/climate.py:240: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:248: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:253: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:260: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:267: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:272: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/climate.py:277: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/climate.py:282: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/climate.py:287: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/camera.py:65: error: Returning Any from function declared to return "Optional[bytes]"  [no-any-return]
- homeassistant/components/esphome/camera.py:77: error: Returning Any from function declared to return "Optional[bytes]"  [no-any-return]
- homeassistant/components/esphome/binary_sensor.py:45: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/binary_sensor.py:52: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/aseko_pool_live/sensor.py:75: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/amcrest/camera.py:540: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:557: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:562: error: Unused "type: ignore" comment
- homeassistant/components/amcrest/camera.py:574: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:578: error: Unused "type: ignore" comment
- homeassistant/components/amcrest/camera.py:585: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:616: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/__init__.py:130: error: Class cannot subclass "ApiWrapper" (has type "Any")  [misc]
- homeassistant/components/shelly/cover.py:76: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/shelly/cover.py:84: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/renault/sensor.py:203: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:51: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:60: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:69: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:78: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:87: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/sensor.py:424: error: Returning Any from function declared to return "Union[None, str, int, float]"  [no-any-return]
- homeassistant/components/overkiz/lock.py:47: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/overkiz/light.py:62: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:45: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:52: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:59: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:66: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:74: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:81: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:88: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:95: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:102: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/open_meteo/weather.py:66: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/open_meteo/weather.py:73: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/open_meteo/weather.py:80: error: Returning Any from function declared to return "Union[float, str, None]"  [no-any-return]
- homeassistant/components/nest/media_source.py:103: error: Class cannot subclass "EventMediaStore" (has type "Any")  [misc]
- homeassistant/components/knx/__init__.py:475: error: Unused "type: ignore" comment
- homeassistant/components/knx/__init__.py:507: error: Unused "type: ignore" comment
- homeassistant/components/flux_led/switch.py:132: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/flux_led/sensor.py:46: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/select.py:130: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:135: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:155: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:160: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:174: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:179: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/flux_led/number.py:188: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:196: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:215: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:223: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:249: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:258: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:277: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:286: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/light.py:218: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/light.py:228: error: Returning Any from function declared to return "Tuple[int, int, int]"  [no-any-return]
- homeassistant/components/flux_led/light.py:233: error: Returning Any from function declared to return "Tuple[int, int, int, int]"  [no-any-return]
- homeassistant/components/flux_led/light.py:238: error: Returning Any from function declared to return "Tuple[int, int, int, int, int]"  [no-any-return]
- homeassistant/components/flux_led/light.py:250: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/knx/knx_entity.py:26: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/dlna_dmr```

github-actions[bot] avatar Jan 18 '22 11:01 github-actions[bot]

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

werkzeug (https://github.com/pallets/werkzeug)
- tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [attr-defined]
+ tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [misc]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/trade.py:76: error: Required[] can be only used in a TypedDict definition  [misc]
+ steam/trade.py:77: error: Required[] can be only used in a TypedDict definition  [misc]
+ steam/trade.py:140: error: NotRequired[] can be only used in a TypedDict definition  [misc]
+ steam/trade.py:141: error: NotRequired[] can be only used in a TypedDict definition  [misc]
- 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/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/ext/commands/bot.py:671: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]
+ steam/ext/commands/bot.py:671: error: An overloaded function outside a stub file must have an implementation  [misc]

pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/mark/structures.py:405: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]
- src/_pytest/mark/structures.py:423: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]

urllib3 (https://github.com/urllib3/urllib3)
+ test/test_connection.py:8: error: Unused "type: ignore" comment
+ test/test_connection.py:8: error: Module "urllib3.connection" does not explicitly export attribute "CertificateError"; implicit reexport disabled  [misc]
+ test/test_response.py:25: error: Unused "type: ignore" comment
+ test/test_response.py:25: error: Module "urllib3.response" does not explicitly export attribute "brotli"; implicit reexport disabled  [misc]

spack (https://github.com/spack/spack)
+ lib/spack/external/jsonschema/_types.py:49: 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.940+dev.5a96d0886307c2da34b78da1d813ddafd6cda93b
+ lib/spack/external/jsonschema/_types.py:49: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 96, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 180, in build
+     result = _build(
+   File "/build.py", line 256, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2715, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3046, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3138, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 78, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 199, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(next_id, state,
+   File "/semanal_main.py", line 326, in semantic_analyze_target
+     analyzer.refresh_partial(refresh_node,
+   File "/semanal.py", line 413, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 424, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 5170, in accept
+     node.accept(self)
+   File "/nodes.py", line 1010, in accept
+     return visitor.visit_class_def(self)
+   File "/semanal.py", line 1106, in visit_class_def
+     self.analyze_class(defn)
+   File "/semanal.py", line 1184, in analyze_class
+     self.analyze_class_body_common(defn)
+   File "/semanal.py", line 1193, in analyze_class_body_common
+     self.apply_class_plugin_hooks(defn)
+   File "/semanal.py", line 1239, in apply_class_plugin_hooks
+     hook(ClassDefContext(defn, decorator, self))
+   File "/plugins/attrs.py", line 294, in attr_class_maker_callback
+     attributes = _analyze_class(ctx, auto_attribs, kw_only)
+   File "/plugins/attrs.py", line 353, in _analyze_class
+     for attr in _attributes_from_assignment(ctx, stmt, auto_attribs, kw_only):
+   File "/plugins/attrs.py", line 471, in _attributes_from_assignment
+     attr = _attribute_from_attrib_maker(ctx, auto_attribs, kw_only, lhs, rvalue, stmt)
+   File "/plugins/attrs.py", line 581, in _attribute_from_attrib_maker
+     converter_info = _parse_converter(ctx, converter)
+   File "/plugins/attrs.py", line 616, in _parse_converter
+     ctx.api.fail(
+   File "/semanal.py", line 5158, in fail
+     assert isinstance(msg, ErrorMessage)
+ AssertionError: 

core (https://github.com/home-assistant/core)
- Warning: unused section(s) in mypy.ini: [mypy-tests.*]
+ homeassistant/components/zha/core/registries.py:117: 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.940+dev.5a96d0886307c2da34b78da1d813ddafd6cda93b
+ homeassistant/components/zha/core/registries.py:117: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 96, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 180, in build
+     result = _build(
+   File "/build.py", line 256, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2715, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3046, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3138, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 78, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 199, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(next_id, state,
+   File "/semanal_main.py", line 326, in semantic_analyze_target
+     analyzer.refresh_partial(refresh_node,
+   File "/semanal.py", line 413, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 424, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 5170, in accept
+     node.accept(self)
+   File "/nodes.py", line 1010, in accept
+     return visitor.visit_class_def(self)
+   File "/semanal.py", line 1106, in visit_class_def
+     self.analyze_class(defn)
+   File "/semanal.py", line 1184, in analyze_class
+     self.analyze_class_body_common(defn)
+   File "/semanal.py", line 1193, in analyze_class_body_common
+     self.apply_class_plugin_hooks(defn)
+   File "/semanal.py", line 1239, in apply_class_plugin_hooks
+     hook(ClassDefContext(defn, decorator, self))
+   File "/plugins/attrs.py", line 294, in attr_class_maker_callback
+     attributes = _analyze_class(ctx, auto_attribs, kw_only)
+   File "/plugins/attrs.py", line 353, in _analyze_class
+     for attr in _attributes_from_assignment(ctx, stmt, auto_attribs, kw_only):
+   File "/plugins/attrs.py", line 471, in _attributes_from_assignment
+     attr = _attribute_from_attrib_maker(ctx, auto_attribs, kw_only, lhs, rvalue, stmt)
+   File "/plugins/attrs.py", line 581, in _attribute_from_attrib_maker
+     converter_info = _parse_converter(ctx, converter)
+   File "/plugins/attrs.py", line 616, in _parse_converter
+     ctx.api.fail(
+   File "/semanal.py", line 5158, in fail
+     assert isinstance(msg, ErrorMessage)
+ AssertionError: 
- homeassistant/components/velbus/climate.py:50: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/velbus/climate.py:67: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/unifiprotect/sensor.py:78: error: Returning Any from function declared to return "Optional[datetime]"  [no-any-return]
- homeassistant/components/unifiprotect/sensor.py:92: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/unifiprotect/select.py:141: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/unifiprotect/select.py:151: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/unifiprotect/select.py:157: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/tolo/climate.py:79: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tolo/climate.py:84: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tolo/climate.py:89: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tolo/climate.py:94: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tailscale/sensor.py:44: error: Returning Any from function declared to return "Union[datetime, str, None]"  [no-any-return]
- homeassistant/components/tailscale/sensor.py:57: error: Returning Any from function declared to return "Union[datetime, str, None]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:43: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:50: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:57: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:64: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:71: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:78: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:85: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/steamist/switch.py:38: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/steamist/sensor.py:52: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/steamist/sensor.py:59: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/shelly/entity.py:375: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/shelly/entity.py:655: error: Unused "type: ignore" comment
- homeassistant/components/rtsp_to_webrtc/__init__.py:70: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:62: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:84: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:103: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:122: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/number.py:53: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/binary_sensor.py:53: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:122: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:152: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:160: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:162: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:172: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:181: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/camera_sdm.py:150: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/nest/camera_sdm.py:220: error: Returning Any from function declared to return "Optional[bytes]"  [no-any-return]
- homeassistant/components/nest/camera_sdm.py:244: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/knx/config_flow.py:437: error: Returning Any from function declared to return "List[Any]"  [no-any-return]
- homeassistant/components/flux_led/entity.py:120: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/flux_led/discovery.py:87: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/flux_led/discovery.py:106: error: Unused "type: ignore" comment
- homeassistant/components/flux_led/discovery.py:108: error: Unused "type: ignore" comment
- homeassistant/components/flux_led/discovery.py:184: error: Returning Any from function declared to return "List[Any]"  [no-any-return]
- homeassistant/components/esphome/switch.py:41: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/switch.py:46: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/sensor.py:80: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/sensor.py:98: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/sensor.py:105: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/sensor.py:131: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/select.py:41: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/select.py:48: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/number.py:57: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/number.py:62: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/number.py:67: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/number.py:72: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/number.py:78: error: Returning Any from function declared to return "NumberMode"  [no-any-return]
- homeassistant/components/esphome/number.py:88: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/light.py:144: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/light.py:149: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/light.py:343: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/light.py:348: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/light.py:352: error: Returning Any from function declared to return "List[int]"  [no-any-return]
- homeassistant/components/esphome/light.py:382: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/light.py:387: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/light.py:392: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/fan.py:70: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/fan.py:122: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/fan.py:132: error: Unused "type: ignore" comment
- homeassistant/components/esphome/fan.py:144: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/esphome/fan.py:151: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/fan.py:158: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/cover.py:65: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/cover.py:70: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/cover.py:76: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/cover.py:81: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/cover.py:86: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/climate.py:184: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:192: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:209: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/climate.py:214: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/climate.py:219: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/climate.py:240: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:248: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:253: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:260: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:267: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:272: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/climate.py:277: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/climate.py:282: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/climate.py:287: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/camera.py:65: error: Returning Any from function declared to return "Optional[bytes]"  [no-any-return]
- homeassistant/components/esphome/camera.py:77: error: Returning Any from function declared to return "Optional[bytes]"  [no-any-return]
- homeassistant/components/esphome/binary_sensor.py:45: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/binary_sensor.py:52: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/aseko_pool_live/sensor.py:75: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/amcrest/camera.py:540: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:557: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:562: error: Unused "type: ignore" comment
- homeassistant/components/amcrest/camera.py:574: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:578: error: Unused "type: ignore" comment
- homeassistant/components/amcrest/camera.py:585: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:616: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/__init__.py:130: error: Class cannot subclass "ApiWrapper" (has type "Any")  [misc]
- homeassistant/components/shelly/cover.py:76: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/shelly/cover.py:84: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/renault/sensor.py:203: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:51: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:60: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:69: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:78: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:87: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/sensor.py:424: error: Returning Any from function declared to return "Union[None, str, int, float]"  [no-any-return]
- homeassistant/components/overkiz/lock.py:47: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/overkiz/light.py:62: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:45: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:52: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:59: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:66: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:74: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:81: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:88: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:95: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:102: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/open_meteo/weather.py:66: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/open_meteo/weather.py:73: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/open_meteo/weather.py:80: error: Returning Any from function declared to return "Union[float, str, None]"  [no-any-return]
- homeassistant/components/nest/media_source.py:103: error: Class cannot subclass "EventMediaStore" (has type "Any")  [misc]
- homeassistant/components/knx/__init__.py:475: error: Unused "type: ignore" comment
- homeassistant/components/knx/__init__.py:507: error: Unused "type: ignore" comment
- homeassistant/components/flux_led/switch.py:132: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/flux_led/sensor.py:46: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/select.py:130: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:135: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:155: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:160: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:174: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:179: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/flux_led/number.py:188: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:196: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:215: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:223: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:249: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:258: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:277: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:286: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/light.py:218: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/light.py:228: error: Returning Any from function declared to return "Tuple[int, int, int]"  [no-any-return]
- homeassistant/components/flux_led/light.py:233: error: Returning Any from function declared to return "Tuple[int, int, int, int]"  [no-any-return]
- homeassistant/components/flux_led/light.py:238: error: Returning Any from function declared to return "Tuple[int, int, int, int, int]"  [no-any-return]
- homeassistant/components/flux_led/light.py:250: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/knx/knx_entity.py:26: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/dlna_dmr```

github-actions[bot] avatar Jan 18 '22 11:01 github-actions[bot]

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

werkzeug (https://github.com/pallets/werkzeug)
- tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [attr-defined]
+ tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [misc]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/ext/commands/bot.py:671: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]
+ steam/ext/commands/bot.py:671: error: An overloaded function outside a stub file must have an implementation  [misc]

pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/mark/structures.py:405: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]
- src/_pytest/mark/structures.py:423: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]

urllib3 (https://github.com/urllib3/urllib3)
+ test/test_connection.py:8: error: Unused "type: ignore" comment
+ test/test_connection.py:8: error: Module "urllib3.connection" does not explicitly export attribute "CertificateError"; implicit reexport disabled  [misc]
+ test/test_response.py:25: error: Unused "type: ignore" comment
+ test/test_response.py:25: error: Module "urllib3.response" does not explicitly export attribute "brotli"; implicit reexport disabled  [misc]

spack (https://github.com/spack/spack)
+ lib/spack/external/jsonschema/_types.py:49: 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.940+dev.8b0195353e9454609c3327340168f4764bf6cb84
+ lib/spack/external/jsonschema/_types.py:49: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 96, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 180, in build
+     result = _build(
+   File "/build.py", line 256, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2715, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3046, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3138, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 78, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 199, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(next_id, state,
+   File "/semanal_main.py", line 326, in semantic_analyze_target
+     analyzer.refresh_partial(refresh_node,
+   File "/semanal.py", line 413, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 424, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 5170, in accept
+     node.accept(self)
+   File "/nodes.py", line 1010, in accept
+     return visitor.visit_class_def(self)
+   File "/semanal.py", line 1106, in visit_class_def
+     self.analyze_class(defn)
+   File "/semanal.py", line 1184, in analyze_class
+     self.analyze_class_body_common(defn)
+   File "/semanal.py", line 1193, in analyze_class_body_common
+     self.apply_class_plugin_hooks(defn)
+   File "/semanal.py", line 1239, in apply_class_plugin_hooks
+     hook(ClassDefContext(defn, decorator, self))
+   File "/plugins/attrs.py", line 294, in attr_class_maker_callback
+     attributes = _analyze_class(ctx, auto_attribs, kw_only)
+   File "/plugins/attrs.py", line 353, in _analyze_class
+     for attr in _attributes_from_assignment(ctx, stmt, auto_attribs, kw_only):
+   File "/plugins/attrs.py", line 471, in _attributes_from_assignment
+     attr = _attribute_from_attrib_maker(ctx, auto_attribs, kw_only, lhs, rvalue, stmt)
+   File "/plugins/attrs.py", line 581, in _attribute_from_attrib_maker
+     converter_info = _parse_converter(ctx, converter)
+   File "/plugins/attrs.py", line 616, in _parse_converter
+     ctx.api.fail(
+   File "/semanal.py", line 5158, in fail
+     assert isinstance(msg, ErrorMessage)
+ AssertionError: 

core (https://github.com/home-assistant/core)
- Warning: unused section(s) in mypy.ini: [mypy-tests.*]
+ homeassistant/components/zha/core/registries.py:117: 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.940+dev.8b0195353e9454609c3327340168f4764bf6cb84
+ homeassistant/components/zha/core/registries.py:117: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 8, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 12, in console_entry
+     main(None, sys.stdout, sys.stderr)
+   File "/main.py", line 96, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 173, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 180, in build
+     result = _build(
+   File "/build.py", line 256, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2715, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3046, in process_graph
+     process_stale_scc(graph, scc, manager)
+   File "/build.py", line 3138, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 78, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 199, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(next_id, state,
+   File "/semanal_main.py", line 326, in semantic_analyze_target
+     analyzer.refresh_partial(refresh_node,
+   File "/semanal.py", line 413, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 424, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 5170, in accept
+     node.accept(self)
+   File "/nodes.py", line 1010, in accept
+     return visitor.visit_class_def(self)
+   File "/semanal.py", line 1106, in visit_class_def
+     self.analyze_class(defn)
+   File "/semanal.py", line 1184, in analyze_class
+     self.analyze_class_body_common(defn)
+   File "/semanal.py", line 1193, in analyze_class_body_common
+     self.apply_class_plugin_hooks(defn)
+   File "/semanal.py", line 1239, in apply_class_plugin_hooks
+     hook(ClassDefContext(defn, decorator, self))
+   File "/plugins/attrs.py", line 294, in attr_class_maker_callback
+     attributes = _analyze_class(ctx, auto_attribs, kw_only)
+   File "/plugins/attrs.py", line 353, in _analyze_class
+     for attr in _attributes_from_assignment(ctx, stmt, auto_attribs, kw_only):
+   File "/plugins/attrs.py", line 471, in _attributes_from_assignment
+     attr = _attribute_from_attrib_maker(ctx, auto_attribs, kw_only, lhs, rvalue, stmt)
+   File "/plugins/attrs.py", line 581, in _attribute_from_attrib_maker
+     converter_info = _parse_converter(ctx, converter)
+   File "/plugins/attrs.py", line 616, in _parse_converter
+     ctx.api.fail(
+   File "/semanal.py", line 5158, in fail
+     assert isinstance(msg, ErrorMessage)
+ AssertionError: 
- homeassistant/components/velbus/climate.py:50: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/velbus/climate.py:67: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/unifiprotect/sensor.py:78: error: Returning Any from function declared to return "Optional[datetime]"  [no-any-return]
- homeassistant/components/unifiprotect/sensor.py:92: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/unifiprotect/select.py:141: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/unifiprotect/select.py:151: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/unifiprotect/select.py:157: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/tolo/climate.py:79: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tolo/climate.py:84: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tolo/climate.py:89: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tolo/climate.py:94: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/tailscale/sensor.py:44: error: Returning Any from function declared to return "Union[datetime, str, None]"  [no-any-return]
- homeassistant/components/tailscale/sensor.py:57: error: Returning Any from function declared to return "Union[datetime, str, None]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:43: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:50: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:57: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:64: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:71: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:78: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/tailscale/binary_sensor.py:85: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/steamist/switch.py:38: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/steamist/sensor.py:52: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/steamist/sensor.py:59: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/shelly/entity.py:375: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/shelly/entity.py:655: error: Unused "type: ignore" comment
- homeassistant/components/rtsp_to_webrtc/__init__.py:70: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:62: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:84: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:103: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/sensor.py:122: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/number.py:53: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/rituals_perfume_genie/binary_sensor.py:53: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:122: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:152: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:160: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:162: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:172: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/climate_sdm.py:181: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/nest/camera_sdm.py:150: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/nest/camera_sdm.py:220: error: Returning Any from function declared to return "Optional[bytes]"  [no-any-return]
- homeassistant/components/nest/camera_sdm.py:244: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/knx/config_flow.py:437: error: Returning Any from function declared to return "List[Any]"  [no-any-return]
- homeassistant/components/flux_led/entity.py:120: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/flux_led/discovery.py:87: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/flux_led/discovery.py:106: error: Unused "type: ignore" comment
- homeassistant/components/flux_led/discovery.py:108: error: Unused "type: ignore" comment
- homeassistant/components/flux_led/discovery.py:184: error: Returning Any from function declared to return "List[Any]"  [no-any-return]
- homeassistant/components/esphome/switch.py:41: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/switch.py:46: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/sensor.py:80: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/sensor.py:98: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/sensor.py:105: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/sensor.py:131: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/select.py:41: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/select.py:48: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/number.py:57: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/number.py:62: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/number.py:67: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/number.py:72: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/number.py:78: error: Returning Any from function declared to return "NumberMode"  [no-any-return]
- homeassistant/components/esphome/number.py:88: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/light.py:144: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/light.py:149: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/light.py:343: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/light.py:348: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/light.py:352: error: Returning Any from function declared to return "List[int]"  [no-any-return]
- homeassistant/components/esphome/light.py:382: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/light.py:387: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/light.py:392: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/fan.py:70: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/fan.py:122: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/fan.py:132: error: Unused "type: ignore" comment
- homeassistant/components/esphome/fan.py:144: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/esphome/fan.py:151: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/fan.py:158: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/cover.py:65: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/cover.py:70: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/cover.py:76: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/cover.py:81: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/cover.py:86: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/esphome/climate.py:184: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:192: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:209: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/climate.py:214: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/climate.py:219: error: Returning Any from function declared to return "float"  [no-any-return]
- homeassistant/components/esphome/climate.py:240: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:248: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:253: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:260: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:267: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/esphome/climate.py:272: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/climate.py:277: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/climate.py:282: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/climate.py:287: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/esphome/camera.py:65: error: Returning Any from function declared to return "Optional[bytes]"  [no-any-return]
- homeassistant/components/esphome/camera.py:77: error: Returning Any from function declared to return "Optional[bytes]"  [no-any-return]
- homeassistant/components/esphome/binary_sensor.py:45: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/esphome/binary_sensor.py:52: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/aseko_pool_live/sensor.py:75: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/amcrest/camera.py:540: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:557: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:562: error: Unused "type: ignore" comment
- homeassistant/components/amcrest/camera.py:574: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:578: error: Unused "type: ignore" comment
- homeassistant/components/amcrest/camera.py:585: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/camera.py:616: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/amcrest/__init__.py:130: error: Class cannot subclass "ApiWrapper" (has type "Any")  [misc]
- homeassistant/components/shelly/cover.py:76: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/shelly/cover.py:84: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/renault/sensor.py:203: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:51: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:60: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:69: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:78: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/switch.py:87: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/sensor.py:424: error: Returning Any from function declared to return "Union[None, str, int, float]"  [no-any-return]
- homeassistant/components/overkiz/lock.py:47: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/overkiz/light.py:62: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:45: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:52: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:59: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:66: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:74: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:81: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:88: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:95: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/overkiz/binary_sensor.py:102: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/open_meteo/weather.py:66: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/open_meteo/weather.py:73: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/open_meteo/weather.py:80: error: Returning Any from function declared to return "Union[float, str, None]"  [no-any-return]
- homeassistant/components/nest/media_source.py:103: error: Class cannot subclass "EventMediaStore" (has type "Any")  [misc]
- homeassistant/components/knx/__init__.py:475: error: Unused "type: ignore" comment
- homeassistant/components/knx/__init__.py:507: error: Unused "type: ignore" comment
- homeassistant/components/flux_led/switch.py:132: error: Returning Any from function declared to return "bool"  [no-any-return]
- homeassistant/components/flux_led/sensor.py:46: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/select.py:130: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:135: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:155: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:160: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:174: error: Returning Any from function declared to return "List[str]"  [no-any-return]
- homeassistant/components/flux_led/select.py:179: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/flux_led/number.py:188: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:196: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:215: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:223: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:249: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:258: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:277: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/number.py:286: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/light.py:218: error: Returning Any from function declared to return "int"  [no-any-return]
- homeassistant/components/flux_led/light.py:228: error: Returning Any from function declared to return "Tuple[int, int, int]"  [no-any-return]
- homeassistant/components/flux_led/light.py:233: error: Returning Any from function declared to return "Tuple[int, int, int, int]"  [no-any-return]
- homeassistant/components/flux_led/light.py:238: error: Returning Any from function declared to return "Tuple[int, int, int, int, int]"  [no-any-return]
- homeassistant/components/flux_led/light.py:250: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/knx/knx_entity.py:26: error: Returning Any from function declared to return "str"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:520: error: Returning Any from function declared to return "Optional[float]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:533: error: Returning Any from function declared to return "Optional[bool]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:706: error: Returning Any from function declared to return "Optional[List[str]]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:720: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:727: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:734: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:748: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:755: error: Returning Any from function declared to return "Optional[int]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:765: error: Returning Any from function declared to return "Optional[datetime]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:772: error: Returning Any from function declared to return "Optional[str]"  [no-any-return]
- homeassistant/components/dlna_dmr/media_player.py:779: error: Returning Any from function declared to return "Optional[str]```

github-actions[bot] avatar Jan 18 '22 11:01 github-actions[bot]

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

steam.py (https://github.com/Gobot1234/steam.py)
- steam/ext/commands/bot.py:671: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]
+ steam/ext/commands/bot.py:671: error: An overloaded function outside a stub file must have an implementation  [misc]

werkzeug (https://github.com/pallets/werkzeug)
- tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [attr-defined]
+ tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [misc]

pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/mark/structures.py:405: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]
- src/_pytest/mark/structures.py:423: error: An overloaded function outside a stub file must have an implementation  [no-overload-impl]

urllib3 (https://github.com/urllib3/urllib3)
+ test/test_connection.py:8: error: Unused "type: ignore" comment
+ test/test_connection.py:8: error: Module "urllib3.connection" does not explicitly export attribute "CertificateError"; implicit reexport disabled  [misc]
+ test/test_response.py:25: error: Unused "type: ignore" comment
+ test/test_response.py:25: error: Module "urllib3.response" does not explicitly export attribute "brotli"; implicit reexport disabled  [misc]

streamlit (https://github.com/streamlit/streamlit)
- lib/tests/streamlit/script_request_queue_test.py:23:1: error: Module "streamlit.script_runner" does not explicitly export attribute "ScriptRequest"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/script_request_queue_test.py:23:1: error: Module "streamlit.script_runner" does not explicitly export attribute "ScriptRequest"; implicit reexport disabled  [misc]
- lib/tests/streamlit/forward_msg_queue_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/forward_msg_queue_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [misc]
- lib/tests/streamlit/forward_msg_cache_test.py:20:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/forward_msg_cache_test.py:20:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [misc]
- lib/tests/streamlit/config_option_test.py:20:1: error: Module "streamlit.config_option" does not explicitly export attribute "DeprecationError"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/config_option_test.py:20:1: error: Module "streamlit.config_option" does not explicitly export attribute "DeprecationError"; implicit reexport disabled  [misc]
- lib/tests/streamlit/caching/memo_test.py:22:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/caching/memo_test.py:22:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [misc]
- lib/tests/streamlit/text_input_test.py:20:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/text_input_test.py:20:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [misc]
- lib/tests/streamlit/session_data_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/session_data_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [misc]
- lib/tests/streamlit/server_test.py:32:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/server_test.py:32:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [misc]
- lib/tests/streamlit/components_test.py:27:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/components_test.py:27:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [misc]
- lib/tests/streamlit/caching/common_cache_test.py:24:1: error: Module "streamlit.caching" does not explicitly export attribute "MEMO_CALL_STACK"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/caching/common_cache_test.py:24:1: error: Module "streamlit.caching" does not explicitly export attribute "MEMO_CALL_STACK"; implicit reexport disabled  [misc]
- lib/tests/streamlit/caching/common_cache_test.py:24:1: error: Module "streamlit.caching" does not explicitly export attribute "SINGLETON_CALL_STACK"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/caching/common_cache_test.py:24:1: error: Module "streamlit.caching" does not explicitly export attribute "SINGLETON_CALL_STACK"; implicit reexport disabled  [misc]
- lib/tests/streamlit/bootstrap_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "SECRETS_FILE_LOC"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/bootstrap_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "SECRETS_FILE_LOC"; implicit reexport disabled  [misc]

github-actions[bot] avatar Jan 18 '22 11:01 github-actions[bot]

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

urllib3 (https://github.com/urllib3/urllib3)
+ test/test_connection.py:8: error: Unused "type: ignore" comment
+ test/test_connection.py:8: error: Module "urllib3.connection" does not explicitly export attribute "CertificateError"; implicit reexport disabled  [misc]
+ test/test_response.py:25: error: Unused "type: ignore" comment
+ test/test_response.py:25: error: Module "urllib3.response" does not explicitly export attribute "brotli"; implicit reexport disabled  [misc]

werkzeug (https://github.com/pallets/werkzeug)
- tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [attr-defined]
+ tests/test_debug.py:9: error: Module "werkzeug.debug" does not explicitly export attribute "get_current_traceback"; implicit reexport disabled  [misc]

streamlit (https://github.com/streamlit/streamlit)
- lib/tests/streamlit/script_request_queue_test.py:23:1: error: Module "streamlit.script_runner" does not explicitly export attribute "ScriptRequest"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/script_request_queue_test.py:23:1: error: Module "streamlit.script_runner" does not explicitly export attribute "ScriptRequest"; implicit reexport disabled  [misc]
- lib/tests/streamlit/forward_msg_queue_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/forward_msg_queue_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [misc]
- lib/tests/streamlit/forward_msg_cache_test.py:20:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/forward_msg_cache_test.py:20:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [misc]
- lib/tests/streamlit/config_option_test.py:20:1: error: Module "streamlit.config_option" does not explicitly export attribute "DeprecationError"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/config_option_test.py:20:1: error: Module "streamlit.config_option" does not explicitly export attribute "DeprecationError"; implicit reexport disabled  [misc]
- lib/tests/streamlit/caching/memo_test.py:22:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/caching/memo_test.py:22:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [misc]
- lib/tests/streamlit/text_input_test.py:20:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/text_input_test.py:20:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [misc]
- lib/tests/streamlit/session_data_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/session_data_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [misc]
- lib/tests/streamlit/server_test.py:32:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/server_test.py:32:1: error: Module "streamlit" does not explicitly export attribute "RootContainer"; implicit reexport disabled  [misc]
- lib/tests/streamlit/components_test.py:27:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/components_test.py:27:1: error: Module "streamlit" does not explicitly export attribute "StreamlitAPIException"; implicit reexport disabled  [misc]
- lib/tests/streamlit/caching/common_cache_test.py:24:1: error: Module "streamlit.caching" does not explicitly export attribute "MEMO_CALL_STACK"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/caching/common_cache_test.py:24:1: error: Module "streamlit.caching" does not explicitly export attribute "MEMO_CALL_STACK"; implicit reexport disabled  [misc]
- lib/tests/streamlit/caching/common_cache_test.py:24:1: error: Module "streamlit.caching" does not explicitly export attribute "SINGLETON_CALL_STACK"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/caching/common_cache_test.py:24:1: error: Module "streamlit.caching" does not explicitly export attribute "SINGLETON_CALL_STACK"; implicit reexport disabled  [misc]
- lib/tests/streamlit/bootstrap_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "SECRETS_FILE_LOC"; implicit reexport disabled  [attr-defined]
+ lib/tests/streamlit/bootstrap_test.py:23:1: error: Module "streamlit" does not explicitly export attribute "SECRETS_FILE_LOC"; implicit reexport disabled  [misc]

github-actions[bot] avatar Jan 18 '22 13:01 github-actions[bot]

@sobolevn would you be able to review this? The longer it takes to get reviewed the more work I'd have to keep putting in to maintain the PR

tushar-deepsource avatar Feb 07 '22 09:02 tushar-deepsource

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Feb 07 '22 09:02 github-actions[bot]

Merging this will make many other PRs to merge conflicts

The merge conflicts will be easy fixes, and will teach the contributors about the new error message model, I think that's a good thing

We now associate message contents with variable names, this might get out of sync quite quickly

It's fine to change variable name and message text together. When issue codes (unique identifier for each message) are added to ErrorMessage objects, only they need to remain constant for a relatively long time.

tusharsadhwani avatar Feb 07 '22 11:02 tusharsadhwani

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Feb 07 '22 11:02 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Feb 07 '22 12:02 github-actions[bot]

This seems invasive enough that I'd want to get @JukkaL's signoff.

JelleZijlstra avatar Feb 09 '22 02:02 JelleZijlstra

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Feb 22 '22 08:02 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Feb 22 '22 09:02 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Apr 25 '22 08:04 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Apr 25 '22 08:04 github-actions[bot]

@JukkaL PTAL, #10959 is already merged for example, this is just a continuation of the effort (with more to come)

tushar-deepsource avatar Apr 25 '22 09:04 tushar-deepsource

Friendly bump, it's been a year since I first started these set of PRs, and I really want to finish this refactor, to be able to add support for issue codes to mypy.

tushar-deepsource avatar Aug 02 '22 09:08 tushar-deepsource

I'm redoing this PR in a bunch of granular versions instead, starting with #14753.

Hope that will make it easier to get reviewed.

tusharsadhwani avatar Feb 21 '23 19:02 tusharsadhwani