simplify dict.get to not require any overloads#15496
Draft
randolf-scholz wants to merge 1 commit intopython:mainfrom
Draft
simplify dict.get to not require any overloads#15496randolf-scholz wants to merge 1 commit intopython:mainfrom
randolf-scholz wants to merge 1 commit intopython:mainfrom
Conversation
92af0bb to
69bb68b
Compare
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: mypy (https://github.com/python/mypy)
+ mypy/dmypy/client.py:583: error: Need type annotation for "telemetry" [var-annotated]
+ mypy/dmypy/client.py:583: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-var-annotated for more info
- mypy/test/testpep561.py:133: 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/plugins/pairlist/pairlist_helpers.py:49: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/directory_operations.py:24: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [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/loggers/__init__.py:214: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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/configuration.py:115: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/configuration.py:545: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:116: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:116: error: Unsupported operand types for in ("Any | None" and "tuple[str, str]") [operator]
+ freqtrade/configuration/config_validation.py:117: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:121: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:121: error: Unsupported operand types for in ("Any | None" and "tuple[str, str]") [operator]
+ freqtrade/configuration/config_validation.py:122: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:165: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:187: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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:326: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:335: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:339: error: Need type annotation for "freqai_include_timeframes" [var-annotated]
+ freqtrade/configuration/config_validation.py:339: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:358: error: Need type annotation for "feature_parameters" [var-annotated]
+ freqtrade/configuration/config_validation.py:358: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:360: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:367: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/configuration/config_validation.py:389: error: Need type annotation for "emc_conf" [var-annotated]
+ freqtrade/configuration/config_validation.py:409: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/commands/list_commands.py:266: error: Need type annotation for "base_currencies" [var-annotated]
+ freqtrade/commands/list_commands.py:267: error: Need type annotation for "quote_currencies" [var-annotated]
+ freqtrade/optimize/optimize_reports/optimize_reports.py:628: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/strategy/hyper.py:65: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/strategy/hyper.py:68: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/strategy/hyper.py:70: error: Need type annotation for "trailing" [var-annotated]
+ freqtrade/exchange/exchange.py:568: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/exchange.py:572: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/exchange.py:598: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/exchange.py:599: error: Unsupported operand types for < ("float" and "None") [operator]
+ freqtrade/exchange/exchange.py:599: note: Left operand is of type "Any | None"
+ freqtrade/exchange/exchange.py:599: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/exchange.py:625: error: Need type annotation for "market" [var-annotated]
+ freqtrade/exchange/exchange.py:860: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/exchange.py:861: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/exchange.py:1009: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/exchange.py:1017: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/exchange.py:2264: error: Need type annotation for "conf_strategy" [var-annotated]
+ freqtrade/exchange/exchange.py:2345: error: Need type annotation for "entry_pricing" [var-annotated]
+ freqtrade/exchange/exchange.py:2346: error: Need type annotation for "exit_pricing" [var-annotated]
+ freqtrade/exchange/okx.py:200: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/hyperliquid.py:106: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/hyperliquid.py:152: 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/bybit.py:313: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/bitget.py:253: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/binance.py:95: error: Unused "type: ignore" comment [unused-ignore]
+ freqtrade/exchange/binance.py:455: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/binance.py:463: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/check_exchange.py:28: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/exchange/check_exchange.py:33: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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/rpc/rpc_manager.py:94: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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:69: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/data/dataprovider.py:335: error: Need type annotation for "freqai_config" [var-annotated]
+ freqtrade/data/dataprovider.py:476: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/strategy/interface.py:180: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/strategy/interface.py:1064: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/strategy/interface.py:1303: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/strategy/interface.py:1716: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/strategy/interface.py:1718: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/strategy/interface.py:1768: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/rpc/external_message_consumer.py:66: error: Need type annotation for "_emc_config" [var-annotated]
+ freqtrade/freqai/data_kitchen.py:149: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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:137: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/freqtradebot.py:693: error: Need type annotation for "bid_check_dom" [var-annotated]
+ freqtrade/freqtradebot.py:693: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/freqtradebot.py:1624: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/optimize/backtesting.py:150: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/optimize/backtesting.py:206: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/freqai/utils.py:166: error: Need type annotation for "run_params" [var-annotated]
+ freqtrade/freqai/utils.py:172: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/worker.py:57: error: Need type annotation for "internals_config" [var-annotated]
+ freqtrade/worker.py:63: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/freqai/freqai_interface.py:64: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/freqai/freqai_interface.py:67: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/freqai/freqai_interface.py:93: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized" [arg-type]
+ freqtrade/freqai/freqai_interface.py:93: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [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/ProducerPairList.py:40: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/plugins/pairlist/MarketCapPairList.py:40: error: Need type annotation for "_categories" [var-annotated]
+ freqtrade/plugins/pairlist/MarketCapPairList.py:43: error: Need type annotation for "_coingecko_config" [var-annotated]
+ freqtrade/freqai/base_models/BaseRegressionModel.py:66: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/freqai/base_models/BaseClassifierModel.py:64: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ freqtrade/freqai/RL/BaseReinforcementLearningModel.py:133: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
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]
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:328: error: Unused "type: ignore" comment [unused-ignore]
+ python/pyspark/sql/session.py:328: error: Argument 2 to "get" of "dict" has incompatible type "str | None"; expected "str" [arg-type]
+ python/pyspark/sql/session.py:328: note: Error code "arg-type" not covered by "type: ignore" comment
+ python/pyspark/sql/session.py:329: error: Unused "type: ignore" comment [unused-ignore]
+ python/pyspark/sql/session.py:330: error: Argument 2 to "get" of "dict" has incompatible type "str | None"; expected "str" [arg-type]
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: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 | None" has no attribute "disconnect" [union-attr]
+ 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]
pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/commands/ai.py:87: note: ... from here:
tornado (https://github.com/tornadoweb/tornado)
+ 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]
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ pymongo/synchronous/client_bulk.py:587: error: Need type annotation for "wce" [var-annotated]
+ pymongo/asynchronous/client_bulk.py:589: error: Need type annotation for "wce" [var-annotated]
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:118: 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:267: 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:405: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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/catalog/utils/__init__.py:437: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ openlibrary/catalog/utils/__init__.py: note: In function "format_languages":
+ openlibrary/catalog/utils/__init__.py:481: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ openlibrary/catalog/utils/__init__.py:483: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ openlibrary/core/lending.py: note: In function "get_resource_id":
+ openlibrary/core/lending.py:1021: 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:834: 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:905: error: Need type annotation for "rec_values" [var-annotated]
+ openlibrary/catalog/add_book/__init__.py: note: At top level:
+ openlibrary/coverstore/code.py: note: In function "get_cover_id":
+ openlibrary/coverstore/code.py:75: error: Need type annotation for "covers" [var-annotated]
+ openlibrary/plugins/admin/code.py: note: In function "revert_changesets":
+ openlibrary/plugins/admin/code.py:130: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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 "from_opds_json" of class "Acquisition":
+ openlibrary/book_providers.py:119: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ openlibrary/book_providers.py:137: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ openlibrary/book_providers.py: note: In member "get_identifiers" of class "AbstractBookProvider":
+ openlibrary/book_providers.py:196: error: Argument 1 to "get" of "dict" has incompatible type "str | None"; expected "Never" [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:595: error: Need type annotation for "providers" [var-annotated]
+ openlibrary/plugins/upstream/mybooks.py: note: In function "render_template":
+ openlibrary/plugins/upstream/mybooks.py:94: error: Need type annotation for "editions" [var-annotated]
+ openlibrary/plugins/openlibrary/partials.py: note: In member "generate" of class "AffiliateLinksPartial":
+ openlibrary/plugins/openlibrary/partials.py:243: error: Need type annotation for "args" [var-annotated]
+ openlibrary/plugins/openlibrary/partials.py: note: In member "generate" of class "SearchFacetsPartial":
+ openlibrary/plugins/openlibrary/partials.py:267: error: Need type annotation for "param" [var-annotated]
setuptools (https://github.com/pypa/setuptools)
+ setuptools/_static.py:170: error: Unused "type: ignore" comment [unused-ignore]
+ setuptools/_static.py:170: error: Argument 1 to "get" of "dict" has incompatible type "type[T]"; expected "ABCMeta" [arg-type]
+ setuptools/_static.py:170: note: Error code "arg-type" not covered by "type: ignore" comment
+ 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:88: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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/_apply_pyprojecttoml.py:306: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ setuptools/config/_apply_pyprojecttoml.py:310: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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:184: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ setuptools/config/pyprojecttoml.py:185: error: Need type annotation for "dynamic_cfg" [var-annotated]
+ 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]
dulwich (https://github.com/dulwich/dulwich)
+ dulwich/porcelain/__init__.py:4907: error: Need type annotation for "changes" (hint: "changes: list[<type>] = ...") [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:737: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/plugins/highlight/tree_sitter_highlighter.py:83: error: Incompatible return value type (got "Any | None", expected "str") [return-value]
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:40: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [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]
rich (https://github.com/Textualize/rich)
+ rich/markdown.py:163: error: Incompatible types in assignment (expression has type "str", variable has type "Literal['default', 'left', 'center', 'right', 'full'] | None") [assignment]
cibuildwheel (https://github.com/pypa/cibuildwheel)
+ cibuildwheel/options.py:526: error: Need type annotation for "global_options" [var-annotated]
+ cibuildwheel/options.py:526: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ cibuildwheel/options.py:527: error: Need type annotation for "platform_options" [var-annotated]
pyppeteer (https://github.com/pyppeteer/pyppeteer)
+ pyppeteer/connection.py:117: error: Need type annotation for "params" [var-annotated]
+ pyppeteer/connection.py:121: error: Argument 1 to "get" of "dict" has incompatible type "Any | None"; expected "str" [arg-type]
+ pyppeteer/connection.py:125: error: Argument 1 to "get" of "dict" has incompatible type "Any | None"; expected "str" [arg-type]
+ 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:213: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [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:498: error: Argument 1 to "get" of "dict" has incompatible type "Any | int"; expected "str" [arg-type]
+ 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/chain/evm/decoding/superfluid/utils.py:65: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ rotkehlchen/externalapis/hyperliquid.py:127: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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:958: error: Need type annotation for "raw_network" [var-annotated]
+ rotkehlchen/exchanges/coinbase.py:1059: error: Need type annotation for "amount_data" [var-annotated]
+ rotkehlchen/exchanges/coinbase.py:1062: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ 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/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/exchanges/coinbaseprime.py:147: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ rotkehlchen/exchanges/coinbaseprime.py:149: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ rotkehlchen/api/v1/schemas.py:3354: error: Need type annotation for "block_numbers" [var-annotated]
+ rotkehlchen/tests/conftest.py:363: error: Unused "type: ignore" comment [unused-ignore]
spack (https://github.com/spack/spack)
+ 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/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/requirements.py:213: error: Need type annotation for "data" [var-annotated]
+ lib/spack/spack/solver/requirements.py:213: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ lib/spack/spack/solver/requirements.py:220: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ lib/spack/spack/build_environment.py:1076: error: Need type annotation for "external_env" [var-annotated]
+ lib/spack/spack/installer.py:2616: error: Need type annotation for "unmodified_env" [var-annotated]
sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/builders/linkcheck.py:18: note: ... from here:
+ 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/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]
xarray (https://github.com/pydata/xarray)
+ xarray/tests/test_backends.py:6554: 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/backends/common.py: note: In function "_find_absolute_paths":
+ xarray/backends/common.py:169: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
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]
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/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:60: error: Need type annotation for "features" [var-annotated]
+ misc/python/materialize/workload_replay/executor.py:315: error: Need type annotation for "settings" [var-annotated]
apprise (https://github.com/caronc/apprise)
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "IRCMessage" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "IRCMessage" defined here
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "IRCAction" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "IRCAction" defined here
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "IRCContext" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "IRCContext" defined here
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "IRCContext" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "IRCContext" defined here
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "XMPPConfig" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "XMPPConfig" defined here
+ apprise/plugins/xmpp/base.py:417: error: Need type annotation for "qd" [var-annotated]
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "IRCContext" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "IRCContext" defined here
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "IRCAction" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "IRCAction" defined here
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "XMPPConfig" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "XMPPConfig" defined here
- tests/test_plugin_xmpp.py:1842: error: Argument 1 to "append" of "list" has incompatible type "Any | None"; expected "str" [arg-type]
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]
archinstall (https://github.com/archlinux/archinstall)
+ archinstall/lib/models/mirrors.py:315: error: Need type annotation for "mirror_regions" [var-annotated]
+ archinstall/lib/models/mirrors.py:317: error: Item "list[Any]" of "Any | list[Any]" has no attribute "items" [union-attr]
+ archinstall/lib/args.py:145: error: Need type annotation for "disk_config" [var-annotated]
+ archinstall/lib/args.py:148: error: Argument 1 to "parse_arg" of "DiskLayoutConfiguration" has incompatible type "Any | dict[Any, Any]"; expected "_DiskLayoutConfigurationSerialization" [arg-type]
+ archinstall/lib/args.py:169: error: Need type annotation for "additional_repositories" [var-annotated]
+ archinstall/lib/args.py:203: error: Need type annotation for "kernels" [var-annotated]
+ archinstall/lib/args.py:208: error: Need type annotation for "packages" [var-annotated]
+ archinstall/lib/args.py:221: error: Need type annotation for "services" [var-annotated]
+ archinstall/lib/args.py:250: error: Need type annotation for "custom_commands" [var-annotated]
twine (https://github.com/pypa/twine)
+ twine/repository.py:222: error: Need type annotation for "packages" [var-annotated]
nox (https://github.com/wntrblm/nox)
+ nox/project.py:120: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ nox/project.py:128: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ nox/sessions.py:288: error: Need type annotation for "deps" [var-annotated]
+ nox/_cli.py:242: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ nox/_cli.py:243: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ nox/_cli.py:251: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ nox/_cli.py:252: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
isort (https://github.com/pycqa/isort)
+ isort/settings.py:890: error: Unused "type: ignore" comment [unused-ignore]
+ isort/output.py:423: error: No overload variant of "pop" of "dict" matches argument types "str", "None" [call-overload]
+ isort/output.py:423: note: Possible overload variants:
+ isort/output.py:423: note: def pop(self, Never, /) -> Never
+ isort/output.py:423: note: def pop(self, Never, Never, /) -> Never
+ isort/output.py:423: note: def [_T] pop(self, Never, _T, /) -> _T
+ isort/output.py:686: error: No overload variant of "pop" of "dict" matches argument types "str", "None" [call-overload]
+ isort/output.py:686: note: Possible overload variants:
+ isort/output.py:686: note: def pop(self, Never, /) -> Never
+ isort/output.py:686: note: def pop(self, Never, Never, /) -> Never
+ isort/output.py:686: note: def [_T] pop(self, Never, _T, /) -> _T
pyjwt (https://github.com/jpadilla/pyjwt)
+ jwt/api_jwk.py:161: error: Need type annotation for "keys" [var-annotated]
django-stubs (https://github.com/typeddjango/django-stubs)
+ django-stubs/utils/datastructures.pyi:65: error: Signature of "get" incompatible with supertype "builtins.dict" [override]
+ django-stubs/utils/datastructures.pyi:65: note: Superclass:
+ django-stubs/utils/datastructures.pyi:65: note: def [_NoneDefaultT] get(self, _K, _NoneDefaultT = ..., /) -> _V | _NoneDefaultT
+ django-stubs/utils/datastructures.pyi:65: note: Subclass:
+ django-stubs/utils/datastructures.pyi:65: note: @overload
+ django-stubs/utils/datastructures.pyi:65: note: def get(self, key: _K, default: None = ...) -> _V | None
+ django-stubs/utils/datastructures.pyi:65: note: @overload
+ django-stubs/utils/datastructures.pyi:65: note: def get(self, key: _K, default: _V) -> _V
+ django-stubs/utils/datastructures.pyi:65: note: @overload
+ django-stubs/utils/datastructures.pyi:65: note: def [_Z] get(self, key: _K, default: _Z) -> _V | _Z
beartype (https://github.com/beartype/beartype)
- beartype/_check/error/errcause.py:554: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/_check/error/errcause.py:553: error: Unused "type: ignore" comment [unused-ignore]
static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/metadata.py:158: error: Unused "type: ignore" comment [unused-ignore]
+ static_frame/core/metadata.py:166: error: Unused "type: ignore" comment [unused-ignore]
zulip (https://github.com/zulip/zulip)
+ zerver/management/commands/makemessages.py:187: error: Need type annotation for "ignore_patterns" [var-annotated]
+ zerver/views/antispam.py:41: error: Need type annotation for "session_challenges" [var-annotated]
+ corporate/lib/stripe.py:489: error: Need type annotation for "err" [var-annotated]
+ zerver/data_import/slack.py:1176: error: Argument 2 to "get_parent_user_id_from_thread_message" has incompatible type "Any | bool"; expected "str" [arg-type]
+ zerver/data_import/slack.py:1264: error: Need type annotation for "files" [var-annotated]
+ zerver/tornado/event_queue.py:833: error: Need type annotation for "internal_data" [var-annotated]
+ zerver/webhooks/sentry/view.py:275: error: Need type annotation for "event" [var-annotated]
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "SubTest" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "SubTest" defined here
+ zerver/tests/test_signup.py:2228: error: Need type annotation for "return_data" [var-annotated]
+ zerver/lib/scim.py:164: error: Need type annotation for "name_attr_dict" [var-annotated]
+ zerver/tests/test_tornado.py:79: error: Need type annotation for "headers" [var-annotated]
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "SubmessageFixture" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "SubmessageFixture" defined here
+ zerver/tests/test_slack_importer.py:228: error: Argument "users" to "channel_message_to_zerver_message" has incompatible type "dict[str, Any] | Any"; expected "list[dict[str, Any]]" [arg-type]
- ...typeshed_to_test/stdlib/builtins.pyi:118: note: "FileFixture" defined here
+ ...typeshed_to_test/stdlib/builtins.pyi:119: note: "FileFixture" defined here
pandas (https://github.com/pandas-dev/pandas)
+ pandas/io/pytables.py:4018: error: Need type annotation for "info" [var-annotated]
+ pandas/io/pytables.py:4802: error: Need type annotation for "info" [var-annotated]
+ pandas/io/parsers/arrow_parser_wrapper.py:160: error: Need type annotation for "nulls" [var-annotated]
+ pandas/core/generic.py:2077: error: Need type annotation for "attrs" [var-annotated]
+ pandas/io/formats/style.py:2501: error: Unused "type: ignore" comment [unused-ignore]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/packages/locker.py:101: error: Need type annotation for "metadata" [var-annotated]
+ src/poetry/packages/locker.py:296: error: Need type annotation for "project_content" [var-annotated]
+ src/poetry/packages/locker.py:298: error: Need type annotation for "group_content" [var-annotated]
+ src/poetry/packages/locker.py:302: error: Need type annotation for "tool_poetry_content" [var-annotated]
+ src/poetry/packages/locker.py:302: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ src/poetry/packages/locker.py:339: error: Incompatible types in assignment (expression has type "dict[str, Any | None]", variable has type "dict[str, dict[str, Any]]") [assignment]
+ src/poetry/packages/locker.py:390: error: Need type annotation for "source" [var-annotated]
+ src/poetry/packages/locker.py:394: error: Argument 1 to "joinpath" of "PurePath" has incompatible type "Any | None"; expected "str | PathLike[str]" [arg-type]
+ src/poetry/packages/locker.py:432: error: Argument 1 to "Path" has incompatible type "Any | None"; expected "str | PathLike[str]" [arg-type]
+ src/poetry/packages/locker.py:449: error: Need type annotation for "extras" [var-annotated]
+ src/poetry/utils/authenticator.py:232: error: Argument 2 to "send" of "Session" has incompatible type "**dict[str, Any | int]"; expected "bool | None" [arg-type]
+ src/poetry/utils/authenticator.py:232: error: Argument 2 to "send" of "Session" has incompatible type "**dict[str, Any | int]"; expected "bool | str | None" [arg-type]
+ src/poetry/utils/authenticator.py:232: error: Argument 2 to "send" of "Session" has incompatible type "**dict[str, Any | int]"; expected "MutableMapping[str, str] | None" [arg-type]
+ src/poetry/utils/authenticator.py:232: error: Argument 2 to "send" of "Session" has incompatible type "**dict[str, Any | int]"; expected "str | tuple[str, str] | None" [arg-type]
+ src/poetry/utils/authenticator.py:232: error: Argument 2 to "send" of "Session" has incompatible type "**dict[str, Any | int]"; expected "bool" [arg-type]
+ src/poetry/factory.py:378: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ tests/console/commands/self/utils.py:26: error: Need type annotation for "content" [var-annotated]
+ src/poetry/console/commands/version.py:72: error: Need type annotation for "project_content" [var-annotated]
+ src/poetry/console/commands/version.py:75: error: Need type annotation for "poetry_content" [var-annotated]
+ src/poetry/console/commands/version.py:75: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ src/poetry/console/commands/remove.py:67: error: Need type annotation for "project_content" [var-annotated]
+ src/poetry/console/commands/remove.py:68: error: Need type annotation for "groups_content" [var-annotated]
+ src/poetry/console/commands/remove.py:69: error: Need type annotation for "poetry_content" [var-annotated]
+ src/poetry/console/commands/remove.py:69: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ src/poetry/console/commands/remove.py:70: error: Need type annotation for "poetry_groups_content" [var-annotated]
+ src/poetry/console/commands/remove.py:249: error: Need type annotation for "poetry_content" [var-annotated]
+ src/poetry/console/commands/remove.py:249: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ src/poetry/console/commands/add.py:155: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ src/poetry/console/commands/add.py:156: error: Need type annotation for "groups_content" [var-annotated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/internal/uwsgi.py:58: error: Argument 1 to "int" has incompatible type "bytes | Literal[True] | list[bytes | Literal[True]] | int"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type]
+ ddtrace/internal/uwsgi.py:58: error: Argument 1 to "int" has incompatible type "list[bytes | Literal[True]] | str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type]
- ddtrace/internal/coverage/instrumentation_py3_12.py:103: error: Incompatible types in assignment (expression has type "tuple[str, tuple[str] | None] | None", variable has type "tuple[str, tuple[str] | None]") [assignment]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:103: error: Argument 2 to "get" of "dict" has incompatible type "None"; expected "tuple[str, tuple[str] | None]" [arg-type]
+ ddtrace/_trace/utils_botocore/span_pointers/dynamodb.py:292: error: Need type annotation for "unprocessed_items" [var-annotated]
+ ddtrace/appsec/_asm_request_context.py:326: error: Need type annotation for "req_headers" [var-annotated]
+ ddtrace/appsec/_asm_request_context.py:329: error: Need type annotation for "res_headers" [var-annotated]
+ ddtrace/appsec/_exploit_prevention/stack_traces.py:45: error: Need type annotation for "current_list" [var-annotated]
+ ddtrace/appsec/_ddwaf/waf.py:90: error: Need type annotation for "rules" [var-annotated]
+ ddtrace/appsec/_ddwaf/waf.py:91: error: Need type annotation for "errors_result" [var-annotated]
+ ddtrace/appsec/_processor.py:281: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ ddtrace/appsec/_processor.py:292: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ ddtrace/appsec/_api_security/api_manager.py:119: error: Unused "type: ignore" comment [unused-ignore]
+ ddtrace/appsec/_api_security/api_manager.py:200: error: Incompatible types in assignment (expression has type "object", target has type "dict[str, bool]") [assignment]
+ ddtrace/llmobs/_writer.py:144: error: Need type annotation for "endpoints" [var-annotated]
+ ddtrace/internal/openfeature/_native.py:85: error: Need type annotation for "attributes" [var-annotated]
+ ddtrace/llmobs/_integrations/utils.py:253: error: Need type annotation for "toolUse" [var-annotated]
+ ddtrace/llmobs/_integrations/utils.py:917: error: Need type annotation for "input_data" [var-annotated]
+ ddtrace/llmobs/_integrations/utils.py:941: error: Need type annotation for "variables" [var-annotated]
+ ddtrace/llmobs/_integrations/bedrock_agents.py:187: error: Need type annotation for "custom_orchestration_trace" [var-annotated]
+ ddtrace/llmobs/_integrations/bedrock_agents.py:187: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ ddtrace/llmobs/_integrations/bedrock_agents.py:189: error: Need type annotation for "custom_orchestration_event" [var-annotated]
+ ddtrace/llmobs/_integrations/bedrock_agents.py:209: error: Need type annotation for "orchestration_trace" [var-annotated]
+ ddtrace/llmobs/_integrations/bedrock_agents.py:209: error: Argument 1 to "get" of "dict" has incompatible type "str"; expected "Never" [arg-type]
+ ddtrace/llmobs/_integrations/bedrock_agents.py:211: error: Need type annotation for "model_invocation_input" [var-annotated]
+ ddtrac
... (truncated 372 lines) ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Experimental: Simplifies this
into
With pyright this works very well, but with
mypythere are some currently unavoidable false negatives: python/typing#2213