Skip to content

Conversation

@randolf-scholz
Copy link
Contributor

Fixes #15271

@randolf-scholz randolf-scholz marked this pull request as draft January 16, 2026 19:05
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

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

pandera (https://github.com/pandera-dev/pandera)
+ pandera/schema_statistics/pandas.py:81: error: Need type annotation for "options"  [var-annotated]

mypy (https://github.com/python/mypy)
+ mypy/dmypy/client.py:582: error: Need type annotation for "telemetry"  [var-annotated]
+ mypy/dmypy/client.py:582: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-var-annotated for more info

freqtrade (https://github.com/freqtrade/freqtrade)
+ freqtrade/freqai/torch/PyTorchMLPModel.py:41: error: Argument 2 to "get" of "dict" has incompatible type "float"; expected "int"  [arg-type]
+ freqtrade/configuration/deprecated_settings.py:44: error: Need type annotation for "section1_config"  [var-annotated]
+ freqtrade/loggers/__init__.py:138: error: Unsupported target for indexed assignment ("Any | object")  [index]
+ freqtrade/loggers/__init__.py:162: error: Unsupported target for indexed assignment ("Any | object")  [index]
+ freqtrade/loggers/__init__.py:173: error: Unsupported right operand type for in ("Any | object")  [operator]
+ freqtrade/loggers/__init__.py:174: error: Value of type "Any | object" is not indexable  [index]
+ freqtrade/loggers/__init__.py:176: error: Unsupported target for indexed assignment ("Any | object")  [index]
+ freqtrade/loggers/__init__.py:186: error: Item "object" of "Any | object" has no attribute "values"  [union-attr]
+ freqtrade/configuration/load_config.py:93: error: Need type annotation for "files_loaded" (hint: "files_loaded: list[<type>] = ...")  [var-annotated]
+ freqtrade/rpc/fiat_convert.py:49: error: Need type annotation for "_coingecko_config"  [var-annotated]
+ freqtrade/configuration/config_validation.py:193: error: Need type annotation for "ask_strategy"  [var-annotated]
+ freqtrade/configuration/config_validation.py:221: error: Need type annotation for "time_in_force"  [var-annotated]
+ freqtrade/configuration/config_validation.py:242: error: Need type annotation for "order_types"  [var-annotated]
+ freqtrade/configuration/config_validation.py:277: error: Need type annotation for "unfilledtimeout"  [var-annotated]
+ freqtrade/configuration/config_validation.py:339: error: Need type annotation for "freqai_include_timeframes"  [var-annotated]
+ freqtrade/configuration/config_validation.py:358: error: Need type annotation for "feature_parameters"  [var-annotated]
+ freqtrade/configuration/config_validation.py:389: error: Need type annotation for "emc_conf"  [var-annotated]
+ freqtrade/commands/list_commands.py:259: error: Need type annotation for "base_currencies"  [var-annotated]
+ freqtrade/commands/list_commands.py:260: error: Need type annotation for "quote_currencies"  [var-annotated]
+ freqtrade/strategy/hyper.py:70: error: Need type annotation for "trailing"  [var-annotated]
+ freqtrade/exchange/exchange.py:587: error: Unsupported operand types for < ("float" and "None")  [operator]
+ freqtrade/exchange/exchange.py:587: note: Left operand is of type "Any | None"
+ freqtrade/exchange/exchange.py:613: error: Need type annotation for "market"  [var-annotated]
+ freqtrade/exchange/exchange.py:2246: error: Need type annotation for "conf_strategy"  [var-annotated]
+ freqtrade/exchange/exchange.py:2327: error: Need type annotation for "entry_pricing"  [var-annotated]
+ freqtrade/exchange/exchange.py:2328: error: Need type annotation for "exit_pricing"  [var-annotated]
+ freqtrade/exchange/hyperliquid.py:109: error: Need type annotation for "market_info"  [var-annotated]
+ freqtrade/exchange/gate.py:121: error: Need type annotation for "pair_fees"  [var-annotated]
+ freqtrade/exchange/binance.py:93: error: Unused "type: ignore" comment  [unused-ignore]
+ freqtrade/rpc/rpc.py:319: error: Argument 1 to "__call__" of "_UFunc_Nin1_Nout1" has incompatible type "Any | None"; expected "complex | str | bytes | generic[Any]"  [arg-type]
+ freqtrade/rpc/rpc.py:322: error: Incompatible types in assignment (expression has type "Any | float | None", variable has type "float")  [assignment]
+ freqtrade/rpc/rpc.py:322: error: Unsupported operand types for + ("float" and "None")  [operator]
+ freqtrade/rpc/rpc.py:322: note: Right operand is of type "Any | None"
+ freqtrade/rpc/rpc.py:327: error: Argument 1 to "__call__" of "_UFunc_Nin1_Nout1" has incompatible type "Any | None"; expected "complex | str | bytes | generic[Any]"  [arg-type]
+ freqtrade/rpc/rpc.py:329: error: Incompatible types in assignment (expression has type "Any | float | None", variable has type "float")  [assignment]
+ freqtrade/rpc/rpc.py:331: error: Unsupported operand types for + ("float" and "None")  [operator]
+ freqtrade/rpc/rpc.py:331: note: Right operand is of type "Any | None"
+ freqtrade/rpc/rpc.py:336: error: Need type annotation for "orders"  [var-annotated]
+ freqtrade/data/entryexitanalysis.py:324: error: Need type annotation for "analysis_groups"  [var-annotated]
+ freqtrade/data/entryexitanalysis.py:327: error: Need type annotation for "indicator_list"  [var-annotated]
+ freqtrade/data/entryexitanalysis.py:333: error: Unused "type: ignore" comment  [unused-ignore]
+ freqtrade/data/dataprovider.py:69: error: Need type annotation for "producers"  [var-annotated]
+ freqtrade/data/dataprovider.py:335: error: Need type annotation for "freqai_config"  [var-annotated]
+ freqtrade/rpc/external_message_consumer.py:66: error: Need type annotation for "_emc_config"  [var-annotated]
+ freqtrade/freqai/data_kitchen.py:600: error: Item "str" of "Any | str" has no attribute "get"  [union-attr]
+ freqtrade/freqai/data_drawer.py:72: error: Need type annotation for "freqai_info"  [var-annotated]
+ freqtrade/freqtradebot.py:693: error: Need type annotation for "bid_check_dom"  [var-annotated]
+ freqtrade/freqai/utils.py:166: error: Need type annotation for "run_params"  [var-annotated]
+ freqtrade/worker.py:57: error: Need type annotation for "internals_config"  [var-annotated]
+ freqtrade/freqai/freqai_interface.py:93: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized"  [arg-type]
+ freqtrade/optimize/analysis/recursive_helpers.py:90: error: Need type annotation for "strategy_list"  [var-annotated]
+ freqtrade/optimize/analysis/lookahead_helpers.py:229: error: Need type annotation for "strategy_list"  [var-annotated]
+ freqtrade/plugins/pairlist/MarketCapPairList.py:39: error: Need type annotation for "_categories"  [var-annotated]
+ freqtrade/plugins/pairlist/MarketCapPairList.py:42: error: Need type annotation for "_coingecko_config"  [var-annotated]

optuna (https://github.com/optuna/optuna)
+ optuna/trial/_trial.py:64: error: Need type annotation for "_fixed_params"  [var-annotated]
+ optuna/samplers/_ga/_base.py:112: error: Unsupported operand types for > ("int" and "None")  [operator]
+ optuna/samplers/_ga/_base.py:112: note: Left operand is of type "Any | None"
+ optuna/samplers/_ga/_base.py:114: error: Unsupported operand types for < ("int" and "None")  [operator]
+ optuna/samplers/_ga/_base.py:114: note: Left operand is of type "Any | None"
+ optuna/samplers/_ga/_base.py:115: error: Incompatible types in assignment (expression has type "Any | None", variable has type "int")  [assignment]
+ optuna/storages/journal/_storage.py:521: error: Item "None" of "FrozenStudy | None" has no attribute "_study_id"  [union-attr]

graphql-core (https://github.com/graphql-python/graphql-core)
+ tests/test_user_registry.py:90: error: Argument 2 to "emit_event" of "UserRegistry" has incompatible type "User | None"; expected "User"  [arg-type]
+ tests/test_user_registry.py:91: error: Incompatible return value type (got "User | None", expected "User")  [return-value]

spark (https://github.com/apache/spark)
+ python/pyspark/logger/logger.py:71: error: Need type annotation for "log_entry"  [var-annotated]
- python/pyspark/sql/session.py:320: error: Dict entry 0 has incompatible type "str": "Any | None"; expected "str": "str"  [dict-item]
+ python/pyspark/sql/session.py:320: error: Argument 2 to "get" of "dict" has incompatible type "str | None"; expected "str"  [arg-type]
- python/pyspark/sql/session.py:321: error: Dict entry 1 has incompatible type "str": "Any | None"; expected "str": "str"  [dict-item]
+ python/pyspark/sql/session.py:322: error: Argument 2 to "get" of "dict" has incompatible type "str | None"; expected "str"  [arg-type]
- python/pyspark/sql/session.py:587: error: Item "None" of "Any | None" has no attribute "startswith"  [union-attr]
+ python/pyspark/sql/session.py:587: error: Item "None" of "Any | str | None" has no attribute "startswith"  [union-attr]
+ python/pyspark/sql/plot/plotly.py:192: error: Argument "bw_method" to "compute_kde_col" of "PySparkKdePlotBase" has incompatible type "Any | None"; expected "int | float"  [arg-type]

pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/commands/ai.py:87: note: ... from here:

tornado (https://github.com/tornadoweb/tornado)
+ tornado/process.py:168: error: Argument 1 to "start_child" has incompatible type "int | None"; expected "int"  [arg-type]
+ tornado/process.py:351: error: Item "None" of "Any | None" has no attribute "io_loop"  [union-attr]
+ tornado/process.py:351: error: Item "None" of "Any | None" has no attribute "_set_returncode"  [union-attr]
+ tornado/tcpserver.py:318: error: "None" not callable  [misc]
+ tornado/web.py:1551: error: Need type annotation for "cookie_kwargs"  [var-annotated]
+ tornado/web.py:2221: error: Need type annotation for "static_handler_args"  [var-annotated]
+ tornado/test/tcpclient_test.py:232: error: Item "None" of "Future[FakeStream] | None" has no attribute "set_result"  [union-attr]
+ tornado/test/tcpclient_test.py:235: error: Item "None" of "Future[FakeStream] | None" has no attribute "set_exception"  [union-attr]
+ tornado/test/tcpclient_test.py:320: error: Item "None" of "FakeStream | None" has no attribute "closed"  [union-attr]
+ tornado/test/tcpclient_test.py:345: error: Item "None" of "FakeStream | None" has no attribute "closed"  [union-attr]
+ tornado/test/tcpclient_test.py:374: error: Item "None" of "FakeStream | None" has no attribute "closed"  [union-attr]
+ tornado/test/tcpclient_test.py:399: error: Item "None" of "FakeStream | None" has no attribute "closed"  [union-attr]
+ tornado/test/tcpclient_test.py:401: error: Item "None" of "FakeStream | None" has no attribute "closed"  [union-attr]
+ tornado/test/tcpclient_test.py:415: error: Item "None" of "FakeStream | None" has no attribute "closed"  [union-attr]
+ tornado/test/tcpclient_test.py:426: error: Item "None" of "FakeStream | None" has no attribute "closed"  [union-attr]

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ bson/son.py:126: error: Argument 1 of "pop" is incompatible with supertype "builtins.dict"; supertype defines the argument type as "object"  [override]
+ bson/son.py:126: note: This violates the Liskov substitution principle
+ bson/son.py:126: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ pymongo/synchronous/collection.py:2625: error: Incompatible return value type (got "dict[Any | None, dict[str, Any]]", expected "MutableMapping[str, Any]")  [return-value]
+ pymongo/synchronous/client_bulk.py:587: error: Need type annotation for "wce"  [var-annotated]
+ pymongo/asynchronous/collection.py:2628: error: Incompatible return value type (got "dict[Any | None, dict[str, Any]]", expected "MutableMapping[str, Any]")  [return-value]
+ pymongo/asynchronous/client_bulk.py:589: error: Need type annotation for "wce"  [var-annotated]

bokeh (https://github.com/bokeh/bokeh)
+ src/bokeh/util/tornado.py: note: In member "_execute_remover" of class "_CallbackGroup":
+ src/bokeh/util/tornado.py:207:9: error: "None" not callable  [misc]

openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/tests/accounts/test_models.py:3: note: ... from here:
+ openlibrary/core/ia.py: note: In function "extract_item_metadata":
+ openlibrary/core/ia.py:113: error: Need type annotation for "files"  [var-annotated]
+ openlibrary/core/ia.py: note: In member "get_item_status" of class "ItemEdition":
+ openlibrary/core/ia.py:262: error: Need type annotation for "collections"  [var-annotated]
+ openlibrary/catalog/utils/__init__.py: note: In function "get_non_isbn_asin":
+ openlibrary/catalog/utils/__init__.py:405: error: Need type annotation for "amz_identifiers"  [var-annotated]
+ openlibrary/catalog/utils/__init__.py: note: In function "is_asin_only":
+ openlibrary/catalog/utils/__init__.py:437: error: Need type annotation for "amz_identifiers"  [var-annotated]
+ openlibrary/core/lending.py: note: In function "get_resource_id":
+ openlibrary/core/lending.py:1018: error: Need type annotation for "external_identifiers"  [var-annotated]
+ openlibrary/catalog/add_book/__init__.py: note: In function "validate_record":
+ openlibrary/catalog/add_book/__init__.py:829: error: Need type annotation for "source_records"  [var-annotated]
+ openlibrary/catalog/add_book/__init__.py: note: In function "update_edition_with_rec_data":
+ openlibrary/catalog/add_book/__init__.py:900: error: Need type annotation for "rec_values"  [var-annotated]
+ openlibrary/catalog/add_book/__init__.py: note: At top level:
+ openlibrary/plugins/upstream/mybooks.py: note: In function "render_template":
+ openlibrary/plugins/upstream/mybooks.py:92: error: Need type annotation for "editions"  [var-annotated]
+ openlibrary/book_providers.py: note: In member "from_json" of class "Acquisition":
+ openlibrary/book_providers.py:108: error: Argument "access" to "Acquisition" has incompatible type "Any | str"; expected "Literal['sample', 'buy', 'open-access', 'borrow', 'subscribe']"  [arg-type]
+ openlibrary/book_providers.py: note: In member "get_acquisitions" of class "AbstractBookProvider":
+ openlibrary/book_providers.py:280: error: Need type annotation for "providers"  [var-annotated]
+ openlibrary/book_providers.py: note: In member "get_identifiers" of class "DirectProvider":
+ openlibrary/book_providers.py:560: error: Need type annotation for "providers"  [var-annotated]

colour (https://github.com/colour-science/colour)
- colour/utilities/network.py:1459: error: Item "None" of "Any | None" has no attribute "connect"  [union-attr]
+ colour/utilities/network.py:1202: error: Item "None" of "Any | None" has no attribute "connections"  [union-attr]
- colour/utilities/network.py:1507: error: Item "None" of "Any | None" has no attribute "disconnect"  [union-attr]
+ colour/utilities/network.py:1203: error: Item "None" of "Any | None" has no attribute "disconnect"  [union-attr]
+ colour/utilities/network.py:1205: error: Incompatible return value type (got "Any | None", expected "Port")  [return-value]
+ colour/utilities/network.py:1276: error: Item "None" of "Any | None" has no attribute "connections"  [union-attr]
+ colour/utilities/network.py:1277: error: Item "None" of "Any | None" has no attribute "disconnect"  [union-attr]
+ colour/utilities/network.py:1279: error: Incompatible return value type (got "Any | None", expected "Port")  [return-value]
+ colour/utilities/network.py:1459: error: Item "None" of "Any | Port | None" has no attribute "connect"  [union-attr]
+ colour/utilities/network.py:1459: error: Argument 1 to "connect" of "Port" has incompatible type "Port | None"; expected "Port"  [arg-type]
+ colour/utilities/network.py:1507: error: Item "None" of "Any | Port | None" has no attribute "disconnect"  [union-attr]
+ colour/utilities/network.py:1507: error: Argument 1 to "disconnect" of "Port" has incompatible type "Port | None"; expected "Port"  [arg-type]
- colour/utilities/network.py:1867: error: Incompatible types in assignment (expression has type "Any | None", variable has type "Self")  [assignment]
+ colour/io/luts/lut.py:1151: error: Need type annotation for "interpolator_kwargs"  [var-annotated]
+ colour/io/luts/lut.py:1153: error: Need type annotation for "extrapolator_kwargs"  [var-annotated]
+ colour/io/luts/lut.py:1586: error: Need type annotation for "interpolator_kwargs"  [var-annotated]
+ colour/io/luts/lut.py:1588: error: Need type annotation for "extrapolator_kwargs"  [var-annotated]
+ colour/io/luts/lut.py:2286: error: Need type annotation for "interpolator_kwargs"  [var-annotated]
+ colour/plotting/common.py:844: error: Argument 3 to "text" of "Axes" has incompatible type "str | int | float"; expected "str"  [arg-type]
+ colour/plotting/common.py:1413: error: Unsupported operand types for + ("float" and "None")  [operator]
+ colour/plotting/common.py:1413: note: Right operand is of type "Any | None"
+ colour/plotting/common.py:1414: error: Unsupported operand types for * ("None" and "int")  [operator]
+ colour/plotting/common.py:1414: note: Left operand is of type "Any | None"
+ colour/plotting/common.py:1724: error: Argument 1 to "text" of "Axes" has incompatible type "Any | None"; expected "float"  [arg-type]
+ colour/plotting/common.py:1725: error: Argument 2 to "text" of "Axes" has incompatible type "Any | None"; expected "float"  [arg-type]
+ colour/plotting/common.py:1726: error: Argument 3 to "text" of "Axes" has incompatible type "Any | None"; expected "str"  [arg-type]
+ colour/plotting/models.py:1066: error: Argument "apply_cctf_encoding" to "RGB_to_RGB" has incompatible type "Any | None"; expected "bool"  [arg-type]

dulwich (https://github.com/dulwich/dulwich)
+ dulwich/object_store.py:1710: error: Item "None" of "Pack | None" has no attribute "close"  [union-attr]
+ dulwich/object_store.py:3348: error: Item "None" of "Pack | None" has no attribute "close"  [union-attr]
+ dulwich/porcelain/__init__.py:4832: error: Need type annotation for "changes" (hint: "changes: list[<type>] = ...")  [var-annotated]

setuptools (https://github.com/pypa/setuptools)
+ setuptools/_static.py:170: error: Unused "type: ignore" comment  [unused-ignore]
+ pkg_resources/__init__.py:3092: error: Argument 1 to "extend" of "list" has incompatible type "list[Requirement] | None"; expected "Iterable[Requirement]"  [arg-type]
+ setuptools/config/_apply_pyprojecttoml.py:70: error: Need type annotation for "orig_config"  [var-annotated]
+ setuptools/config/_apply_pyprojecttoml.py:88: error: Need type annotation for "tool_table"  [var-annotated]
+ setuptools/config/_apply_pyprojecttoml.py:285: error: Need type annotation for "given"  [var-annotated]
+ setuptools/config/_apply_pyprojecttoml.py:305: error: Need type annotation for "tool_table"  [var-annotated]
+ setuptools/config/_apply_pyprojecttoml.py:306: error: Need type annotation for "cmdclass"  [var-annotated]
+ setuptools/config/pyprojecttoml.py:109: error: Need type annotation for "project_table"  [var-annotated]
+ setuptools/config/pyprojecttoml.py:110: error: Need type annotation for "tool_table"  [var-annotated]
+ setuptools/config/pyprojecttoml.py:111: error: Need type annotation for "setuptools_table"  [var-annotated]
+ setuptools/config/pyprojecttoml.py:182: error: Need type annotation for "project_cfg"  [var-annotated]
+ setuptools/config/pyprojecttoml.py:183: error: Need type annotation for "dynamic"  [var-annotated]
+ setuptools/config/pyprojecttoml.py:184: error: Need type annotation for "setuptools_cfg"  [var-annotated]
+ setuptools/config/pyprojecttoml.py:185: error: Need type annotation for "dynamic_cfg"  [var-annotated]
+ setuptools/config/pyprojecttoml.py:352: error: Incompatible types in assignment (expression has type "dict[str, str] | None", target has type "dict[str, Any]")  [assignment]
+ setuptools/command/build_clib.py:54: error: Need type annotation for "global_deps"  [var-annotated]
+ setuptools/command/build_clib.py:67: error: Need type annotation for "extra_deps"  [var-annotated]

schema_salad (https://github.com/common-workflow-language/schema_salad)
+ schema_salad/tests/test_cwl11.py:15: note: ... from here:
+ schema_salad/avro/schema.py: note: In function "make_avsc_object":
+ schema_salad/avro/schema.py:736:26: error: Need type annotation for "fields"  [var-annotated]
+ schema_salad/schema.py: note: In function "print_inheritance":
+ schema_salad/schema.py:786:22: error: Need type annotation for "fields"  [var-annotated]

porcupine (https://github.com/Akuli/porcupine)
+ porcupine/settings.py:204: error: Item "None" of "_UnknownOption | None" has no attribute "call_converter"  [union-attr]
+ porcupine/settings.py:205: error: Item "None" of "_UnknownOption | None" has no attribute "value"  [union-attr]
+ porcupine/settings.py:205: error: Item "None" of "_UnknownOption | None" has no attribute "tag"  [union-attr]
+ porcupine/settings.py:207: error: Item "None" of "_UnknownOption | None" has no attribute "value"  [union-attr]
+ porcupine/settings.py:207: error: Item "None" of "_UnknownOption | None" has no attribute "tag"  [union-attr]
+ porcupine/settings.py:210: error: Item "None" of "_UnknownOption | None" has no attribute "value"  [union-attr]
+ porcupine/plugins/run/common.py:68: error: Unsupported left operand type for + ("None")  [operator]
+ porcupine/plugins/run/common.py:68: note: Left operand is of type "str | None"
- porcupine/plugins/highlight/tree_sitter_highlighter.py:84: error: Incompatible return value type (got "Any | None", expected "str")  [return-value]
+ porcupine/plugins/langserver.py:433: error: "None" object is not iterable  [misc]
+ porcupine/plugins/langserver.py:538: error: "None" object is not iterable  [misc]

AutoSplit (https://github.com/Toufool/AutoSplit)
+ src/capture_method/__init__.py:108:19: error: Argument 1 of "get" is incompatible with supertype "builtins.dict"; supertype defines the argument type as "object"  [override]
+ src/capture_method/__init__.py:108:19: note: This violates the Liskov substitution principle
+ src/capture_method/__init__.py:108:19: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides

pylox (https://github.com/sco1/pylox)
+ pylox/containers/array.py:83: error: Too few arguments for "pop" of "dict"  [call-arg]
- pylox/containers/array.py:83: error: All overload variants of "pop" of "dict" require at least one argument  [call-overload]
- pylox/containers/array.py:83: note: Possible overload variants:
- pylox/containers/array.py:83: note:     def pop(self, Any, /) -> Any
- pylox/containers/array.py:83: note:     def pop(self, Any, Any, /) -> Any
- pylox/containers/array.py:83: note:     def [_T] pop(self, Any, _T, /) -> Any | _T

alerta (https://github.com/alerta/alerta)
+ alerta/models/token.py:33: error: Need type annotation for "orgs"  [var-annotated]
+ alerta/models/token.py:34: error: Need type annotation for "groups"  [var-annotated]
+ alerta/models/token.py:35: error: Need type annotation for "roles"  [var-annotated]
+ alerta/models/token.py:36: error: Need type annotation for "scopes"  [var-annotated]
- alerta/models/permission.py:29: error: Argument "match" to "Permission" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/permission.py:29: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/permission.py:49: error: Argument "match" to "Permission" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/permission.py:49: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/note.py:34: error: Argument "text" to "Note" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/note.py:34: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/note.py:35: error: Argument "user" to "Note" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/note.py:35: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/note.py:37: error: Argument "note_type" to "Note" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/note.py:37: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/note.py:76: error: Argument "text" to "Note" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/note.py:76: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/note.py:77: error: Argument "user" to "Note" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/note.py:77: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/note.py:79: error: Argument "note_type" to "Note" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/note.py:79: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/key.py:51: error: Argument "user" to "ApiKey" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/key.py:51: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/key.py:53: error: Argument "text" to "ApiKey" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/key.py:53: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/key.py:55: error: Argument "customer" to "ApiKey" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/key.py:55: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/key.py:89: error: Argument "user" to "ApiKey" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/key.py:89: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/key.py:91: error: Argument 1 to "type_to_scopes" of "ApiKeyHelper" has incompatible type "Any | None"; expected "str"  [arg-type]
- alerta/models/key.py:91: error: Argument 2 to "type_to_scopes" of "ApiKeyHelper" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/key.py:91: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/key.py:92: error: Argument "text" to "ApiKey" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/key.py:92: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/key.py:93: error: Argument "expire_time" to "ApiKey" has incompatible type "Any | None"; expected "datetime"  [arg-type]
+ alerta/models/key.py:93: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "datetime"  [arg-type]
- alerta/models/key.py:96: error: Argument "customer" to "ApiKey" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/key.py:96: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/heartbeat.py:85: error: Argument "origin" to "Heartbeat" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/heartbeat.py:85: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/heartbeat.py:89: error: Argument "timeout" to "Heartbeat" has incompatible type "Any | None"; expected "int"  [arg-type]
+ alerta/models/heartbeat.py:89: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "int"  [arg-type]
- alerta/models/heartbeat.py:90: error: Argument "customer" to "Heartbeat" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/heartbeat.py:90: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/heartbeat.py:120: error: Argument "origin" to "Heartbeat" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/heartbeat.py:120: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/heartbeat.py:124: error: Argument "create_time" to "Heartbeat" has incompatible type "Any | None"; expected "datetime"  [arg-type]
+ alerta/models/heartbeat.py:124: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "datetime"  [arg-type]
- alerta/models/heartbeat.py:125: error: Argument "timeout" to "Heartbeat" has incompatible type "Any | None"; expected "int"  [arg-type]
+ alerta/models/heartbeat.py:125: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "int"  [arg-type]
- alerta/models/heartbeat.py:129: error: Argument "customer" to "Heartbeat" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/heartbeat.py:129: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/group.py:32: error: Argument "id" to "GroupUser" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/group.py:32: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/group.py:33: error: Argument "name" to "GroupUser" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/group.py:33: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/group.py:34: error: Argument "login" to "GroupUser" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/group.py:34: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/group.py:35: error: Argument "status" to "GroupUser" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/group.py:35: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/group.py:84: error: Argument "name" to "Group" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/group.py:84: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/group.py:85: error: Argument "text" to "Group" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/group.py:85: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/group.py:106: error: Argument "name" to "Group" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/group.py:106: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/group.py:107: error: Argument "text" to "Group" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/group.py:107: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/customer.py:23: error: Argument "match" to "Customer" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/customer.py:23: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/customer.py:24: error: Argument "customer" to "Customer" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/customer.py:24: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/customer.py:44: error: Argument "match" to "Customer" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/customer.py:44: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/customer.py:45: error: Argument "customer" to "Customer" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/customer.py:45: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
+ alerta/models/blackout.py:42: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "int"  [arg-type]
- alerta/models/alert.py:98: error: Argument "resource" to "Alert" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/alert.py:98: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/alert.py:99: error: Argument "event" to "Alert" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/alert.py:99: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/alert.py:173: error: Argument "resource" to "Alert" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/alert.py:173: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/alert.py:174: error: Argument "event" to "Alert" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/alert.py:174: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/user.py:66: error: Argument "login" to "User" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/user.py:66: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/user.py:68: error: Argument "email" to "User" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/user.py:68: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/user.py:72: error: Argument "text" to "User" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/user.py:72: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/user.py:107: error: Argument "name" to "User" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/user.py:107: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
+ alerta/models/user.py:108: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/user.py:109: error: Argument "password" to "User" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/user.py:109: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/user.py:110: error: Argument "email" to "User" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/user.py:110: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
- alerta/models/user.py:116: error: Argument "text" to "User" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/models/user.py:116: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "str"  [arg-type]
+ alerta/webhooks/prometheus.py:54: error: Item "None" of "Any | None" has no attribute "split"  [union-attr]
+ alerta/webhooks/prometheus.py:85: error: Argument "resource" to "Alert" has incompatible type "Any | None"; expected "str"  [arg-type]
+ alerta/webhooks/prometheus.py:86: error: Argument "event" to "Alert" has incompatible type "Any | None"; expected "str"  [arg-type]

cibuildwheel (https://github.com/pypa/cibuildwheel)
+ cibuildwheel/options.py:526: error: Need type annotation for "global_options"  [var-annotated]
+ cibuildwheel/options.py:527: error: Need type annotation for "platform_options"  [var-annotated]

pyppeteer (https://github.com/pyppeteer/pyppeteer)
+ pyppeteer/connection.py:106: error: Item "None" of "Future[Any] | None" has no attribute "set_exception"  [union-attr]
+ pyppeteer/connection.py:114: error: Item "None" of "Future[Any] | None" has no attribute "set_result"  [union-attr]
+ pyppeteer/connection.py:117: error: Need type annotation for "params"  [var-annotated]
+ pyppeteer/connection.py:128: error: Argument 1 to "__delitem__" of "dict" has incompatible type "Any | None"; expected "str"  [arg-type]
+ pyppeteer/helper.py:44: error: Need type annotation for "stackTrace"  [var-annotated]
+ pyppeteer/helper.py:46: error: Item "None" of "Any | None" has no attribute "__iter__" (not iterable)  [union-attr]
+ pyppeteer/page.py:212: error: Need type annotation for "entry"  [var-annotated]
+ pyppeteer/page.py:215: error: Need type annotation for "args"  [var-annotated]
+ pyppeteer/page.py:1369: error: Need type annotation for "marginOptions"  [var-annotated]
+ pyppeteer/network_manager.py:213: error: Argument 3 to "_handleRequestStart" of "NetworkManager" has incompatible type "Any | None"; expected "str"  [arg-type]
+ pyppeteer/network_manager.py:265: error: Need type annotation for "_resp"  [var-annotated]
+ pyppeteer/network_manager.py:342: error: Need type annotation for "headers"  [var-annotated]
+ pyppeteer/network_manager.py:707: error: Need type annotation for "_hash"  [var-annotated]
+ pyppeteer/network_manager.py:727: error: Unsupported target for indexed assignment ("dict[Any, Any] | Any | str | None")  [index]
+ pyppeteer/launcher.py:381: error: Need type annotation for "args"  [var-annotated]
+ pyppeteer/element_handle.py:285: error: Need type annotation for "model"  [var-annotated]
+ pyppeteer/coverage.py:260: error: Need type annotation for "header"  [var-annotated]

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/externalapis/coingecko.py:667: error: Invalid index type "Any | None" for "dict[str, Any]"; expected type "str"  [index]
+ rotkehlchen/chain/ethereum/modules/lido_csm/metrics.py:163: error: Need type annotation for "values"  [var-annotated]
+ rotkehlchen/externalapis/alchemy.py:338: error: Need type annotation for "data"  [var-annotated]
+ rotkehlchen/exchanges/coinbase.py:927: error: Need type annotation for "raw_network"  [var-annotated]
+ rotkehlchen/exchanges/coinbase.py:1028: error: Need type annotation for "amount_data"  [var-annotated]
+ rotkehlchen/chain/zksync_lite/manager.py:160: error: Unused "type: ignore" comment  [unused-ignore]
+ rotkehlchen/externalapis/opensea.py:388: error: Need type annotation for "payment_tokens"  [var-annotated]
+ rotkehlchen/chain/aggregator.py:727: error: Unused "type: ignore" comment  [unused-ignore]
+ rotkehlchen/chain/ethereum/modules/nft/nfts.py:208: error: Unsupported operand types for * ("None" and "FVal")  [operator]
+ rotkehlchen/chain/ethereum/modules/nft/nfts.py:208: note: Left operand is of type "Any | None"
+ rotkehlchen/tests/utils/kraken.py:580: error: Argument 2 to "get" of "dict" has incompatible type "int"; expected "Timestamp"  [arg-type]
+ rotkehlchen/tests/utils/kraken.py:581: error: Argument 2 to "get" of "dict" has incompatible type "Callable[[], Timestamp]"; expected "Timestamp"  [arg-type]
+ rotkehlchen/tests/utils/kraken.py:600: error: Unsupported operand types for > ("int" and "Callable[[], Timestamp]")  [operator]
+ rotkehlchen/tests/utils/kraken.py:600: note: Right operand is of type "Any | Callable[[], Timestamp]"
+ rotkehlchen/api/v1/schemas.py:1301: error: Invalid index type "Any | None" for "dict[HistoryBaseEntryType, type[Any]]"; expected type "HistoryBaseEntryType"  [index]
+ rotkehlchen/api/v1/schemas.py:3308: error: Need type annotation for "block_numbers"  [var-annotated]
+ rotkehlchen/api/rest.py:457: error: Value of type "Any | None" is not indexable  [index]
+ rotkehlchen/api/rest.py:459: error: Value of type "Any | None" is not indexable  [index]
+ rotkehlchen/api/rest.py:460: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ rotkehlchen/tests/conftest.py:356: error: Unused "type: ignore" comment  [unused-ignore]

spack (https://github.com/spack/spack)
+ lib/spack/spack/llnl/util/lang.py:1201: error: Incompatible return value type (got "VT | None", expected "VT")  [return-value]
+ lib/spack/spack/util/environment.py:847: error: Need type annotation for "exclude"  [var-annotated]
+ lib/spack/spack/util/environment.py:848: error: Need type annotation for "include"  [var-annotated]
+ lib/spack/spack/mirrors/mirror.py:312: error: Need type annotation for "value"  [var-annotated]
+ lib/spack/spack/fetch_strategy.py:351: error: Need type annotation for "mirrors"  [var-annotated]
+ lib/spack/spack/mirrors/layout.py:126: error: Need type annotation for "versions"  [var-annotated]
+ lib/spack/spack/compilers/libraries.py:204: error: Need type annotation for "compiler_flags"  [var-annotated]
+ lib/spack/spack/store.py:67: error: Need type annotation for "install_tree"  [var-annotated]
+ lib/spack/spack/detection/test.py:128: error: Need type annotation for "tests_by_path"  [var-annotated]
+ lib/spack/spack/solver/runtimes.py:270: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ lib/spack/spack/solver/runtimes.py:276: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ lib/spack/spack/package_base.py:1026: error: Need type annotation for "v_attrs"  [var-annotated]
+ lib/spack/spack/package_base.py:2630: error: Need type annotation for "s"  [var-annotated]
+ lib/spack/spack/solver/requirements.py:213: error: Need type annotation for "data"  [var-annotated]
+ lib/spack/spack/build_environment.py:1076: error: Need type annotation for "external_env"  [var-annotated]
+ lib/spack/spack/new_installer.py:1358: error: Item "None" of "ChildInfo | None" has no attribute "cleanup"  [union-attr]
+ lib/spack/spack/new_installer.py:1359: error: Item "None" of "ChildInfo | None" has no attribute "proc"  [union-attr]
+ lib/spack/spack/new_installer.py:1360: error: Argument 1 to "append" of "list" has incompatible type "ChildInfo | None"; expected "ChildInfo"  [arg-type]
+ lib/spack/spack/new_installer.py:1361: error: Item "None" of "ChildInfo | None" has no attribute "spec"  [union-attr]
+ lib/spack/spack/new_installer.py:1363: error: Item "None" of "ChildInfo | None" has no attribute "spec"  [union-attr]
+ lib/spack/spack/new_installer.py:1364: error: Item "None" of "ChildInfo | None" has no attribute "spec"  [union-attr]
+ lib/spack/spack/installer.py:2130: error: Item "None" of "Task | None" has no attribute "status"  [union-attr]
+ lib/spack/spack/installer.py:2613: error: Need type annotation for "unmodified_env"  [var-annotated]
+ lib/spack/spack/bootstrap/core.py:471: error: Argument 1 to "update_configuration" has incompatible type "dict[str, list[Spec] | None]"; expected "dict[str, list[Spec]]"  [arg-type]
+ lib/spack/spack/test/cmd/verify.py:74: error: Argument 1 to "sorted" has incompatible type "Any | None"; expected "Iterable[Any]"  [arg-type]

com2ann (https://github.com/ilevkivskyi/com2ann)
+ src/com2ann.py:1041: error: Item "None" of "Optional[Any]" has no attribute "__iter__" (not iterable)  [union-attr]

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/builders/linkcheck.py:18: note: ... from here:
+ sphinx/config.py: note: In member "__setstate__" of class "Config":
+ sphinx/config.py:559:48: error: Item "None" of "Any | None" has no attribute "items"  [union-attr]
+ sphinx/util/parallel.py: note: In member "_join_one" of class "ParallelTasks":
+ sphinx/util/parallel.py:140:17: error: "None" not callable  [misc]
+ sphinx/util/docfields.py: note: In function "make_field":
+ sphinx/util/docfields.py:308:24: error: Argument 1 to "len" has incompatible type "list[Node] | None"; expected "Sized"  [arg-type]
+ sphinx/util/docfields.py:308:55: error: Value of type "list[Node] | None" is not indexable  [index]
+ sphinx/util/docfields.py:309:32: error: Value of type "list[Node] | None" is not indexable  [index]
+ sphinx/util/docfields.py:322:28: error: Argument 1 to "__iadd__" of "Element" has incompatible type "list[Node] | None"; expected "Node | Iterable[Node]"  [arg-type]
+ sphinx/domains/std/__init__.py:1325: error: Unused "type: ignore" comment  [unused-ignore]
+ sphinx/domains/cpp/__init__.py: note: In member "run" of class "CPPAliasObject":
+ sphinx/domains/cpp/__init__.py:842:40: error: Argument 2 to "AliasNode" has incompatible type "dict[str, Any | int]"; expected "dict[str, bool]"  [arg-type]
+ sphinx/domains/c/__init__.py: note: In member "run" of class "CAliasObject":
+ sphinx/domains/c/__init__.py:699:32: error: Argument 2 to "AliasNode" has incompatible type "dict[str, Any | int]"; expected "dict[str, bool]"  [arg-type]
+ sphinx/domains/python/__init__.py:1032: error: Unused "type: ignore" comment  [unused-ignore]
+ sphinx/environment/__init__.py: note: In member "get_and_resolve_doctree" of class "BuildEnvironment":
+ sphinx/environment/__init__.py:693:17: error: Item "None" of "document | None" has no attribute "settings"  [union-attr]
+ sphinx/environment/__init__.py:694:17: error: Item "None" of "document | None" has no attribute "reporter"  [union-attr]
+ sphinx/environment/__init__.py:699:36: error: Argument 1 to "apply_post_transforms" of "BuildEnvironment" has incompatible type "document | None"; expected "document"  [arg-type]
+ sphinx/environment/__init__.py:702:28: error: Item "None" of "document | None" has no attribute "findall"  [union-attr]
+ sphinx/environment/__init__.py:717:16: error: Incompatible return value type (got "document | None", expected "document")  [return-value]
+ sphinx/jinja2glue.py: note: In function "warning":
+ sphinx/jinja2glue.py:113:20: error: Unsupported left operand type for + ("None")  [operator]
+ sphinx/jinja2glue.py:113:20: note: Both left and right operands are unions
+ sphinx/ext/inheritance_diagram.py:424: error: Unused "type: ignore" comment  [unused-ignore]

sympy (https://github.com/sympy/sympy)
+ sympy/core/evalf.py:446: error: Item "bool" of "Any | Literal[True]" has no attribute "values"  [union-attr]
+ sympy/core/evalf.py:447: error: Argument 1 to "subs" of "Expr" has incompatible type "Any | Literal[True]"; expected "Mapping[Basic | complex, Expr | complex]"  [arg-type]
+ sympy/core/evalf.py:1194: error: Incompatible types in assignment (expression has type "Any | float", variable has type "int")  [assignment]
+ sympy/plotting/plot.py:412: error: Need type annotation for "labels"  [var-annotated]
+ sympy/plotting/plot.py:607: error: Need type annotation for "labels"  [var-annotated]
+ sympy/plotting/plot.py:738: error: Need type annotation for "labels"  [var-annotated]
+ sympy/plotting/plot.py:1037: error: Need type annotation for "labels"  [var-annotated]

xarray (https://github.com/pydata/xarray)
+ xarray/tests/test_backends.py:6494: note: ... from here:
+ xarray/core/common.py: note: In function "full_like":
+ xarray/core/common.py:1708: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str"  [arg-type]
+ xarray/plot/facetgrid.py: note: In member "map_plot1d" of class "FacetGrid":
+ xarray/plot/facetgrid.py:450: error: Need type annotation for "cbar_kwargs"  [var-annotated]
+ xarray/plot/facetgrid.py: note: At top level:
+ xarray/structure/merge.py: note: In function "merge_trees":
+ xarray/structure/merge.py:826: error: Item "None" of "list[DataTree] | None" has no attribute "__iter__" (not iterable)  [union-attr]
+ xarray/plot/dataset_plot.py: note: In function "_dsplot":
+ xarray/plot/dataset_plot.py:226: error: Value of type "Any | None" is not indexable  [index]
+ xarray/plot/dataset_plot.py:244: error: Value of type "Any | None" is not indexable  [index]
+ xarray/plot/dataset_plot.py:245: error: Value of type "Any | None" is not indexable  [index]
+ xarray/plot/dataset_plot.py:281: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ xarray/plot/dataset_plot.py:282: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ xarray/plot/dataset_plot.py:283: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ xarray/plot/dataset_plot.py:284: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ xarray/plot/dataset_plot.py:286: error: Value of type "Any | None" is not indexable  [index]
+ xarray/plot/dataset_plot.py:287: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ xarray/plot/dataset_plot.py:288: error: Value of type "Any | None" is not indexable  [index]
+ xarray/plot/dataset_plot.py:291: error: Item "None" of "Any | None" has no attribute "get"  [union-attr]
+ xarray/plot/dataset_plot.py:294: error: Value of type "Any | None" is not indexable  [index]
+ xarray/plot/dataset_plot.py: note: At top level:
+ xarray/plot/dataset_plot.py: note: In function "quiver":
+ xarray/plot/dataset_plot.py:463: error: Value of type "Any | None" is not indexable  [index]
+ xarray/plot/dataset_plot.py:464: error: Unsupported target for indexed assignment ("Any | None")  [index]
+ xarray/plot/dataset_plot.py:465: error: Item "None" of "Any | None" has no attribute "pop"  [union-attr]
+ xarray/plot/dataset_plot.py: note: In function "streamplot":
+ xarray/plot/dataset_plot.py:638: error: Value of type "Any | None" is not indexable  [index]
+ xarray/plot/dataset_plot.py:639: error: Unsupported target for indexed assignment ("Any | None")  [index]
+ xarray/plot/dataset_plot.py:640: error: Item "None" of "Any | None" has no attribute "pop"  [union-attr]
+ xarray/coding/times.py: note: In member "decode" of class "CFTimedeltaCoder":
+ xarray/coding/times.py:1539: error: Argument 1 to "resolve_time_unit_from_attrs_dtype" has incompatible type "Any | None"; expected "str"  [arg-type]
+ xarray/conventions.py: note: In function "decode_cf_variables":
+ xarray/conventions.py:495: error: Item "None" of "Any | None" has no attribute "split"  [union-attr]
+ xarray/plot/dataarray_plot.py: note: In function "_plot1d":
+ xarray/plot/dataarray_plot.py:983: error: Need type annotation for "cmap_params_subset"  [var-annotated]
+ xarray/plot/dataarray_plot.py:984: error: Need type annotation for "cbar_kwargs"  [var-annotated]
+ xarray/indexes/nd_point_index.py: note: In member "from_variables" of class "NDPointIndex":
+ xarray/indexes/nd_point_index.py:269: error: Argument 2 to "pop" of "dict" has incompatible type "None"; expected "type[T_TreeAdapter]"  [arg-type]

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/structured_configs/_implementations.py:2878: error: Incompatible types in assignment (expression has type "tuple[str, Any, Any]", variable has type "tuple[str, Any]")  [assignment]
+ src/hydra_zen/structured_configs/_implementations.py:2878: error: Incompatible types in assignment (expression has type "tuple[str, Any | type[Any], Any]", variable has type "tuple[str, Any | type[Any]]")  [assignment]
- src/hydra_zen/structured_configs/_implementations.py:2879: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, Any]"; expected "tuple[str, type, Field[Any]]"  [arg-type]
+ src/hydra_zen/structured_configs/_implementations.py:2879: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, Any | type[Any]]"; expected "tuple[str, type, Field[Any]]"  [arg-type]
+ src/hydra_zen/structured_configs/_make_config.py:278: error: Unused "type: ignore" comment  [unused-ignore]
- src/hydra_zen/wrapper/_implementations.py:2126: error: Incompatible types in assignment (expression has type "Any | None", variable has type "dict[str, Any]")  [assignment]

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/build_config.py:68: error: Need type annotation for "existing"  [var-annotated]
+ misc/python/materialize/build_config.py:72: error: Need type annotation for "existing"  [var-annotated]
+ misc/python/materialize/build_config.py:77: error: Need type annotation for "existing"  [var-annotated]
+ misc/python/materialize/build_config.py:81: error: Need type annotation for "existing"  [var-annotated]
+ misc/python/materialize/cargo.py:57: error: Need type annotation for "features"  [var-annotated]
+ misc/python/materialize/mzbuild.py:459: error: Unsupported operand types for / ("Path" and "None")  [operator]
+ misc/python/materialize/mzbuild.py:459: note: Right operand is of type "Any | None"
+ misc/python/materialize/mzbuild.py:461: error: Unsupported operand types for / ("Path" and "None")  [operator]
+ misc/python/materialize/mzbuild.py:461: note: Right operand is of type "Any | None"
+ misc/python/materialize/mzbuild.py:464: error: Unsupported operand types for / ("Path" and "None")  [operator]
+ misc/python/materialize/mzbuild.py:464: note: Right operand is of type "Any | None"
+ misc/python/materialize/mzbuild.py:508: error: Need type annotation for "bin"  [var-annotated]
+ misc/python/materialize/mzbuild.py:510: error: Need type annotation for "example"  [var-annotated]
+ misc/python/materialize/mzbuild.py:513: error: Need type annotation for "extract"  [var-annotated]

psycopg (https://github.com/psycopg/psycopg)
+ tests/test_errors.py:139: error: Incompatible types in assignment (expression has type "type[Error] | None", target has type "type[Error]")  [assignment]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/proxy/layers/quic/_stream_layers.py:85: error: Value of type variable "SupportsRichComparisonT" of "max" cannot be "float | None"  [type-var]
+ mitmproxy/proxy/layers/http/_http2.py:536: error: Item "None" of "list[Event] | None" has no attribute "__iter__" (not iterable)  [union-attr]
+ mitmproxy/proxy/layers/http/__init__.py:970: error: Argument 1 to "event_to_child" of "HttpLayer" has incompatible type "Layer | None"; expected "Layer | HttpStream"  [arg-type]
+ mitmproxy/proxy/layers/http/__init__.py:1081: error: Argument 1 to "event_to_child" of "HttpLayer" has incompatible type "Layer | None"; expected "Layer | HttpStream"  [arg-type]
+ mitmproxy/proxy/layers/http/__init__.py:1094: error: Argument 1 to "event_to_child" of "HttpLayer" has incompatible type "Layer | None"; expected "Layer | HttpStream"  [arg-type]
+ mitmproxy/proxy/layers/http/__init__.py:1111: error: Argument 1 to "event_to_child" of "HttpLayer" has incompatible type "Layer | None"; expected "Layer | HttpStream"  [arg-type]
+ mitmproxy/proxy/layers/http/__init__.py:1172: error: Item "None" of "list[GetHttpConnection] | None" has no attribute "__iter__" (not iterable)  [union-attr]
+ mitmproxy/proxy/layers/http/__init__.py:1175: error: Argument 1 to "event_to_child" of "HttpLayer" has incompatible type "Layer | None"; expected "Layer | HttpStream"  [arg-type]
+ mitmproxy/proxy/layers/http/__init__.py:1186: error: Value of type "list[GetHttpConnection] | None" is not indexable  [index]

httpx-caching (https://github.com/johtso/httpx-caching)
- httpx_caching/_sync/_cache.py:20: error: Argument 1 to "loads" of "Serializer" has incompatible type "Any | None"; expected "bytes"  [arg-type]
+ httpx_caching/_sync/_cache.py:20: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "bytes"  [arg-type]
- httpx_caching/_async/_cache.py:20: error: Argument 1 to "loads" of "Serializer" has incompatible type "Any | None"; expected "bytes"  [arg-type]
+ httpx_caching/_async/_cache.py:20: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "bytes"  [arg-type]

dedupe (https://github.com/dedupeio/dedupe)
+ dedupe/canopy_index.py:71: error: Argument 1 has incompatible type "Any | None"; expected "float"  [arg-type]

urllib3 (https://github.com/urllib3/urllib3)
+ src/urllib3/_collections.py:97: error: Incompatible types in assignment (expression has type "_VT | None", target has type "_VT")  [assignment]
+ src/urllib3/_collections.py:98: error: Incompatible return value type (got "_VT | None", expected "_VT")  [return-value]
+ src/urllib3/_collections.py:123: error: Argument 1 has incompatible type "_VT | None"; expected "_VT"  [arg-type]
+ src/urllib3/_collections.py:130: error: Argument 1 has incompatible type "_VT | None"; expected "_VT"  [arg-type]

core (https://github.com/home-assistant/core)
- ...typeshed_to_test/stdlib/builtins.pyi:140: note: "__init_subclass__" of "object" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:141: note: "__init_subclass__" of "object" defined here
+ homeassistant/auth/permissions/util.py:113: error: Unused "type: ignore" comment  [unused-ignore]
+ homeassistant/helpers/storage.py:571: error: "None" not callable  [misc]
+ homeassistant/helpers/storage.py:582: error: "None" not callable  [misc]
+ homeassistant/helpers/device_registry.py:562: error: Unused "type: ignore" comment  [unused-ignore]
+ homeassistant/helpers/device_registry.py:1440: error: Item "None" of "DeviceEntry | None" has no attribute "area_id"  [union-attr]
+ homeassistant/helpers/device_registry.py:1441: error: Item "None" of "DeviceEntry | None" has no attribute "config_entries"  [union-attr]
+ homeassistant/helpers/device_registry.py:1442: error: Item "None" of "DeviceEntry | None" has no attribute "config_entries_subentries"  [union-attr]
+ homeassistant/helpers/device_registry.py:1443: error: Item "None" of "DeviceEntry | None" has no attribute "connections"  [union-attr]
+ homeassistant/helpers/device_registry.py:1444: error: Item "None" of "DeviceEntry | None" has no attribute "created_at"  [union-attr]
+ homeassistant/helpers/device_registry.py:1445: error: Item "None" of "DeviceEntry | None" has no attribute "disabled_by"  [union-attr]
+ homeassistant/helpers/device_registry.py:1446: error: Item "None" of "DeviceEntry | None" has no attribute "identifiers"  [union-attr]
+ homeassistant/helpers/device_registry.py:1447: error: Item "None" of "DeviceEntry | None" has no attribute "id"  [union-attr]
+ homeassistant/helpers/device_registry.py:1448: error: Item "None" of "DeviceEntry | None" has no attribute "labels"  [union-attr]
+ homeassistant/helpers/device_registry.py:1450: error: Item "None" of "DeviceEntry | None" has no attribute "name_by_user"  [union-attr]
+ homeassistant/helpers/device_registry.py:1459: error: Item "None" of "DeviceEntry | None" has no attribute "dict_repr"  [union-attr]
+ homeassistant/auth/mfa_modules/__init__.py:55: error: Unused "type: ignore" comment  [unused-ignore]
+ homeassistant/auth/mfa_modules/__init__.py:65: error: Unused "type: ignore" comment  [unused-ignore]
+ homeassistant/helpers/entity_registry.py:1260: error: Item "None" of "RegistryEntry | None" has no attribute "config_entry_id"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1261: error: Item "None" of "RegistryEntry | None" has no attribute "domain"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1261: error: Item "None" of "RegistryEntry | None" has no attribute "platform"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1261: error: Item "None" of "RegistryEntry | None" has no attribute "unique_id"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1265: error: Item "None" of "RegistryEntry | None" has no attribute "aliases"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1266: error: Item "None" of "RegistryEntry | None" has no attribute "area_id"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1267: error: Item "None" of "RegistryEntry | None" has no attribute "categories"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1269: error: Item "None" of "RegistryEntry | None" has no attribute "config_subentry_id"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1270: error: Item "None" of "RegistryEntry | None" has no attribute "created_at"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1271: error: Item "None" of "RegistryEntry | None" has no attribute "device_class"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1272: error: Item "None" of "RegistryEntry | None" has no attribute "disabled_by"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1274: error: Item "None" of "RegistryEntry | None" has no attribute "hidden_by"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1275: error: Item "None" of "RegistryEntry | None" has no attribute "icon"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1276: error: Item "None" of "RegistryEntry | None" has no attribute "id"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1277: error: Item "None" of "RegistryEntry | None" has no attribute "labels"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1279: error: Item "None" of "RegistryEntry | None" has no attribute "name"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1280: error: Item "None" of "RegistryEntry | None" has no attribute "options"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1282: error: Item "None" of "RegistryEntry | None" has no attribute "platform"  [union-attr]
+ homeassistant/helpers/entity_registry.py:1283: error: Item "None" of "RegistryEntry | None" has no attribute "unique_id"  [union-attr]
+ homeassistant/auth/providers/__init__.py:79: error: Unused "type: ignore" comment  [unused-ignore]
+ homeassistant/helpers/event.py:506: error: Unused "type: ignore" comment  [unused-ignore]
+ homeassistant/helpers/event.py:818: error: "None" not callable  [misc]
+ homeassistant/helpers/event.py:825: error: "None" not callable  [misc]
+ homeassistant/helpers/event.py:1096: error: "None" not callable  [misc]
+ homeassistant/helpers/event.py:1128: error: "None" not callable  [misc]
+ homeassistant/config.py:246: error: Need type annotation for "core_config"  [var-annotated]
+ homeassistant/helpers/service.py:657: error: Need type annotation for "description"  [var-annotated]
+ homeassistant/helpers/entity.py:175: error: Unused "type: ignore" comment  [unused-ignore]
+ homeassistant/helpers/check_config.py:160: error: Need type annotation for "core_config"  [var-annotated]
+ homeassistant/components/ffmpeg/__init__.py:62: error: Need type annotation for "conf"  [var-annotated]
+ homeassistant/helpers/condition.py:545: error: Argument 2 to "get" of "dict" has incompatible type "str | None"; expected "str"  [arg-type]
+ homeassistant/helpers/condition.py:886: error: Need type annotation for "entity_ids"  [var-annotated]
+ homeassistant/helpers/condition.py:1002: error: Need type annotation for "entity_ids"  [var-annotated]
+ homeassistant/components/websocket_api/automation.py:101: error: Need type annotation for "entity_filters_config"  [var-annotated]
+ homeassistant/components/websocket_api/automation.py:143: error: Need type annotation for "entity_filters_config"  [var-annotated]
+ homeassistant/components/websocket_api/commands.py:255: error: "None" not callable  [misc]
+ homeassistant/components/light/__init__.py:330: error: Argument 2 to "pop" of "dict" has incompatible type "None"; expected "int"  [arg-type]
+ homeassistant/components/light/__init__.py:340: error: Argument 2 to "pop" of "dict" has incompatible type "None"; expected "int"  [arg-type]
+ homeassistant/components/light/__init__.py:473: error: Argument 1 to "color_temperature_to_rgbww" has incompatible type "Any | None"; expected "int"  [arg-type]
+ homeassistant/components/light/__init__.py:483: error: Argument 1 to "color_temperature_to_hs" has incompatible type "Any | None"; expected "float"  [arg-type]
+ homeassistant/components/light/__init__.py:510: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:512: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:515: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:520: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:522: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:561: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:563: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:565: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:568: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:573: error: Expected iterable as variadic argument  [misc]
+ homeassistant/components/light/__init__.py:583: error: Expected iterable as variadic argument  [misc]
+ homeassistant/helpers/collection.py:716: error: Argument 1 to "async_update_item" of "StorageCollection" has incompatible type "Any | None"; expected "str"  [arg-type]
+ homeassistant/helpers/collection.py:717: error: Argument 1 to "send_result" of "ActiveConnection" has incompatible type "Any | None"; expected "int"  [arg-type]
+ homeassistant/helpers/collection.py:731: error: Argument 1 to "send_error" of "ActiveConnection" has incompatible type "Any | None"; expected "int"  [arg-type]
+ homeassistant/components/auth/mfa_setup_flow.py:57: error: Argument 1 to "async_setup_flow" of "MultiFactorAuthModule" has incompatible type "Any | None"; expected "str"  [arg-type]
+ homeassistant/components/ai_task/http.py:55: error: Argument 1 to "send_result" of "ActiveConnection" has incompatible type "Any | None"; expected "int"  [arg-type]
- homeassistant/components/sensor/__init__.py:487: error: Returning Any from function declared to return "str | None"  [no-any-return]
- homeassistant/components/number/__init__.py:380: error: Returning Any from function declared to return "str | None"  [no-any-return]
+ homeassistant/components/logger/__init__.

... (truncated 872 lines) ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Several methods on built-in types are too strict.

1 participant