Repository navigation
[stubsabot] Remove requests as ships py.typed file - #16760
Merged
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
Diff from mypy_primer, showing the effect of this PR on open source code: pwndbg (https://github.com/pwndbg/pwndbg)
- pwndbg/commands/ai.py:89: note: ... from here:
- pwndbg/commands/ai.py:89: note: ... from here:
- pwndbg/commands/ai.py:89: note: ... from here:
+ pwndbg/commands/ai.py:89: error: Library stubs not installed for "requests" [import-untyped]
+ pwndbg/commands/ai.py:89: note: Hint: "python3 -m pip install types-requests"
+ pwndbg/commands/ai.py:89: note: (or run "mypy --install-types" to install all missing stub packages)
rotki (https://github.com/rotki/rotki)
+ rotkehlchen/tests/api/test_assets.py:1682: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_historical_balances.py:474: error: Argument "json" to "post" has incompatible type "dict[str, object] | dict[str, Timestamp]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_historical_balances.py:612: error: Argument "json" to "post" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_historical_balances.py:666: error: Argument "json" to "post" has incompatible type "dict[str, ChecksumAddress] | dict[str, str] | dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/blockchain/test_base.py:461: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_eth2.py:268: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_settings.py:316: error: Argument "json" to "put" has incompatible type "dict[str, dict[Sequence[str], str]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_addressbook.py:558: error: Argument "json" to "post" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:73: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:153: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:270: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:331: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:468: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:581: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:651: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:870: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:1180: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:1192: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:1204: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:1213: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_assets.py:1226: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_authenticate.py:348: error: Argument 1 to "_cookie_sid" has incompatible type "str | None"; expected "str" [arg-type]
+ rotkehlchen/tests/api/test_user_authenticate.py:403: error: Argument "cookies" to "get" has incompatible type "dict[str, str | None]"; expected "RequestsCookieJar | CookieJar | dict[str, str] | None" [arg-type]
+ rotkehlchen/tests/api/test_user_authenticate.py:575: error: Argument 1 to "_cookie_sid" has incompatible type "str | None"; expected "str" [arg-type]
+ rotkehlchen/tests/api/test_user_authenticate.py:580: error: Argument 1 to "_cookie_sid" has incompatible type "str | None"; expected "str" [arg-type]
+ rotkehlchen/tests/api/test_snapshots.py:866: error: Argument "json" to "patch" has incompatible type "dict[str, list[dict[str, object]]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_snapshots.py:912: error: Argument "json" to "patch" has incompatible type "dict[str, list[dict[str, object]]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_snapshots.py:939: error: Argument "json" to "patch" has incompatible type "dict[str, list[dict[str, object]] | list[dict[str, Timestamp | str]]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/blockchain/test_evm.py:351: error: Argument "json" to "put" has incompatible type "dict[str, list[object]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/blockchain/test_evm.py:650: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/blockchain/test_evm.py:670: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_data_import.py:645: error: Argument "json" to "put" has incompatible type "dict[str, Collection[str]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_data_import.py:666: error: Argument "json" to "put" has incompatible type "dict[str, Collection[str]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_data_import.py:688: error: Argument "json" to "put" has incompatible type "dict[str, Collection[str]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_users.py:165: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_users.py:189: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_users.py:213: error: Argument "json" to "put" has incompatible type "dict[str, Collection[str]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_users.py:1123: error: Argument "json" to "post" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_users.py:1159: error: Argument "json" to "post" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_bitcoin.py:169: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_bitcoin.py:203: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_bitcoin.py:223: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_bitcoin.py:285: error: Argument "json" to "delete" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_bitcoin.py:331: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_bitcoin.py:370: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_historical_balance_reconciliation.py:64: error: Argument "json" to "get" has incompatible type "dict[str, object] | None"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_evm_tokens.py:292: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_evm_tokens.py:307: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_user_evm_tokens.py:711: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_evmlike.py:106: error: Argument "json" to "post" has incompatible type "object"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_calendar.py:156: error: Unsupported operand types for | ("dict[str, list[dict[str, str]]]" and "dict[str, int]") [operator]
+ rotkehlchen/tests/api/test_calendar.py:168: error: Unsupported operand types for | ("dict[str, str]" and "dict[str, int]") [operator]
+ rotkehlchen/tests/api/test_calendar.py:180: error: Unsupported operand types for | ("dict[str, str]" and "dict[str, int]") [operator]
+ rotkehlchen/tests/api/test_calendar.py:192: error: Unsupported operand types for | ("dict[str, str]" and "dict[str, int]") [operator]
+ rotkehlchen/tests/api/test_calendar.py:229: error: Unsupported operand types for | ("dict[str, list[dict[str, ChecksumAddress]]]" and "dict[str, int]") [operator]
+ rotkehlchen/tests/api/test_calendar.py:352: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_calendar.py:358: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_custom_locations.py:41: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_historical_assets_price.py:107: error: Argument "json" has incompatible type "dict[str, object] | dict[str, Sequence[Sequence[object]]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_historical_assets_price.py:412: error: Argument "json" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_location_import.py:56: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_onchain_historical_balance.py:65: error: Argument "json" to "post" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_blockchain_transactions.py:49: error: Argument "json" to "post" has incompatible type "dict[str, list[dict[str, str]]] | dict[str, Sequence[Collection[str]]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_exchange_rates_query.py:71: error: Argument "json" to "get" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_exchange_rates_query.py:82: error: Argument "json" to "get" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_accounting_rules.py:89: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_accounting_rules.py:341: error: Dict entry 0 has incompatible type "str": "list[dict[str, object]]"; expected "str": "int | float | Sequence[JsonType] | Mapping[str, JsonType] | None" [dict-item]
+ rotkehlchen/tests/api/test_accounting_rules.py:954: error: Argument "json" to "put" has incompatible type "dict[str, Collection[str]]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_accounting_rules.py:1024: error: Argument "json" to "put" has incompatible type "object"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_accounting_rules.py:1100: error: Argument "json" to "put" has incompatible type "object"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:892: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:935: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:949: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:996: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1009: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1058: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1081: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1276: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1316: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1328: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1341: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1451: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1770: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1797: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:1817: error: List item 0 has incompatible type "object"; expected "int | float | Sequence[JsonType] | Mapping[str, JsonType] | None" [list-item]
+ rotkehlchen/tests/api/test_history_base_entry.py:1988: error: Argument "json" to "put" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_history_base_entry.py:2107: error: Argument "json" to "patch" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_exchanges.py:1503: error: Argument "json" to "post" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/tests/api/test_exchanges.py:1519: error: Argument "json" to "post" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ rotkehlchen/exchanges/exchange.py:172: error: Argument "headers" to "_create_session" of "ExchangeWithoutApiSecret" has incompatible type "dict[str, str]"; expected "dict[str, str | bytes] | None" [arg-type]
+ rotkehlchen/exchanges/exchange.py:172: note: "dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
+ rotkehlchen/exchanges/exchange.py:172: note: Consider using "Mapping" instead, which is covariant in the value type
+ rotkehlchen/exchanges/exchange.py:283: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[str, str | bytes]"; expected "SupportsKeysAndGetItem[str, str]" [arg-type]
+ rotkehlchen/exchanges/kraken.py:1700: error: Dict entry 0 has incompatible type "str": "ApiKey | None"; expected "str": "str | bytes" [dict-item]
+ rotkehlchen/externalapis/gnosispay.py:129: error: Incompatible types in assignment (expression has type "dict[str, str]", variable has type "CaseInsensitiveDict[str]") [assignment]
+ rotkehlchen/premium/premium.py:912: error: Dict entry 0 has incompatible type "str": "bytes"; expected "str": "str" [dict-item]
+ rotkehlchen/sigil.py:84: error: Argument "json" to "post" has incompatible type "list[SigilBatchEntry]"; expected "JsonType" [arg-type]
apprise (https://github.com/caronc/apprise)
- apprise/plugins/mattermost.py:515: error: Incompatible types in assignment (expression has type "tuple[Any]", variable has type "tuple[Any, Any]") [assignment]
+ apprise/plugins/mattermost.py:515: error: Incompatible types in assignment (expression has type "tuple[int | None]", variable has type "tuple[int | None, int | None]") [assignment]
+ tests/test_plugin_matrix.py:2676: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2677: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2678: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2682: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2683: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2734: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2736: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2740: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2748: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2753: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_matrix.py:2758: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:621: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:622: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:636: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:637: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:651: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:652: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:666: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:667: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:682: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:683: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:1454: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:1455: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:1456: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:1492: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:1493: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_plugin_fluxer.py:1494: error: Argument 1 to "_resp" has incompatible type "int | None"; expected "int" [arg-type]
+ tests/test_config_base.py:76: error: Incompatible types in assignment (expression has type "int | None", variable has type "int") [assignment]
+ tests/test_config_base.py:80: error: Unused "type: ignore" comment [unused-ignore]
zulip (https://github.com/zulip/zulip)
+ zerver/lib/outgoing_http.py:67: error: Argument "max_retries" to "__init__" of "HTTPAdapter" has incompatible type "Retry | None"; expected "int | Retry" [arg-type]
+ zerver/views/sentry.py:107: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ zerver/lib/url_preview/preview.py:62: error: Incompatible types in assignment (expression has type "str", variable has type "bytes") [assignment]
+ zerver/tornado/django_api.py:44: error: Argument 3 of "send" is incompatible with supertype "requests.adapters.HTTPAdapter"; supertype defines the argument type as "float | tuple[float | None, float | None] | None" [override]
+ zerver/tornado/django_api.py:44: note: This violates the Liskov substitution principle
+ zerver/tornado/django_api.py:44: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ zerver/tornado/django_api.py:44: error: Argument 3 of "send" is incompatible with supertype "requests.adapters.BaseAdapter"; supertype defines the argument type as "float | tuple[float | None, float | None] | None" [override]
+ zerver/tornado/django_api.py:54: error: Argument "cert" to "send" of "HTTPAdapter" has incompatible type "bytes | str | tuple[bytes | str, bytes | str] | None"; expected "str | tuple[str, str] | None" [arg-type]
+ zerver/views/video_calls.py:169: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ zerver/views/video_calls.py:287: error: Argument "json" to "post" of "Session" has incompatible type "object"; expected "JsonType" [arg-type]
+ zerver/views/video_calls.py:526: error: Argument "json" to "post" of "Session" has incompatible type "ZoomPayload"; expected "JsonType" [arg-type]
+ zerver/views/video_calls.py:805: error: Argument "json" to "post" of "Session" has incompatible type "dict[str, object]"; expected "JsonType" [arg-type]
+ zerver/tests/test_create_video_call.py:69: error: Argument 1 to "loads" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "bytes | str" [arg-type]
+ zerver/tests/test_create_video_call.py:104: error: Argument 1 to "loads" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "bytes | str" [arg-type]
+ zerver/tests/test_create_video_call.py:335: error: Argument 1 to "loads" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "bytes | str" [arg-type]
+ zerver/tests/test_create_video_call.py:464: error: Argument 1 to "loads" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "bytes | str" [arg-type]
+ zerver/tests/test_create_video_call.py:501: error: Argument 1 to "loads" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "bytes | str" [arg-type]
+ zerver/tests/test_create_video_call.py:845: error: Argument 1 to "loads" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "bytes | str" [arg-type]
+ zerver/tests/test_create_video_call.py:907: error: Argument 1 to "startswith" of "bytes" has incompatible type "str"; expected "Buffer | tuple[Buffer, ...]" [arg-type]
+ zerver/tests/test_create_video_call.py:911: error: Argument 1 to "loads" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "bytes | str" [arg-type]
+ zerver/tests/test_create_video_call.py:1018: error: Argument 1 to "loads" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "bytes | str" [arg-type]
+ zerver/tests/test_outgoing_webhook_system.py:477: error: Argument 1 to "loads" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "bytes | str" [arg-type]
PyGithub (https://github.com/PyGithub/PyGithub)
+ github/GithubRetry.py:249: error: Unused "type: ignore" comment [unused-ignore]
core (https://github.com/home-assistant/core)
+ homeassistant/components/wallbox/coordinator.py:117: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:160: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:241: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:274: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:281: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:306: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:313: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:338: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:367: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:374: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:397: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:416: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:423: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/wallbox/coordinator.py:448: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/tank_utility/sensor.py:63: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/metoffice/config_flow.py:49: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/metoffice/coordinator.py:92: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/nuheat/config_flow.py:43: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ homeassistant/components/nuheat/__init__.py:42: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
schemathesis (https://github.com/schemathesis/schemathesis)
+ src/schemathesis/core/loaders.py: note: In function "handle_request_error":
+ src/schemathesis/core/loaders.py:59: error: Argument "url" to "LoaderError" has incompatible type "str | bytes | None"; expected "str | None" [arg-type]
+ src/schemathesis/python/asgi.py: note: In member "send" of class "_ASGIAdapter":
+ src/schemathesis/python/asgi.py:281: error: Item "bytes" of "str | bytes" has no attribute "encode" [union-attr]
+ src/schemathesis/python/asgi.py: note: In member "request" of class "ASGIClient":
+ src/schemathesis/python/asgi.py:420: error: Argument 1 to "request" of "Session" has incompatible type "str | bytes"; expected "str" [arg-type]
+ src/schemathesis/auths.py: note: In function "_from_requests_response":
+ src/schemathesis/auths.py:193: error: Argument "cookies" to "AuthEndpointResponse" has incompatible type "dict[str, str | None]"; expected "dict[str, str]" [arg-type]
+ src/schemathesis/transport/requests.py:67: error: Unused "type: ignore" comment [unused-ignore]
+ src/schemathesis/transport/requests.py: note: In member "send" of class "RequestsTransport":
+ src/schemathesis/transport/requests.py:275: error: Incompatible types in assignment (expression has type "dict[Never, Never]", variable has type "CaseInsensitiveDict[str]") [assignment]
+ src/schemathesis/transport/requests.py:293: error: Incompatible types in assignment (expression has type "MutableMapping[str, Any]", variable has type "CaseInsensitiveDict[str]") [assignment]
+ src/schemathesis/transport/requests.py: note: In function "multipart_serializer":
+ src/schemathesis/transport/requests.py:715: error: Incompatible types in assignment (expression has type "str | bytes", variable has type "str") [assignment]
+ src/schemathesis/transport/requests.py:715: error: Argument 1 to "replace" of "bytes" has incompatible type "str"; expected "Buffer" [arg-type]
+ src/schemathesis/transport/requests.py:715: error: Argument 2 to "replace" of "bytes" has incompatible type "str"; expected "Buffer" [arg-type]
+ src/schemathesis/transport/wsgi.py: note: In function "_auth_headers":
+ src/schemathesis/transport/wsgi.py:68: error: Value expression in dictionary comprehension has incompatible type "str | bytes"; expected type "str" [misc]
+ src/schemathesis/transport/wsgi.py: note: At top level:
+ src/schemathesis/engine/recorder.py: note: In member "from_prepared_request" of class "Request":
+ src/schemathesis/engine/recorder.py:473: error: List item 0 has incompatible type "str | bytes"; expected "str" [list-item]
+ src/schemathesis/engine/recorder.py:474: error: Argument "body" to "Request" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str] | None"; expected "bytes | None" [arg-type]
+ src/schemathesis/engine/recorder.py:475: error: Argument 1 to "len" has incompatible type "bytes | Iterable[bytes | str] | SupportsRead[bytes | str]"; expected "Sized" [arg-type]
+ src/schemathesis/specs/openapi/checks.py: note: In function "_sent_form_fields":
+ src/schemathesis/specs/openapi/checks.py:469: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe]
+ src/schemathesis/specs/openapi/checks.py: note: In function "_contains_auth":
+ src/schemathesis/specs/openapi/checks.py:1775: error: Argument 1 to "load" of "BaseCookie" has incompatible type "str | bytes"; expected "str | SupportsItems[str, str | Morsel[Any]]" [arg-type]
+ src/schemathesis/specs/openapi/checks.py: note: At top level:
+ src/schemathesis/specs/openapi/checks.py:1787: error: Unused "type: ignore" comment [unused-ignore]
+ src/schemathesis/engine/context.py: note: In member "get_session" of class "EngineContext":
+ src/schemathesis/engine/context.py:279: error: Incompatible types in assignment (expression has type "dict[Never, Never]", variable has type "CaseInsensitiveDict[str]") [assignment]
+ src/schemathesis/engine/context.py: note: In function "make_session":
+ src/schemathesis/engine/context.py:383: error: Incompatible types in assignment (expression has type "dict[Never, Never]", variable has type "CaseInsensitiveDict[str]") [assignment]
+ src/schemathesis/engine/context.py:385: error: Incompatible types in assignment (expression has type "bool | str | None", variable has type "bool | str") [assignment]
+ src/schemathesis/cli/commands/replay/executor.py: note: In function "_sent_value":
+ src/schemathesis/cli/commands/replay/executor.py:597: error: Incompatible return value type (got "str | bytes | None", expected "str | None") [return-value]
+ src/schemathesis/cli/commands/replay/executor.py:601: error: Argument 1 to "split" of "bytes" has incompatible type "str"; expected "Buffer | None" [arg-type]
+ src/schemathesis/cli/commands/replay/executor.py:602: error: Incompatible return value type (got "str | bytes | None", expected "str | None") [return-value]
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:270: error: Library stubs not installed for "requests" [import-untyped]
+ pyodide-build/pyodide_build/recipe/builder.py:19: error: Library stubs not installed for "requests" [import-untyped]
+ pyodide-build/pyodide_build/out_of_tree/pypi.py:20: error: Library stubs not installed for "requests" [import-untyped]
+ pyodide-build/pyodide_build/cli/build.py:11: error: Library stubs not installed for "requests" [import-untyped]
+ pyodide-build/pyodide_build/cli/build.py:11: note: Hint: "python3 -m pip install types-requests"
+ pyodide-build/pyodide_build/cli/build.py:11: note: (or run "mypy --install-types" to install all missing stub packages)
+ pyodide-build/pyodide_build/tests/test_xbuildenv_releases.py:5: error: Library stubs not installed for "requests" [import-untyped]
cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/url_helper.py:305: error: Statement is unreachable [unreachable]
+ cloudinit/url_helper.py:344: error: No overload variant of "iter_content" of "Response" matches argument types "int | None", "bool" [call-overload]
+ cloudinit/url_helper.py:344: note: Possible overload variants:
+ cloudinit/url_helper.py:344: note: def iter_content(self, chunk_size: int | None = ..., decode_unicode: Literal[False] = ...) -> Iterator[bytes]
+ cloudinit/url_helper.py:344: note: def iter_content(self, chunk_size: int | None = ..., *, decode_unicode: Literal[True]) -> Iterator[str | bytes]
+ cloudinit/url_helper.py:594: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ cloudinit/url_helper.py:595: error: Item "None" of "Response | None" has no attribute "headers" [union-attr]
+ cloudinit/url_helper.py:812: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ cloudinit/url_helper.py:813: error: Item "None" of "Response | None" has no attribute "headers" [union-attr]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/services/utils.py:24: error: Module "requests.sessions" has no attribute "_Params" [attr-defined]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/flink_tools.py:322: error: Incompatible types in assignment (expression has type "str | bytes", variable has type "str") [assignment]
+ paasta_tools/flink_tools.py:344: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe]
twine (https://github.com/pypa/twine)
+ twine/auth.py:88: error: Redundant cast to "PreparedRequest" [redundant-cast]
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/cloudtest/util/jwt_key.py:43: error: Item "None" of "Response | None" has no attribute "text" [union-attr]
xarray (https://github.com/pydata/xarray)
- xarray/tests/backends/test_pydap.py:130: note: ... from here:
- xarray/tests/backends/test_pydap.py:130: note: ... from here:
- xarray/tests/backends/test_pydap.py:130: note: ... from here:
+ xarray/tests/backends/test_pydap.py:130: error: Library stubs not installed for "requests" [import-untyped]
+ xarray/tests/backends/test_pydap.py:130: note: Hint: "python3 -m pip install types-requests"
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/inspection/lazy_wheel.py:23: error: Module "requests.models" does not explicitly export attribute "HTTPError" [attr-defined]
+ src/poetry/utils/authenticator.py:246: error: Argument 1 to "merge_environment_settings" of "Session" has incompatible type "str | None"; expected "str" [arg-type]
+ src/poetry/utils/download.py:135: error: Argument 1 to "atomic_open" has incompatible type "Path"; expected "str" [arg-type]
+ tests/utils/test_download.py:80: error: Argument 1 to "split" of "bytes" has incompatible type "str"; expected "Buffer | None" [arg-type]
+ tests/inspection/test_lazy_wheel.py:150: error: Argument 1 to "split" of "bytes" has incompatible type "str"; expected "Buffer | None" [arg-type]
+ tests/inspection/test_lazy_wheel.py:153: error: Argument 1 to "startswith" of "bytes" has incompatible type "str"; expected "Buffer | tuple[Buffer, ...]" [arg-type]
+ tests/inspection/test_lazy_wheel.py:171: error: Argument 1 to "build_partial_response" has incompatible type "str | bytes"; expected "str" [arg-type]
+ tests/inspection/test_lazy_wheel.py:304: error: Argument "negative_offset_error" to "__call__" of "AssertMetadataFromWheelUrl" has incompatible type "tuple[int | None, bytes]"; expected "tuple[int, bytes] | None" [arg-type]
+ tests/inspection/test_lazy_wheel.py:327: error: Argument "negative_offset_error" to "__call__" of "AssertMetadataFromWheelUrl" has incompatible type "tuple[int | None, bytes]"; expected "tuple[int, bytes] | None" [arg-type]
+ tests/inspection/test_lazy_wheel.py:427: error: Argument "negative_offset_error" to "__call__" of "RequestCallbackFactory" has incompatible type "tuple[int | None, bytes]"; expected "tuple[int, bytes] | None" [arg-type]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/wikidata.py: note: In function "_get_from_web":
+ openlibrary/core/wikidata.py:211: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
+ openlibrary/accounts/model.py: note: In member "s3auth" of class "InternetArchiveAccount":
+ openlibrary/accounts/model.py:984: error: Item "None" of "Response | None" has no attribute "text" [union-attr]
+ openlibrary/accounts/model.py:984: error: Item "None" of "Response | None" has no attribute "status_code" [union-attr]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/bnb.py:381:57: error: Argument "json" to "post" has incompatible type "dict[str, Collection[str]]"; expected "JsonType | None" [arg-type]
|
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.
Typeshed release: https://pypi.org/pypi/types-requests
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/requests