fix: require pyrefly prefix in type ignore codes#3860
Open
WilliamK112 wants to merge 1 commit into
Open
Conversation
|
Diff from mypy_primer, showing the effect of this PR on open source code: pip (https://github.com/pypa/pip)
+ ERROR src/pip/_internal/index/collector.py:82:40-63: Argument `str | None` is not assignable to parameter `request_desc` with type `str` in function `_NotAPIContent.__init__` [bad-argument-type]
+ ERROR src/pip/_internal/network/session.py:278:9-33: Object of class `object` has no attribute `init_poolmanager` [missing-attribute]
+ ERROR src/pip/_internal/network/session.py:290:16-41: Object of class `object` has no attribute `proxy_manager_for` [missing-attribute]
+ ERROR src/pip/_internal/utils/unpacking.py:242:35-39: `None` is not assignable to attribute `mode` with type `int` [bad-assignment]
+ ERROR src/pip/_vendor/cachecontrol/_cmd.py:36:5-26: Object of class `Session` has no attribute `cache_controller` [missing-attribute]
+ ERROR src/pip/_vendor/cachecontrol/_cmd.py:58:9-30: Object of class `Session` has no attribute `cache_controller` [missing-attribute]
+ ERROR src/pip/_vendor/cachecontrol/adapter.py:80:9-23: Class member `CacheControlAdapter.build_response` overrides parent class `HTTPAdapter` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/cachecontrol/adapter.py:128:32-133:18: `CallbackFileWrapper` is not assignable to attribute `_fp` with type `HTTPResponse | None` [bad-assignment]
+ ERROR src/pip/_vendor/cachecontrol/adapter.py:129:21-33: Argument `HTTPResponse | None` is not assignable to parameter `fp` with type `HTTPResponse` in function `pip._vendor.cachecontrol.filewrapper.CallbackFileWrapper.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/cachecontrol/adapter.py:146:29-44: Object of class `HTTPResponse` has no attribute `_close`
+ Object of class `NoneType` has no attribute `_close` [missing-attribute]
+ ERROR src/pip/_vendor/cachecontrol/adapter.py:161:9-24: Object of class `Response` has no attribute `from_cache` [missing-attribute]
+ ERROR src/pip/_vendor/cachecontrol/filewrapper.py:111:23-43: Object of class `HTTPResponse` has no attribute `_safe_read` [missing-attribute]
+ ERROR src/pip/_vendor/cachecontrol/heuristics.py:73:32-40: `None` is not subscriptable [unsupported-operation]
+ ERROR src/pip/_vendor/cachecontrol/serialize.py:35:28-44: `BytesIO` is not assignable to attribute `_fp` with type `HTTPResponse | None` [bad-assignment]
+ ERROR src/pip/_vendor/certifi/core.py:11:5-25: Object of class `NoneType` has no attribute `__exit__` [missing-attribute]
+ ERROR src/pip/_vendor/packaging/metadata.py:487:13-63: Argument `Message | bytes | list[Message | str] | str | Any` is not assignable to parameter `object` with type `str` in function `list.append` [bad-argument-type]
+ ERROR src/pip/_vendor/packaging/metadata.py:566:31-40: Cannot delete item in `RawMetadata` [unsupported-operation]
+ ERROR src/pip/_vendor/packaging/version.py:443:21-86: `tuple[str, int] | None` is not assignable to attribute `_pre` with type `tuple[Literal['a', 'b', 'rc'], int] | None` [bad-assignment]
+ ERROR src/pip/_vendor/packaging/version.py:444:22-446:10: `tuple[str, int] | None` is not assignable to attribute `_post` with type `tuple[Literal['post'], int] | None` [bad-assignment]
+ ERROR src/pip/_vendor/packaging/version.py:447:21-86: `tuple[str, int] | None` is not assignable to attribute `_dev` with type `tuple[Literal['dev'], int] | None` [bad-assignment]
+ ERROR src/pip/_vendor/pkg_resources/__init__.py:3319:31-35: Unpacked keyword argument `IResourceProvider | int | str | None` is not assignable to parameter `location` with type `str | None` in function `Distribution.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/pkg_resources/__init__.py:3319:31-35: Unpacked keyword argument `IResourceProvider | int | str | None` is not assignable to parameter `metadata` with type `IResourceProvider | None` in function `Distribution.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/pkg_resources/__init__.py:3319:31-35: Unpacked keyword argument `IResourceProvider | int | str | None` is not assignable to parameter `project_name` with type `str | None` in function `Distribution.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/pkg_resources/__init__.py:3319:31-35: Unpacked keyword argument `IResourceProvider | int | str | None` is not assignable to parameter `version` with type `str | None` in function `Distribution.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/pkg_resources/__init__.py:3319:31-35: Unpacked keyword argument `IResourceProvider | int | str | None` is not assignable to parameter `py_version` with type `str | None` in function `Distribution.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/pkg_resources/__init__.py:3319:31-35: Unpacked keyword argument `IResourceProvider | int | str | None` is not assignable to parameter `platform` with type `str | None` in function `Distribution.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/pkg_resources/__init__.py:3319:31-35: Unpacked keyword argument `IResourceProvider | int | str | None` is not assignable to parameter `precedence` with type `int` in function `Distribution.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/requests/adapters.py:379:32-61: `Any | None` is not assignable to attribute `status_code` with type `int` [bad-assignment]
+ ERROR src/pip/_vendor/requests/adapters.py:699:22-34: Argument `Iterable[bytes | str] | SupportsRead[bytes | str] | bytes | str | None` is not assignable to parameter `body` with type `IO[Any] | Iterable[bytes | str] | bytes | str | None` in function `pip._vendor.urllib3.connectionpool.HTTPConnectionPool.urlopen` [bad-argument-type]
+ ERROR src/pip/_vendor/requests/adapters.py:700:25-40: Argument `CaseInsensitiveDict[bytes | str]` is not assignable to parameter `headers` with type `Mapping[str, str] | None` in function `pip._vendor.urllib3.connectionpool.HTTPConnectionPool.urlopen` [bad-argument-type]
+ ERROR src/pip/_vendor/requests/cookies.py:87:16-79: Returned type `bytes | str | None` is not assignable to declared return type `str | None` [bad-return]
+ ERROR src/pip/_vendor/requests/cookies.py:150:25-28: Argument `MockResponse` is not assignable to parameter `response` with type `HTTPResponse` in function `http.cookiejar.CookieJar.extract_cookies` [bad-argument-type]
+ ERROR src/pip/_vendor/requests/cookies.py:150:30-33: Argument `MockRequest` is not assignable to parameter `request` with type `Request` in function `http.cookiejar.CookieJar.extract_cookies` [bad-argument-type]
+ ERROR src/pip/_vendor/requests/cookies.py:160:27-28: Argument `MockRequest` is not assignable to parameter `request` with type `Request` in function `http.cookiejar.CookieJar.add_cookie_header` [bad-argument-type]
+ ERROR src/pip/_vendor/requests/cookies.py:211:9-12: Class member `RequestsCookieJar.get` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/requests/cookies.py:259:9-13: Class member `RequestsCookieJar.keys` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/requests/cookies.py:276:9-15: Class member `RequestsCookieJar.values` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/requests/cookies.py:293:9-14: Class member `RequestsCookieJar.items` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/requests/cookies.py:348:9-17: Class member `RequestsCookieJar.__iter__` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/requests/cookies.py:391:9-15: Class member `RequestsCookieJar.update` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/requests/models.py:96:42-102:2: `tuple[int | None, int | None, int | None, int | None, int | None]` is not assignable to `tuple[int, ...]` [bad-assignment]
+ ERROR src/pip/_vendor/requests/models.py:181:20-24: Returned type `Iterable[tuple[Any, Any]] | SupportsItems[Any, Any]` is not assignable to declared return type `SupportsRead[bytes | str] | bytes | str` [bad-return]
+ ERROR src/pip/_vendor/requests/models.py:411:24-28: `None` is not assignable to attribute `headers` with type `CaseInsensitiveDict[bytes | str]` [bad-assignment]
+ ERROR src/pip/_vendor/requests/models.py:458:21-78: `CaseInsensitiveDict[bytes | str] | None` is not assignable to attribute `headers` with type `CaseInsensitiveDict[bytes | str]` [bad-assignment]
+ ERROR src/pip/_vendor/requests/models.py:650:21-25: `Buffer | Iterable[bytes | str] | Iterable[tuple[Any, Any]] | SupportsItems[Any, Any] | SupportsRead[bytes | str] | bytes | str | None` is not assignable to attribute `body` with type `Iterable[bytes | str] | SupportsRead[bytes | str] | bytes | str | None` [bad-assignment]
+ ERROR src/pip/_vendor/requests/models.py:769:28-32: `None` is not assignable to attribute `status_code` with type `int` [bad-assignment]
+ ERROR src/pip/_vendor/requests/models.py:782:20-24: `None` is not assignable to attribute `url` with type `str` [bad-assignment]
+ ERROR src/pip/_vendor/requests/models.py:793:23-27: `None` is not assignable to attribute `reason` with type `str` [bad-assignment]
+ ERROR src/pip/_vendor/requests/models.py:808:24-28: `None` is not assignable to attribute `request` with type `PreparedRequest` [bad-assignment]
+ ERROR src/pip/_vendor/requests/models.py:1013:45-60: `+` is not supported between `bytes` and `str` [unsupported-operation]
+ ERROR src/pip/_vendor/requests/models.py:1013:45-60: `+` is not supported between `str` and `bytes` [unsupported-operation]
+ ERROR src/pip/_vendor/requests/models.py:1016:36-47: No matching overload found for function `str.split` called with arguments: (bytes | str) [no-matching-overload]
+ ERROR src/pip/_vendor/requests/models.py:1016:37-46: Argument `bytes | str` is not assignable to parameter `sep` with type `Buffer | None` in function `bytes.split` [bad-argument-type]
+ ERROR src/pip/_vendor/requests/models.py:1047:16-29: Returned type `bytes | None` is not assignable to declared return type `bytes` [bad-return]
+ ERROR src/pip/_vendor/requests/sessions.py:290:23-26: Yielded type `PreparedRequest` is not assignable to declared yield type `Response` [invalid-yield]
+ ERROR src/pip/_vendor/requests/sessions.py:820:27-822:18: `Response` is not assignable to attribute `_next` with type `PreparedRequest | None` [bad-assignment]
+ ERROR src/pip/_vendor/requests/structures.py:118:9-20: Class member `LookupDict.__getitem__` overrides parent class `dict` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/requests/utils.py:287:16-38: Returned type `bytes | str` is not assignable to declared return type `str | None` [bad-return]
+ ERROR src/pip/_vendor/requests/utils.py:1080:25-40: Argument `str | None` is not assignable to parameter `string` with type `bytes | str` in function `urllib.parse.unquote` [bad-argument-type]
+ ERROR src/pip/_vendor/requests/utils.py:1080:51-66: Argument `str | None` is not assignable to parameter `string` with type `bytes | str` in function `urllib.parse.unquote` [bad-argument-type]
+ ERROR src/pip/_vendor/requests/utils.py:1114:27-40: No matching overload found for function `re.Pattern.match` called with arguments: (bytes | str) [no-matching-overload]
+ ERROR src/pip/_vendor/requests/utils.py:1114:27-40: No matching overload found for function `re.Pattern.match` called with arguments: (bytes | str) [no-matching-overload]
+ ERROR src/pip/_vendor/resolvelib/resolvers/resolution.py:568:9-16: Class member `Resolver.resolve` overrides parent class `AbstractResolver` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/rich/console.py:86:21-41: Object of class `NoneType` has no attribute `fileno` [missing-attribute]
+ ERROR src/pip/_vendor/rich/console.py:90:22-43: Object of class `NoneType` has no attribute `fileno` [missing-attribute]
+ ERROR src/pip/_vendor/rich/console.py:94:22-43: Object of class `NoneType` has no attribute `fileno` [missing-attribute]
+ ERROR src/pip/_vendor/rich/console.py:514:9-20: Could not find name `get_ipython` [unknown-name]
+ ERROR src/pip/_vendor/rich/console.py:517:15-26: Could not find name `get_ipython` [unknown-name]
+ ERROR src/pip/_vendor/rich/pretty.py:204:13-23: No attribute `_` in module `builtins` [missing-attribute]
+ ERROR src/pip/_vendor/rich/pretty.py:221:13-23: No attribute `_` in module `builtins` [missing-attribute]
+ ERROR src/pip/_vendor/rich/pretty.py:224:14-25: Could not find name `get_ipython` [unknown-name]
+ ERROR src/pip/_vendor/rich/pretty.py:1006:24-28: Argument `dict[str, BrokenRepr | Counter[str] | StockKeepingUnit | defaultdict[str, list[str]] | frozenset[int] | list[float | int | set[int | tuple[int, int, int, int]] | str] | tuple[bool, bool, None]]` is not assignable to parameter `object` with type `float | int | set[int | tuple[int, int, int, int]] | str` in function `list.append` [bad-argument-type]
+ ERROR src/pip/_vendor/rich/progress.py:250:9-17: Class member `_Reader.readinto` overrides parent class `RawIOBase` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/rich/progress.py:251:13-33: Object of class `BinaryIO` has no attribute `readinto` [missing-attribute]
+ ERROR src/pip/_vendor/rich/progress.py:255:9-17: Class member `_Reader.readline` overrides parent class `RawIOBase` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/rich/progress.py:504:12-42: Returned type `_ReadContext[BinaryIO | TextIO]` is not assignable to declared return type `AbstractContextManager[BinaryIO] | AbstractContextManager[TextIO]` [bad-return]
+ ERROR src/pip/_vendor/rich/progress.py:504:24-42: `BinaryIO | TextIO` is not assignable to any of constraints `TextIO`, `BinaryIO` of type variable `_I` [bad-specialization]
+ ERROR src/pip/_vendor/rich/repr.py:48:37-55: Object of class `object` has no attribute `__rich_repr__` [missing-attribute]
+ ERROR src/pip/_vendor/rich/repr.py:49:24-42: Object of class `object` has no attribute `__rich_repr__` [missing-attribute]
+ ERROR src/pip/_vendor/rich/repr.py:95:13-30: Class `object` has no class attribute `__rich_repr__` [missing-attribute]
+ ERROR src/pip/_vendor/rich/repr.py:144:5-30: Object of class `FunctionType` has no attribute `angular` [missing-attribute]
+ ERROR src/pip/_vendor/rich/traceback.py:204:14-25: Could not find name `get_ipython` [unknown-name]
+ ERROR src/pip/_vendor/truststore/__init__.py:23:27-42: Object of class `SSLObject` has no attribute `_sslobj` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_api.py:87:40-44: Default `None` is not assignable to parameter `protocol` with type `int` [bad-function-definition]
+ ERROR src/pip/_vendor/truststore/_api.py:244:9-59: Object of class `int` has no attribute `__set__` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_api.py:254:9-59: Object of class `int` has no attribute `__set__` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_api.py:264:9-51: Object of class `int` has no attribute `__set__` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_api.py:290:9-56: Object of class `int` has no attribute `__set__` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_api.py:300:9-55: Object of class `int` has no attribute `__set__` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_api.py:331:29-43: `SSLObject | SSLSocket` is not assignable to `SSLObject` [bad-assignment]
+ ERROR src/pip/_vendor/truststore/_api.py:334:22-36: Object of class `SSLObject` has no attribute `_sslobj` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:126:5-25: Object of class `CDLL` has no attribute `SecTrustRef` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:127:5-32: Object of class `CDLL` has no attribute `SecTrustResultType` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:128:5-22: Object of class `CDLL` has no attribute `OSStatus` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:196:5-39: Object of class `CDLL` has no attribute `kCFAllocatorDefault` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:199:5-41: Object of class `CDLL` has no attribute `kCFTypeArrayCallBacks` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:203:5-29: Object of class `CDLL` has no attribute `CFTypeRef` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:204:5-30: Object of class `CDLL` has no attribute `CFArrayRef` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:205:5-31: Object of class `CDLL` has no attribute `CFStringRef` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:206:5-30: Object of class `CDLL` has no attribute `CFErrorRef` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_macos.py:276:52-68: `(result: c_int32, _: Any, args: Any) -> Any` is not assignable to attribute `errcheck` with type `(Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any] | None, CFuncPtr, tuple[Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any], ...]) -> Array[Any] | CFuncPtr | Structure | Union | _Pointer[Any] | _SimpleCData[Any]` [bad-assignment]
+ ERROR src/pip/_vendor/truststore/_macos.py:277:51-67: `(result: c_int32, _: Any, args: Any) -> Any` is not assignable to attribute `errcheck` with type `(Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any] | None, CFuncPtr, tuple[Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any], ...]) -> Array[Any] | CFuncPtr | Structure | Union | _Pointer[Any] | _SimpleCData[Any]` [bad-assignment]
+ ERROR src/pip/_vendor/truststore/_macos.py:278:55-71: `(result: c_int32, _: Any, args: Any) -> Any` is not assignable to attribute `errcheck` with type `(Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any] | None, CFuncPtr, tuple[Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any], ...]) -> Array[Any] | CFuncPtr | Structure | Union | _Pointer[Any] | _SimpleCData[Any]` [bad-assignment]
+ ERROR src/pip/_vendor/truststore/_macos.py:279:44-60: `(result: c_int32, _: Any, args: Any) -> Any` is not assignable to attribute `errcheck` with type `(Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any] | None, CFuncPtr, tuple[Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any], ...]) -> Array[Any] | CFuncPtr | Structure | Union | _Pointer[Any] | _SimpleCData[Any]` [bad-assignment]
+ ERROR src/pip/_vendor/truststore/_macos.py:280:38-54: `(result: c_int32, _: Any, args: Any) -> Any` is not assignable to attribute `errcheck` with type `(Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any] | None, CFuncPtr, tuple[Array[Any] | CFuncPtr | Structure | Union | _CData | _Pointer[Any] | _SimpleCData[Any], ...]) -> Array[Any] | CFuncPtr | Structure | Union | _Pointer[Any] | _SimpleCData[Any]` [bad-assignment]
+ ERROR src/pip/_vendor/truststore/_ssl_constants.py:31:5-51: Object of class `int` has no attribute `__set__` [missing-attribute]
+ ERROR src/pip/_vendor/truststore/_windows.py:85:24-48: `pointer` is not subscriptable [unsupported-operation]
+ ERROR src/pip/_vendor/urllib3/_collections.py:151:9-13: Class member `RecentlyUsedContainer.keys` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/urllib3/_collections.py:451:9-14: Class member `HTTPHeaderDict.items` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/urllib3/_request_methods.py:138:24-30: Argument `Mapping[str, _TYPE_FIELD_VALUE_TUPLE] | Sequence[RequestField | tuple[str, _TYPE_FIELD_VALUE_TUPLE]] | None` is not assignable to parameter `fields` with type `Mapping[str, bytes | str] | Sequence[tuple[str, bytes | str]] | None` in function `RequestMethods.request_encode_url` [bad-argument-type]
+ ERROR src/pip/_vendor/urllib3/_request_methods.py:269:31-37: Argument `Mapping[str, _TYPE_FIELD_VALUE_TUPLE] | Sequence[RequestField | tuple[str, _TYPE_FIELD_VALUE_TUPLE]]` is not assignable to parameter `query` with type `Mapping[bytes | str, Sequence[object]] | Mapping[bytes | str, object] | Mapping[bytes, Sequence[object]] | Mapping[bytes, object] | Mapping[str, Sequence[object]] | Mapping[str, object] | Sequence[tuple[bytes | str, Sequence[object]]] | Sequence[tuple[bytes | str, object]]` in function `urllib.parse.urlencode` [bad-argument-type]
+ ERROR src/pip/_vendor/urllib3/connection.py:107:5-17: ClassVar `HTTPConnection.default_port` overrides instance variable of the same name in parent class `HTTPConnection` [bad-override]
+ ERROR src/pip/_vendor/urllib3/connection.py:298:37-61: Object of class `NoneType` has no attribute `encode` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connection.py:302:38-58: Object of class `HTTPConnection` has no attribute `_tunnel_headers` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connection.py:311:66-78: Object of class `HTTPConnection` has no attribute `_method` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connection.py:313:48-69: Object of class `HTTPResponse` has no attribute `_read_status` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connection.py:315:47-72: No attribute `_read_headers` in module `http.client` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connection.py:410:9-18: Class member `HTTPConnection.putheader` overrides parent class `HTTPConnection` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/urllib3/connection.py:424:9-16: Class member `HTTPConnection.request` overrides parent class `HTTPConnection` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/urllib3/connection.py:540:9-20: Class member `HTTPConnection.getresponse` overrides parent class `HTTPConnection` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/urllib3/connection.py:998:46-68: `dict[str, str | tuple[tuple[str, str], ...] | tuple[tuple[tuple[str, str], ...], ...]] | _TYPE_PEER_CERT_RET_DICT | None` is not assignable to `_TYPE_PEER_CERT_RET_DICT` [bad-assignment]
+ ERROR src/pip/_vendor/urllib3/connection.py:1012:17-51: Argument `str | None` is not assignable to parameter `asserted_hostname` with type `str` in function `_match_hostname` [bad-argument-type]
+ ERROR src/pip/_vendor/urllib3/connection.py:1048:9-21: Object of class `CertificateError` has no attribute `_peer_cert` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connection.py:1086:23-38: `type[DummyConnection]` is not assignable to variable `HTTPSConnection` with type `type[HTTPSConnection]` [bad-assignment]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:541:9-29: Object of class `BaseHTTPResponse` has no attribute `_connection` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:542:9-23: Object of class `BaseHTTPResponse` has no attribute `_pool` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:592:9-16: Class member `HTTPConnectionPool.urlopen` overrides parent class `RequestMethods` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:749:23-35: Object of class `Mapping` has no attribute `copy` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:769:28-55: `_TYPE_DEFAULT | float | None` is not assignable to attribute `timeout` with type `float | None` [bad-assignment]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:906:31-43: Object of class `Mapping` has no attribute `copy` [missing-attribute]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:1042:9-23: Class member `HTTPSConnectionPool._prepare_proxy` overrides parent class `HTTPConnectionPool` in an inconsistent manner [bad-override]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:1145:36-40: Argument `str | None` is not assignable to parameter `host` with type `str` in function `HTTPSConnectionPool.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/urllib3/connectionpool.py:1147:35-39: Argument `str | None` is not assignable to parameter `host` with type `str` in function `HTTPConnectionPool.__init__` [bad-argument-type]
+ ERROR src/pip/_vendor/urllib3/contrib/emscripten/__init__.py:15:41-65: `type[EmscriptenHTTPConnection]` is not assignable to attribute `HTTPConnection` with type `type[HTTPConnection]` [bad-assignment]
+ ERROR src/pip/_vendor/urllib3/contrib/emscripten/__init__.py:16:42-67: `type[EmscriptenHTTPSConnection]` is not assignable to attribute `HTTPSConnection` with type `type[HTTPSConnection]` [bad-assignment]
+ ERROR src/pip/_vendor/urllib3/contrib/emscripten/__init__.py:17:50-75: `type[EmscriptenHTTPSConnection]` is not assignable to attribute `VerifiedHTTPSConnection` with type `type[HTTPSConnection]` [bad-assignment]
+ ERROR src/pip/_vendor/urllib3/contrib/pyopenssl.py:143:23-39: `type[PyOpenSSLContext]` is not assignable to attribute `SSLContext` with type `type[SSLContext] | None` [bad-assignment]
... (truncated 50 lines) ...
tornado (https://github.com/tornadoweb/tornado)
+ ERROR tornado/test/gettext_translations/extract_me.py:11:1-2: Could not find name `_` [unknown-name]
+ ERROR tornado/test/gettext_translations/extract_me.py:12:1-9: Could not find name `pgettext` [unknown-name]
+ ERROR tornado/test/gettext_translations/extract_me.py:13:1-9: Could not find name `pgettext` [unknown-name]
+ ERROR tornado/test/gettext_translations/extract_me.py:14:1-9: Could not find name `pgettext` [unknown-name]
+ ERROR tornado/test/gettext_translations/extract_me.py:15:1-9: Could not find name `pgettext` [unknown-name]
+ ERROR tornado/test/ioloop_test.py:553:17-23: Class member `MyExecutor.submit` overrides parent class `ThreadPoolExecutor` in an inconsistent manner [bad-override]
+ ERROR tornado/test/iostream_test.py:850:13-34: Object of class `IOLoop` has no attribute `selector_loop` [missing-attribute]
+ ERROR tornado/test/web_test.py:116:9-19: Class member `CookieTestRequestHandler.get_cookie` overrides parent class `RequestHandler` in an inconsistent manner [bad-override]
+ ERROR tornado/test/web_test.py:119:9-19: Class member `CookieTestRequestHandler.set_cookie` overrides parent class `RequestHandler` in an inconsistent manner [bad-override]
+ ERROR tornado/test/websocket_test.py:145:9-19: Class member `CoroutineOnMessageHandler.initialize` overrides parent class `TestWebSocketHandler` in an inconsistent manner [bad-override]
+ ERROR tornado/test/websocket_test.py:165:9-19: Class member `SubprotocolHandler.initialize` overrides parent class `TestWebSocketHandler` in an inconsistent manner [bad-override]
+ ERROR tornado/test/websocket_test.py:184:9-19: Class member `OpenCoroutineHandler.initialize` overrides parent class `TestWebSocketHandler` in an inconsistent manner [bad-override]
+ ERROR tornado/test/websocket_test.py:638:9-19: Class member `NativeCoroutineOnMessageHandler.initialize` overrides parent class `TestWebSocketHandler` in an inconsistent manner [bad-override]
+ ERROR tornado/testing.py:159:32-57: Object of class `IOLoop` has no attribute `asyncio_loop` [missing-attribute]
+ ERROR tornado/wsgi.py:256:13-260:32: `+` is not supported between `str` and `None` [unsupported-operation]
openlibrary (https://github.com/internetarchive/openlibrary)
+ ERROR openlibrary/core/auth.py:77:25-46: `>` is not supported between `datetime` and `Literal[0]` [unsupported-operation]
+ ERROR openlibrary/core/auth.py:77:25-46: `>` is not supported between `datetime` and `float` [unsupported-operation]
+ ERROR openlibrary/core/auth.py:77:25-46: `>` is not supported between `float` and `datetime` [unsupported-operation]
+ ERROR openlibrary/core/lists/model.py:660:9-14: Class member `Series.seeds` overrides parent class `List` in an inconsistent manner [bad-override]
+ ERROR openlibrary/fastapi/public_my_books.py:74:11-22: `LiteralString` is not assignable to variable `key` with type `Literal['already-read', 'currently-reading', 'stopped-reading', 'want-to-read']` [bad-assignment]
+ ERROR openlibrary/fastapi/search.py:272:11-25: `ListSortOption` is not a valid type alias: Function call cannot be used in annotations [invalid-annotation]
+ ERROR openlibrary/fastapi/search.py:327:11-27: `AuthorSortOption` is not a valid type alias: Function call cannot be used in annotations [invalid-annotation]
+ ERROR openlibrary/plugins/openlibrary/code.py:37:5-29: No attribute `features` in module `infogami.config` [missing-attribute]
+ ERROR openlibrary/plugins/openlibrary/code.py:100:1-36: No attribute `http_ext_header_uri` in module `infogami.config` [missing-attribute]
+ ERROR openlibrary/plugins/openlibrary/code.py:105:34-57: `() -> Connection | ConnectionMiddleware` is not assignable to dict key `ol` with type `type[LocalConnection] | type[RemoteConnection]` [bad-assignment]
+ ERROR openlibrary/plugins/openlibrary/code.py:292:9-12: Class member `widget.GET` overrides parent class `page` in an inconsistent manner [bad-override]
+ ERROR openlibrary/plugins/openlibrary/lists.py:322:9-12: Class member `lists_edit.GET` overrides parent class `page` in an inconsistent manner [bad-override]
+ ERROR openlibrary/plugins/openlibrary/lists.py:446:9-12: Class member `lists_add.GET` overrides parent class `page` in an inconsistent manner [bad-override]
+ ERROR openlibrary/plugins/upstream/borrow.py:64:23-45: No attribute `bookreader_host` in module `infogami.config` [missing-attribute]
+ ERROR openlibrary/plugins/upstream/borrow.py:481:22-45: No attribute `ia_access_secret` in module `infogami.config` [missing-attribute]
+ ERROR openlibrary/plugins/upstream/code.py:44:5-26: No attribute `coverstore_url` in module `infogami.config` [missing-attribute]
+ ERROR openlibrary/plugins/upstream/models.py:608:29-43: `int` is not assignable to dict key `limit` with type `str` [bad-assignment]
+ ERROR openlibrary/plugins/upstream/mybooks.py:591:18-30: Argument `Literal['created desc', 'created_asc']` is not assignable to parameter `sort` with type `Literal['created asc', 'created desc']` in function `openlibrary.core.bookshelves.Bookshelves.get_users_logged_books` [bad-argument-type]
+ ERROR openlibrary/plugins/upstream/utils.py:146:9-15: Class member `MultiDict.values` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR openlibrary/plugins/upstream/utils.py:552:13-22: Object of class `HasGetKeyRevision` has no attribute `comment` [missing-attribute]
+ ERROR openlibrary/plugins/upstream/utils.py:552:27-42: Object of class `object` has no attribute `lower` [missing-attribute]
+ ERROR openlibrary/plugins/upstream/utils.py:556:17-34: Object of class `HasGetKeyRevision` has no attribute `machine_comment` [missing-attribute]
+ ERROR openlibrary/plugins/upstream/utils.py:558:17-34: Object of class `HasGetKeyRevision` has no attribute `machine_comment` [missing-attribute]
+ ERROR openlibrary/plugins/upstream/utils.py:1287:25-47: `type[UpstreamMemcacheClient]` is not assignable to attribute `Client` with type `type[Client]` [bad-assignment]
+ ERROR openlibrary/plugins/upstream/utils.py:1289:5-28: No attribute `memcache_servers` in module `infogami.config` [missing-attribute]
+ ERROR openlibrary/tests/core/test_unmarshal.py:32:21-54: Argument `int` is not assignable to parameter `tzinfo` with type `tzinfo | None` in function `datetime.datetime.__new__` [bad-argument-type]
mkdocs (https://github.com/mkdocs/mkdocs)
+ ERROR mkdocs/config/config_options.py:1037:9-29: Object of class `Config` has no attribute `_current_page` [missing-attribute]
+ ERROR mkdocs/config/defaults.py:41:29-40: `Type[str]` is not assignable to `str` [bad-assignment]
+ ERROR mkdocs/livereload/__init__.py:78:9-16: Class member `_LoggerAdapter.process` overrides parent class `LoggerAdapter` in an inconsistent manner [bad-override]
+ ERROR mkdocs/localization.py:52:13-45: Object of class `Environment` has no attribute `install_gettext_translations` [missing-attribute]
+ ERROR mkdocs/localization.py:54:13-42: Object of class `Environment` has no attribute `install_null_translations` [missing-attribute]
+ ERROR mkdocs/localization.py:63:9-38: Object of class `Environment` has no attribute `install_null_translations` [missing-attribute]
+ ERROR mkdocs/plugins.py:65:38-50: `type[LegacyConfig]` is not assignable to `type[SomeConfig]` [bad-assignment]
+ ERROR mkdocs/plugins.py:67:26-28: `dict[@_, @_]` is not assignable to `SomeConfig` [bad-assignment]
+ ERROR mkdocs/structure/pages.py:228:9-14: Class member `Page.title` overrides parent class `StructureItem` in an inconsistent manner [bad-override]
+ ERROR mkdocs/structure/toc.py:24:9-22: Object of class `AnchorLink` has no attribute `active` [missing-attribute]
+ ERROR mkdocs/tests/__init__.py:4:29-35: `Literal[100000]` is not assignable to attribute `_MAX_LENGTH` with type `Literal[80]` [bad-assignment]
+ ERROR mkdocs/tests/config/config_options_tests.py:2370:47-58: Missing argument `page` in function `mkdocs.plugins.BasePlugin.on_page_markdown` [missing-argument]
+ ERROR mkdocs/tests/config/config_options_tests.py:2370:47-58: Missing argument `config` in function `mkdocs.plugins.BasePlugin.on_page_markdown` [missing-argument]
+ ERROR mkdocs/tests/config/config_options_tests.py:2370:47-58: Missing argument `files` in function `mkdocs.plugins.BasePlugin.on_page_markdown` [missing-argument]
aioredis (https://github.com/aio-libs/aioredis)
+ ERROR aioredis/client.py:4103:16-63: Returned type `dict[Unknown, object]` is not assignable to declared return type `_NormalizeKeysT` [bad-return]
+ ERROR aioredis/connection.py:352:13-31: Object of class `NoneType` has no attribute `close` [missing-attribute]
+ ERROR aioredis/connection.py:803:25-43: Object of class `NoneType` has no attribute `close` [missing-attribute]
+ ERROR aioredis/connection.py:1201:21-33: Cannot set item in `ConnectKwargs` [unsupported-operation]
+ ERROR aioredis/connection.py:1205:17-29: Cannot set item in `ConnectKwargs` [unsupported-operation]
cloud-init (https://github.com/canonical/cloud-init)
+ ERROR tests/integration_tests/util.py:579:9-23: Object of class `IntegrationInstance` has no attribute `lxc_log` [missing-attribute]
egglog-python (https://github.com/egraphs-good/egglog-python)
+ ERROR python/egglog/builtins.py:473:9-29: Expected 2 type arguments for `Map`, got 1 [bad-specialization]
+ ERROR python/egglog/builtins.py:1115:56-72: Expected a type form, got instance of `*Unknown` [not-a-type]
+ ERROR python/egglog/builtins.py:1117:62-78: Expected a type form, got instance of `*Unknown` [not-a-type]
+ ERROR python/egglog/builtins.py:1119:53-69: Expected a type form, got instance of `*Unknown` [not-a-type]
+ ERROR python/egglog/egraph.py:304:17-38: Object of class `NoneType` has no attribute `f_back` [missing-attribute]
+ ERROR python/egglog/egraph.py:341:23-35: Could not find name `RuntimeClass` [unknown-name]
+ ERROR python/egglog/egraph.py:341:42-57: Could not find name `TypeRefWithVars` [unknown-name]
+ ERROR python/egglog/egraph.py:370:9-15: Class member `BaseExpr.__ne__` overrides parent class `object` in an inconsistent manner [bad-override]
+ ERROR python/egglog/egraph.py:373:9-15: Class member `BaseExpr.__eq__` overrides parent class `object` in an inconsistent manner [bad-override]
+ ERROR python/egglog/egraph.py:473:18-32: Object of class `FunctionType` has no attribute `__wrapped__` [missing-attribute]
+ ERROR python/egglog/examples/matrix.py:26:26-36: Could not find name `StringLike` [unknown-name]
+ ERROR python/egglog/examples/matrix.py:54:26-36: Could not find name `StringLike` [unknown-name]
+ ERROR python/egglog/examples/resolution.py:66:13-20: Could not find name `i64Like` [unknown-name]
+ ERROR python/egglog/exp/array_api.py:69:20-37: Could not find name `get_callable_args` [unknown-name]
+ ERROR python/egglog/exp/array_api.py:70:20-37: Could not find name `get_callable_args` [unknown-name]
+ ERROR python/egglog/ipython_magic.py:7:5-16: Could not find name `get_ipython` [unknown-name]
+ ERROR python/egglog/runtime.py:329:26-34: Unpacked keyword argument `object` is not assignable to parameter `_egg_function_types` with type `tuple[Unknown, ...] | None` in function `RuntimeFunction.__call__` [bad-argument-type]
+ ERROR python/egglog/runtime.py:456:9-16: Class member `RuntimeClass.__doc__` overrides parent class `object` in an inconsistent manner [bad-override]
+ ERROR python/egglog/runtime.py:460:9-17: Class member `RuntimeClass.__dict__` overrides parent class `object` in an inconsistent manner [bad-override]
+ ERROR python/egglog/runtime.py:486:9-19: Class member `RuntimeFunction.__module__` overrides parent class `object` in an inconsistent manner [bad-override]
+ ERROR python/egglog/runtime.py:617:9-16: Class member `RuntimeFunction.__doc__` overrides parent class `object` in an inconsistent manner [bad-override]
+ ERROR python/egglog/runtime.py:742:9-15: Class member `RuntimeExpr.__eq__` overrides parent class `object` in an inconsistent manner [bad-override]
+ ERROR python/egglog/runtime.py:758:9-15: Class member `RuntimeExpr.__ne__` overrides parent class `object` in an inconsistent manner [bad-override]
packaging (https://github.com/pypa/packaging)
+ ERROR src/packaging/metadata.py:490:13-63: Argument `Message | bytes | list[Message | str] | str | Any` is not assignable to parameter `object` with type `str` in function `list.append` [bad-argument-type]
+ ERROR src/packaging/metadata.py:581:31-40: Cannot delete item in `RawMetadata` [unsupported-operation]
+ ERROR src/packaging/tags.py:708:28-44: No attribute `ios_ver` in module `platform` [missing-attribute]
+ ERROR src/packaging/tags.py:771:21-41: No attribute `android_ver` in module `platform` [missing-attribute]
+ ERROR src/packaging/version.py:442:21-86: `tuple[str, int] | None` is not assignable to attribute `_pre` with type `tuple[Literal['a', 'b', 'rc'], int] | None` [bad-assignment]
+ ERROR src/packaging/version.py:443:22-445:10: `tuple[str, int] | None` is not assignable to attribute `_post` with type `tuple[Literal['post'], int] | None` [bad-assignment]
+ ERROR src/packaging/version.py:446:21-86: `tuple[str, int] | None` is not assignable to attribute `_dev` with type `tuple[Literal['dev'], int] | None` [bad-assignment]
mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ ERROR mitmproxy/coretypes/serializable.py:73:41-44: Argument `type[Self@SerializableDataclass]` is not assignable to parameter `class_or_instance` with type `DataclassInstance | type[DataclassInstance]` in function `dataclasses.fields` [bad-argument-type]
+ ERROR mitmproxy/hooks.py:23:29-33: Argument `Self@Hook` is not assignable to parameter `class_or_instance` with type `DataclassInstance | type[DataclassInstance]` in function `dataclasses.fields` [bad-argument-type]
+ ERROR mitmproxy/tools/console/flowview.py:347:42-46: `None` is not assignable to attribute `_get_content_view_message` with type `Message` [bad-assignment]
dulwich (https://github.com/dulwich/dulwich)
+ ERROR dulwich/cli.py:709:9-14: Class member `PagerBuffer.write` overrides parent class `BinaryIO` in an inconsistent manner [bad-override]
+ ERROR dulwich/cli.py:719:9-19: Class member `PagerBuffer.writelines` overrides parent class `BinaryIO` in an inconsistent manner [bad-override]
+ ERROR dulwich/cli.py:1034:16-27: Returned type `BinaryIO | TextIO` is not assignable to declared return type `TextIO` [bad-return]
+ ERROR dulwich/cli.py:1136:5-24: Object of class `FunctionType` has no attribute `_disabled` [missing-attribute]
+ ERROR dulwich/cli.py:1141:5-24: Object of class `FunctionType` has no attribute `_disabled` [missing-attribute]
+ ERROR dulwich/client.py:335:28-40: Could not import `GetLastError` from `ctypes` [missing-module-attribute]
+ ERROR dulwich/client.py:2713:35-48: `IO[Any]` is not assignable to upper bound `_BufferedReaderStream` of type variable `_BufferedReaderStreamT` [bad-specialization]
+ ERROR dulwich/client.py:3149:17-26: Argument `(bytes) -> int` is not assignable to parameter `write` with type `((bytearray | bytes | memoryview) -> int) | ((bytes) -> None) | IO[bytes]` in function `dulwich.pack.write_pack_from_container` [bad-argument-type]
+ ERROR dulwich/client.py:4627:60-64: Argument `dict[Ref, ObjectID | None]` is not assignable to parameter `refs` with type `Mapping[Ref, ObjectID]` in function `dulwich.protocol.split_peeled_refs` [bad-argument-type]
+ ERROR dulwich/client.py:4752:47-55: `dict[Ref, ObjectID | None]` is not assignable to `dict[Ref, ObjectID]` [bad-assignment]
+ ERROR dulwich/client.py:5285:9-26: Object of class `BaseHTTPResponse` has no attribute `content_type` [missing-attribute]
+ ERROR dulwich/client.py:5287:9-31: Object of class `BaseHTTPResponse` has no attribute `redirect_location` [missing-attribute]
+ ERROR dulwich/client.py:5288:16-57: Returned type `tuple[BaseHTTPResponse, (...) -> bytes]` is not assignable to declared return type `tuple[HTTPResponse, (int) -> bytes]` [bad-return]
+ ERROR dulwich/config.py:367:9-12: Class member `CaseInsensitiveOrderedMultiDict.get` overrides parent class `MutableMapping` in an inconsistent manner [bad-override]
+ ERROR dulwich/config.py:1436:17-41: No attribute `HKEY_CURRENT_USER` in module `winreg` [missing-attribute]
+ ERROR dulwich/config.py:1436:43-68: No attribute `HKEY_LOCAL_MACHINE` in module `winreg` [missing-attribute]
+ ERROR dulwich/config.py:1438:18-32: No attribute `OpenKey` in module `winreg` [missing-attribute]
+ ERROR dulwich/config.py:1439:28-47: No attribute `QueryValueEx` in module `winreg` [missing-attribute]
+ ERROR dulwich/config.py:1440:27-40: No attribute `REG_SZ` in module `winreg` [missing-attribute]
+ ERROR dulwich/object_store.py:2264:28-35: Argument `PackIndexer` is not assignable to parameter `delta_iter` with type `DeltaChainIterator[UnpackedObject] | None` in function `dulwich.pack.PackStreamCopier.__init__` [bad-argument-type]
+ ERROR dulwich/object_store.py:2294:66-73: Argument `DeltaChainIterator[tuple[RawObjectID, int, int | None]]` is not assignable to parameter `indexer` with type `PackIndexer` in function `DiskObjectStore._complete_pack` [bad-argument-type]
+ ERROR dulwich/object_store.py:2304:16-32: Returned type `tuple[BufferedRandom, () -> Pack | None, () -> None]` is not assignable to declared return type `tuple[BinaryIO, () -> None, () -> None]` [bad-return]
+ ERROR dulwich/object_store.py:2870:16-32: Returned type `tuple[SpooledTemporaryFile[bytes], () -> None, () -> None]` is not assignable to declared return type `tuple[BinaryIO, () -> None, () -> None]` [bad-return]
+ ERROR dulwich/object_store.py:3680:41-43: Argument `SpooledTemporaryFile[bytes]` is not assignable to parameter `pack_file` with type `BinaryIO` in function `BucketBasedObjectStore._upload_pack` [bad-argument-type]
+ ERROR dulwich/object_store.py:3680:45-49: Argument `SpooledTemporaryFile[bytes]` is not assignable to parameter `index_file` with type `BinaryIO` in function `BucketBasedObjectStore._upload_pack` [bad-argument-type]
+ ERROR dulwich/object_store.py:3687:16-36: Returned type `tuple[SpooledTemporaryFile[bytes], () -> Pack | None, (self: SpooledTemporaryFile[bytes]) -> None]` is not assignable to declared return type `tuple[BinaryIO, () -> None, () -> None]` [bad-return]
+ ERROR dulwich/objectspec.py:78:42-45: Cannot index into `DiskObjectStore` [bad-index]
+ ERROR dulwich/pack.py:2635:9-19: Class member `SHA1Reader.writelines` overrides parent class `BinaryIO` in an inconsistent manner [bad-override]
+ ERROR dulwich/pack.py:2639:9-14: Class member `SHA1Reader.write` overrides parent class `BinaryIO` in an inconsistent manner [bad-override]
+ ERROR dulwich/pack.py:2705:9-14: Class member `SHA1Writer.write` overrides parent class `BinaryIO` in an inconsistent manner [bad-override]
+ ERROR dulwich/pack.py:2794:9-19: Class member `SHA1Writer.writelines` overrides parent class `BinaryIO` in an inconsistent manner [bad-override]
+ ERROR dulwich/pack.py:2873:9-14: Class member `HashWriter.write` overrides parent class `BinaryIO` in an inconsistent manner [bad-override]
+ ERROR dulwich/pack.py:2961:9-19: Class member `HashWriter.writelines` overrides parent class `BinaryIO` in an inconsistent manner [bad-override]
+ ERROR dulwich/pack.py:4371:35-41: Argument `bytes | list[bytes] | tuple[bytes | int, list[bytes]]` is not assignable to parameter `iterable_of_bytes` with type `Iterable[Buffer]` in function `bytes.join` [bad-argument-type]
+ ERROR dulwich/porcelain/__init__.py:3058:46-57: Argument `dict[Ref, ObjectID]` is not assignable to parameter `refs` with type `dict[Ref, bytes]` in function `dulwich.refs.DictRefsContainer.__init__` [bad-argument-type]
+ ERROR dulwich/porcelain/__init__.py:3081:46-57: Argument `dict[Ref, ObjectID]` is not assignable to parameter `refs` with type `dict[Ref, bytes]` in function `dulwich.refs.DictRefsContainer.__init__` [bad-argument-type]
+ ERROR dulwich/porcelain/__init__.py:3392:55-66: Argument `dict[Ref, ObjectID]` is not assignable to parameter `refs` with type `dict[Ref, bytes]` in function `dulwich.refs.DictRefsContainer.__init__` [bad-argument-type]
+ ERROR dulwich/porcelain/__init__.py:3424:29-44: Argument `(remote_refs: dict[Ref, ObjectID], depth: int | None = None) -> list[ObjectID]` is not assignable to parameter `determine_wants` with type `DetermineWantsFunc | None` in function `dulwich.client.GitClient.fetch` [bad-argument-type]
+ ERROR dulwich/porcelain/__init__.py:3662:49-57: Argument `PathLike[str] | bytes | str` is not assignable to parameter `top` with type `PathLike[str] | str` in function `os.walk` [bad-argument-type]
+ ERROR dulwich/porcelain/__init__.py:8366:34-43: `TextIO` is not assignable to variable `binary_out` with type `IO[bytes]` [bad-assignment]
+ ERROR dulwich/reftable.py:1446:13-39: Object of class `ReftableWriter` has no attribute `_ref_update_indices` [missing-attribute]
+ ERROR dulwich/server.py:1029:25-35: Argument `AckGraphWalkerImpl` is not assignable to parameter `i` with type `SupportsNext[@_]` in function `next` [bad-argument-type]
+ ERROR dulwich/server.py:1453:18-44: Object of class `BackendRepo` has no attribute `get_config_stack` [missing-attribute]
+ ERROR dulwich/server.py:1498:17-53: Object of class `PackBasedObjectStore` has no attribute `add_thin_pack` [missing-attribute]
+ ERROR dulwich/server.py:1643:16-31: Object of class `BackendRepo` has no attribute `hooks` [missing-attribute]
+ ERROR dulwich/server.py:1678:16-31: Object of class `BackendRepo` has no attribute `hooks` [missing-attribute]
+ ERROR dulwich/server.py:1700:16-31: Object of class `BackendRepo` has no attribute `hooks` [missing-attribute]
+ ERROR dulwich/server.py:1770:31-42: Argument `list[Unknown]` is not assignable to parameter `client_refs` with type `dict[bytes, tuple[bytes, bytes]]` in function `ReceivePackHandler._on_post_receive` [bad-argument-type]
+ ERROR dulwich/server.py:2035:36-44: Argument `list[str]` is not assignable to parameter `proto` with type `Protocol` in function `Handler.__init__` [bad-argument-type]
+ ERROR dulwich/server.py:2035:46-51: Argument `Protocol` is not assignable to parameter `stateless_rpc` with type `bool` in function `Handler.__init__` [bad-argument-type]
+ ERROR dulwich/stash.py:254:32-42: Argument `((src: StrOrBytesPath, dst: StrOrBytesPath, target_is_directory: bool = False, *, dir_fd: int | None = None) -> None) | ((src: bytes | str, dst: bytes | str, target_is_directory: bool = False, *, dir_fd: int | None = None) -> None)` is not assignable to parameter `symlink_fn` with type `((PathLike[str] | bytes | str, PathLike[str] | bytes | str) -> None) | None` in function `dulwich.index.build_file_from_blob` [bad-argument-type]
+ ERROR dulwich/tests/test_object_store.py:438:9-22: Object of class `object` has no attribute `setUp` [missing-attribute]
+ ERROR dulwich/tests/utils.py:103:22-25: Invalid base class: `T` [invalid-inheritance]
+ ERROR dulwich/worktree.py:848:24-34: Argument `((src: StrOrBytesPath, dst: StrOrBytesPath, target_is_directory: bool = False, *, dir_fd: int | None = None) -> None) | ((src: bytes | str, dst: bytes | str, target_is_directory: bool = False, *, dir_fd: int | None = None) -> None)` is not assignable to parameter `symlink_fn` with type `((PathLike[str] | bytes | str, PathLike[str] | bytes | str) -> None) | None` in function `dulwich.index.build_index_from_tree` [bad-argument-type]
rotki (https://github.com/rotki/rotki)
+ ERROR rotkehlchen/accounting/pot.py:479:26-46: `*` is not supported between `FVal` and `None` [unsupported-operation]
+ ERROR rotkehlchen/accounting/pot.py:481:26-48: `*` is not supported between `FVal` and `None` [unsupported-operation]
+ ERROR rotkehlchen/accounting/pot.py:493:46-68: `*` is not supported between `FVal` and `None` [unsupported-operation]
+ ERROR rotkehlchen/accounting/pot.py:505:47-67: `*` is not supported between `FVal` and `None` [unsupported-operation]
+ ERROR rotkehlchen/accounting/pot.py:507:16-59: Returned type `tuple[Price | None, Price | None]` is not assignable to declared return type `tuple[Price, Price] | None` [bad-return]
+ ERROR rotkehlchen/api/rest.py:3343:9-76: Object of class `NoneType` has no attribute `trigger_historical_balance_processing` [missing-attribute]
+ ERROR rotkehlchen/api/rest.py:3378:9-54: Object of class `NoneType` has no attribute `should_schedule` [missing-attribute]
+ ERROR rotkehlchen/api/rest.py:3811:31-40: Argument `HistoryBaseEntry[Unknown] | None` is not assignable to parameter `fee_event` with type `AssetMovement | None` in function `rotkehlchen.tasks.events.update_asset_movement_matched_event` [bad-argument-type]
+ ERROR rotkehlchen/api/rest.py:4072:33-86: Argument `list[int | None]` is not assignable to parameter `ignored_ids` with type `list[int] | None` in function `rotkehlchen.db.filtering.HistoryBaseEntryFilterQuery.make` [bad-argument-type]
+ ERROR rotkehlchen/api/rest.py:4087:36-50: Argument `HistoryBaseEntry[Unknown]` is not assignable to parameter `asset_movement` with type `AssetMovement` in function `rotkehlchen.tasks.events.should_exclude_possible_match` [bad-argument-type]
+ ERROR rotkehlchen/api/rest_helpers/history_events.py:45:25-36: Argument `list[int] | None` is not assignable to parameter `identifiers` with type `list[int]` in function `edit_grouped_swap_events` [bad-argument-type]
+ ERROR rotkehlchen/api/services/accounts.py:308:48-59: Argument `list[ManuallyTrackedBalance] | list[int]` is not assignable to parameter with type `list[ManuallyTrackedBalance]` [bad-argument-type]
+ ERROR rotkehlchen/api/services/accounts.py:308:48-59: Argument `list[ManuallyTrackedBalance] | list[int]` is not assignable to parameter with type `list[int]` [bad-argument-type]
+ ERROR rotkehlchen/api/services/history.py:506:39-62: `list[HistoryBaseEntry[Unknown]] | list[tuple[int, HistoryBaseEntry[Unknown]]]` is not assignable to variable `processed_events_result` with type `list[HistoryBaseEntry[Unknown]]` [bad-assignment]
+ ERROR rotkehlchen/api/services/history_events.py:148:56-70: Argument `Location` is not assignable to parameter `location` with type `Literal[Location.ARBITRUM_ONE, Location.BASE, Location.BINANCE_SC, Location.BITCOIN, Location.BITCOIN_CASH, Location.ETHEREUM, Location.GNOSIS, Location.HYPERLIQUID, Location.MONAD, Location.OPTIMISM, Location.POLYGON_POS, Location.SCROLL, Location.SOLANA, Location.ZKSYNC_LITE]` in function `rotkehlchen.types.SupportedBlockchain.from_location` [bad-argument-type]
+ ERROR rotkehlchen/api/services/history_events.py:174:69-176:18: No matching overload found for function `rotkehlchen.chain.aggregator.ChainsAggregator.get_chain_manager` called with arguments: (blockchain=SupportedBlockchain) [no-matching-overload]
+ ERROR rotkehlchen/api/services/transactions.py:105:17-43: Object of class `ChainManagerWithTransactions` has no attribute `transactions` [missing-attribute]
+ ERROR rotkehlchen/api/services/transactions.py:110:17-43: Object of class `ChainManagerWithTransactions` has no attribute `transactions` [missing-attribute]
+ ERROR rotkehlchen/api/services/transactions.py:131:9-43: Object of class `ChainManagerWithTransactions` has no attribute `transactions_decoder` [missing-attribute]
+ ERROR rotkehlchen/api/services/transactions.py:242:13-34: Object of class `ChainManagerWithTransactions` has no attribute `node_inquirer` [missing-attribute]
+ ERROR rotkehlchen/api/services/transactions.py:393:27-65: Object of class `NoneType` has no attribute `watcher_query` [missing-attribute]
+ ERROR rotkehlchen/api/services/transactions.py:415:50-55: Argument `Literal[SupportedBlockchain.ARBITRUM_ONE, SupportedBlockchain.BASE, SupportedBlockchain.BINANCE_SC, SupportedBlockchain.BITCOIN, SupportedBlockchain.BITCOIN_CASH, SupportedBlockchain.ETHEREUM, SupportedBlockchain.GNOSIS, SupportedBlockchain.HYPERLIQUID, SupportedBlockchain.MONAD, SupportedBlockchain.OPTIMISM, SupportedBlockchain.POLYGON_POS, SupportedBlockchain.SCROLL, SupportedBlockchain.SOLANA, SupportedBlockchain.ZKSYNC_LITE] | None` is not assignable to parameter `chain` with type `Literal[SupportedBlockchain.ARBITRUM_ONE, SupportedBlockchain.BASE, SupportedBlockchain.BINANCE_SC, SupportedBlockchain.BITCOIN, SupportedBlockchain.BITCOIN_CASH, SupportedBlockchain.ETHEREUM, SupportedBlockchain.GNOSIS, SupportedBlockchain.HYPERLIQUID, SupportedBlockchain.MONAD, SupportedBlockchain.OPTIMISM, SupportedBlockchain.POLYGON_POS, SupportedBlockchain.SCROLL, SupportedBlockchain.SOLANA, SupportedBlockchain.ZKSYNC_LITE]` in function `rotkehlchen.types.Location.from_chain` [bad-argument-type]
+ ERROR rotkehlchen/api/services/transactions.py:441:27-32: Argument `Literal[SupportedBlockchain.ARBITRUM_ONE, SupportedBlockchain.BASE, SupportedBlockchain.BINANCE_SC, SupportedBlockchain.BITCOIN, SupportedBlockchain.BITCOIN_CASH, SupportedBlockchain.ETHEREUM, SupportedBlockchain.GNOSIS, SupportedBlockchain.HYPERLIQUID, SupportedBlockchain.MONAD, SupportedBlockchain.OPTIMISM, SupportedBlockchain.POLYGON_POS, SupportedBlockchain.SCROLL, SupportedBlockchain.SOLANA, SupportedBlockchain.ZKSYNC_LITE]` is not assignable to parameter `chain` with type `Literal[SupportedBlockchain.ARBITRUM_ONE, SupportedBlockchain.AVALANCHE, SupportedBlockchain.BASE, SupportedBlockchain.BINANCE_SC, SupportedBlockchain.ETHEREUM, SupportedBlockchain.GNOSIS, SupportedBlockchain.HYPERLIQUID, SupportedBlockchain.MONAD, SupportedBlockchain.OPTIMISM, SupportedBlockchain.POLYGON_POS, SupportedBlockchain.SCROLL] | None` in function `rotkehlchen.db.evmtx.DBEvmTx.delete_evm_transaction_data` [bad-argument-type]
+ ERROR rotkehlchen/api/services/transactions.py:509:51-59: Cannot set item in `defaultdict[CHAINS_WITH_TRANSACTIONS_TYPE, ListOfBlockchainAddresses]` [unsupported-operation]
+ ERROR rotkehlchen/api/services/transactions.py:621:17-43: Object of class `ChainManagerWithTransactions` has no attribute `transactions` [missing-attribute]
+ ERROR rotkehlchen/api/services/transactions.py:633:17-51: Object of class `ChainManagerWithTransactions` has no attribute `transactions_decoder` [missing-attribute]
+ ERROR rotkehlchen/api/services/transactions.py:876:49-53: Argument `ChecksumAddress | SolanaAddress` is not assignable to parameter with type `ChecksumAddress` [bad-argument-type]
+ ERROR rotkehlchen/api/services/transactions.py:876:49-53: Argument `ChecksumAddress | SolanaAddress` is not assignable to parameter with type `SolanaAddress` [bad-argument-type]
+ ERROR rotkehlchen/api/v1/schemas.py:353:23-36: Argument `SupportedBlockchain | None` is not assignable to parameter `chain` with type `Literal[SupportedBlockchain.KUSAMA, SupportedBlockchain.POLKADOT]` in function `rotkehlchen.chain.substrate.utils.is_valid_substrate_address` [bad-argument-type]
+ ERROR rotkehlchen/api/v1/schemas.py:1261:39-57: `None` is not subscriptable [unsupported-operation]
+ ERROR rotkehlchen/api/v1/schemas.py:1261:66-85: `None` is not subscriptable [unsupported-operation]
+ ERROR rotkehlchen/assets/utils.py:122:35-42: Argument `ChecksumAddress | SolanaAddress` is not assignable to parameter `token_address` with type `SolanaAddress` in function `rotkehlchen.chain.solana.utils.is_solana_token_nft` [bad-argument-type]
+ ERROR rotkehlchen/assets/utils.py:580:63-70: Argument `ChecksumAddress | SolanaAddress` is not assignable to parameter `address` with type `SolanaAddress` in function `rotkehlchen.constants.resolver.solana_address_to_identifier` [bad-argument-type]
+ ERROR rotkehlchen/assets/utils.py:580:83-93: Argument `Literal[TokenKind.ERC20, TokenKind.ERC721, TokenKind.SPL_NFT, TokenKind.SPL_TOKEN]` is not assignable to parameter `token_type` with type `Literal[TokenKind.SPL_NFT, TokenKind.SPL_TOKEN]` in function `rotkehlchen.constants.resolver.solana_address_to_identifier` [bad-argument-type]
+ ERROR rotkehlchen/assets/utils.py:611:39-55: Missing argument `chain_id` in function `rotkehlchen.assets.asset.EvmToken.initialize` [missing-argument]
+ ERROR rotkehlchen/assets/utils.py:611:40-54: Argument `ChecksumAddress | SolanaAddress` is not assignable to parameter `address` with type `ChecksumAddress` in function `rotkehlchen.assets.asset.EvmToken.initialize` [bad-argument-type]
+ ERROR rotkehlchen/assets/utils.py:611:40-54: Argument `Literal[TokenKind.ERC20, TokenKind.ERC721, TokenKind.SPL_NFT, TokenKind.SPL_TOKEN]` is not assignable to parameter `token_kind` with type `Literal[TokenKind.ERC20, TokenKind.ERC721]` in function `rotkehlchen.assets.asset.EvmToken.initialize` [bad-argument-type]
+ ERROR rotkehlchen/assets/utils.py:611:40-54: Argument `ChecksumAddress | SolanaAddress` is not assignable to parameter `address` with type `SolanaAddress` in function `rotkehlchen.assets.asset.SolanaToken.initialize` [bad-argument-type]
+ ERROR rotkehlchen/assets/utils.py:611:40-54: Argument `Literal[TokenKind.ERC20, TokenKind.ERC721, TokenKind.SPL_NFT, TokenKind.SPL_TOKEN]` is not assignable to parameter `token_kind` with type `Literal[TokenKind.SPL_NFT, TokenKind.SPL_TOKEN]` in function `rotkehlchen.assets.asset.SolanaToken.initialize` [bad-argument-type]
+ ERROR rotkehlchen/assets/utils.py:615:27-32: Argument `EvmToken | SolanaToken` is not assignable to parameter with type `EvmToken` [bad-argument-type]
+ ERROR rotkehlchen/assets/utils.py:615:27-32: Argument `EvmToken | SolanaToken` is not assignable to parameter with type `SolanaToken` [bad-argument-type]
+ ERROR rotkehlchen/chain/aggregator.py:720:70-75: Argument `Literal[SupportedBlockchain.ARBITRUM_ONE, SupportedBlockchain.AVALANCHE, SupportedBlockchain.BASE, SupportedBlockchain.BINANCE_SC, SupportedBlockchain.BITCOIN, SupportedBlockchain.BITCOIN_CASH, SupportedBlockchain.ETHEREUM, SupportedBlockchain.GNOSIS, SupportedBlockchain.HYPERLIQUID, SupportedBlockchain.KUSAMA, SupportedBlockchain.MONAD, SupportedBlockchain.OPTIMISM, SupportedBlockchain.POLKADOT, SupportedBlockchain.POLYGON_POS, SupportedBlockchain.SCROLL, SupportedBlockchain.SOLANA, SupportedBlockchain.ZKSYNC_LITE]` is not assignable to parameter `blockchain` with type `Literal[SupportedBlockchain.BITCOIN, SupportedBlockchain.BITCOIN_CASH]` in function `rotkehlchen.chain.bitcoin.xpub.XpubManager.check_for_new_xpub_addresses` [bad-argument-type]
+ ERROR rotkehlchen/chain/aggregator.py:773:16-73: Returned type `tuple[BTCAddress | ChecksumAddress | SolanaAddress | SubstrateAddress, ...]` is not assignable to declared return type `tuple[BTCAddress, ...] | tuple[ChecksumAddress, ...] | tuple[SolanaAddress, ...] | tuple[SubstrateAddress, ...]` [bad-return]
+ ERROR rotkehlchen/chain/aggregator.py:794:38-53: No matching overload found for function `dict.pop` called with arguments: (BTCAddress | ChecksumAddress | SolanaAddress | SubstrateAddress, None) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:794:38-53: No matching overload found for function `dict.pop` called with arguments: (BTCAddress | ChecksumAddress | SolanaAddress | SubstrateAddress, None) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:794:38-53: No matching overload found for function `dict.pop` called with arguments: (BTCAddress | ChecksumAddress | SolanaAddress | SubstrateAddress, None) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:794:38-53: No matching overload found for function `dict.pop` called with arguments: (BTCAddress | ChecksumAddress | SolanaAddress | SubstrateAddress, None) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:794:38-53: No matching overload found for function `dict.pop` called with arguments: (BTCAddress | ChecksumAddress | SolanaAddress | SubstrateAddress, None) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:797:37-45: Argument `list[BTCAddress] | list[ChecksumAddress] | list[SolanaAddress] | list[SubstrateAddress] | tuple[BTCAddress, ...] | tuple[ChecksumAddress, ...] | tuple[SolanaAddress, ...] | tuple[SubstrateAddress, ...]` is not assignable to parameter `accounts` with type `Sequence[ChecksumAddress]` in function `ChainsAggregator.query_eth_balances` [bad-argument-type]
+ ERROR rotkehlchen/chain/aggregator.py:805:33-47: No matching overload found for function `typing.MutableMapping.update` called with arguments: (defaultdict[ChecksumAddress, BalanceSheet] | dict[ChecksumAddress | Unknown, Balance | BalanceSheet] | dict[Unknown, Balance] | dict[Unknown, BalanceSheet]) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:805:33-47: No matching overload found for function `typing.MutableMapping.update` called with arguments: (defaultdict[ChecksumAddress, BalanceSheet] | dict[ChecksumAddress | Unknown, Balance | BalanceSheet] | dict[Unknown, Balance] | dict[Unknown, BalanceSheet]) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:805:33-47: No matching overload found for function `typing.MutableMapping.update` called with arguments: (defaultdict[ChecksumAddress, BalanceSheet] | dict[ChecksumAddress | Unknown, Balance | BalanceSheet] | dict[Unknown, Balance] | dict[Unknown, BalanceSheet]) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:805:33-47: No matching overload found for function `typing.MutableMapping.update` called with arguments: (defaultdict[ChecksumAddress, BalanceSheet] | dict[ChecksumAddress | Unknown, Balance | BalanceSheet] | dict[Unknown, Balance] | dict[Unknown, BalanceSheet]) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:805:33-47: No matching overload found for function `typing.MutableMapping.update` called with arguments: (defaultdict[ChecksumAddress, BalanceSheet] | dict[ChecksumAddress | Unknown, Balance | BalanceSheet] | dict[Unknown, Balance] | dict[Unknown, BalanceSheet]) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:1274:38-64: No matching overload found for function `ChainsAggregator.get_chain_manager` called with arguments: (SupportedBlockchain) [no-matching-overload]
+ ERROR rotkehlchen/chain/aggregator.py:1554:19-53: Yielded type `ChainManagerWithTransactions[Unknown]` is not assignable to declared yield type `ChainManagerWithNodesMixin[Unknown]` [invalid-yield]
+ ERROR rotkehlchen/chain/aggregator.py:1585:17-67: Object of class `ChainManagerWithTransactions` has no attribute `transactions_decoder` [missing-attribute]
+ ERROR rotkehlchen/chain/arbitrum_one/modules/umami/decoder.py:198:51-74: Object of class `Asset` has no attribute `symbol` [missing-attribute]
+ ERROR rotkehlchen/chain/bitcoin/manager.py:126:63-70: Argument `dict[str, Any] | None` is not assignable to parameter with type `dict[str, Any]` [bad-argument-type]
+ ERROR rotkehlchen/chain/decoding/decoder.py:355:69-358:22: No matching overload found for function `rotkehlchen.db.history_events.DBHistoryEvents.get_history_events_internal` called with arguments: (cursor=DBCursor, filter_query=T_EventFilterQuery) [no-matching-overload]
+ ERROR rotkehlchen/chain/decoding/tools.py:42:59-107: `frozenset[BTCAddress | ChecksumAddress | SolanaAddress | SubstrateAddress]` is not assignable to attribute `_tracked_addresses_for_chain` with type `frozenset[A]` [bad-assignment]
+ ERROR rotkehlchen/chain/decoding/tools.py:99:41-104:10: `A` is not assignable to any of constraints `BTCAddress`, `ChecksumAddress`, `SubstrateAddress`, `SolanaAddress` of type variable `AnyBlockchainAddress` [bad-specialization]
+ ERROR rotkehlchen/chain/ethereum/airdrops.py:665:45-49: Cannot index into `defaultdict[ChecksumAddress, dict[Unknown, Unknown]]` [bad-index]
+ ERROR rotkehlchen/chain/ethereum/airdrops.py:666:32-36: Cannot index into `defaultdict[ChecksumAddress, dict[Unknown, Unknown]]` [bad-index]
+ ERROR rotkehlchen/chain/ethereum/airdrops.py:668:28-32: Cannot index into `defaultdict[ChecksumAddress, dict[Unknown, Unknown]]` [bad-index]
+ ERROR rotkehlchen/chain/ethereum/interfaces/ammswap/ammswap.py:67:29-38: Argument `list[ChecksumAddress]` is not assignable to parameter `location_labels` with type `list[str] | None` in function `rotkehlchen.db.filtering.EvmEventFilterQuery.make` [bad-argument-type]
+ ERROR rotkehlchen/chain/ethereum/modules/aave/v2/accountant.py:34:52-72: Argument `str | None` is not assignable to parameter `value` with type `str` in function `rotkehlchen.chain.evm.types.string_to_evm_address` [bad-argument-type]
+ ERROR rotkehlchen/chain/ethereum/modules/aave/v2/accountant.py:47:38-58: Argument `str | None` is not assignable to parameter `value` with type `str` in function `rotkehlchen.chain.evm.types.string_to_evm_address` [bad-argument-type]
+ ERROR rotkehlchen/chain/ethereum/modules/aave/v2/accountant.py:72:52-72: Argument `str | None` is not assignable to parameter `value` with type `str` in function `rotkehlchen.chain.evm.types.string_to_evm_address` [bad-argument-type]
+ ERROR rotkehlchen/chain/ethereum/modules/aave/v2/accountant.py:85:38-58: Argument `str | None` is not assignable to parameter `value` with type `str` in function `rotkehlchen.chain.evm.types.string_to_evm_address` [bad-argument-type]
+ ERROR rotkehlchen/chain/ethereum/modules/curve/crvusd/decoder.py:70:32-76:15: `set[str]` is not assignable to attribute `controllers` with type `set[ChecksumAddress]` [bad-assignment]
+ ERROR rotkehlchen/chain/ethereum/modules/liquity/decoder.py:82:44-74: Argument `ChecksumAddress | None` is not assignable to parameter `address` with type `ChecksumAddress` in function `rotkehlchen.chain.evm.decoding.base.BaseEvmDecoderTools.maybe_get_proxy_owner` [bad-argument-type]
+ ERROR rotkehlchen/chain/ethereum/modules/liquity/decoder.py:149:44-74: Argument `ChecksumAddress | None` is not assignable to parameter `address` with type `ChecksumAddress` in function `rotkehlchen.chain.evm.decoding.base.BaseEvmDecoderTools.maybe_get_proxy_owner` [bad-argument-type]
+ ERROR rotkehlchen/chain/ethereum/modules/liquity/decoder.py:236:44-74: Argument `ChecksumAddress | None` is not assignable to parameter `address` with type `ChecksumAddress` in function `rotkehlchen.chain.evm.decoding.base.BaseEvmDecoderTools.maybe_get_proxy_owner` [bad-argument-type]
+ ERROR rotkehlchen/chain/ethereum/modules/liquity/decoder.py:275:44-74: Argument `ChecksumAddress | None` is not assignable to parameter `address` with type `ChecksumAddress` in function `rotkehlchen.chain.evm.decoding.base.BaseEvmDecoderTools.maybe_get_proxy_owner` [bad-argument-type]
+ ERROR rotkehlchen/chain/ethereum/modules/liquity/trove.py:266:17-62: `None` is not subscriptable [unsupported-operation]
+ ERROR rotkehlchen/chain/ethereum/modules/liquity/trove.py:277:17-55: Cannot set item in `None` [unsupported-operation]
+ ERROR rotkehlchen/chain/ethereum/modules/thegraph/accountant.py:30:30-50: Cannot index into `dict[ChecksumAddress, FVal]` [bad-index]
+ ERROR rotkehlchen/chain/ethereum/modules/thegraph/accountant.py:30:30-50: Cannot set item in `dict[ChecksumAddress, FVal]` [unsupported-operation]
+ ERROR rotkehlchen/chain/evm/decoding/aave/v3/decoder.py:583:16-586:86: Returned type `dict[ChecksumAddress, Literal['aave-v2', 'aave-v3', 'spark']]` is not assignable to declared return type `dict[ChecksumAddress, str]` [bad-return]
+ ERROR rotkehlchen/chain/evm/decoding/balancer/decoder.py:118:33-48: Argument `Literal[HistoryEventType.RECEIVE, HistoryEventType.SPEND] | None` is not assignable to parameter `from_event_type` with type `HistoryEventType` in function `rotkehlchen.chain.evm.decoding.structures.ActionItem.__init__` [bad-argument-type]
+ ERROR rotkehlchen/chain/evm/decoding/balancer/decoder.py:119:36-54: Argument `Literal[HistoryEventSubType.NONE] | None` is not assignable to parameter `from_event_subtype` with type `HistoryEventSubType` in function `rotkehlchen.chain.evm.decoding.structures.ActionItem.__init__` [bad-argument-type]
+ ERROR rotkehlchen/chain/evm/decoding/beefy_finance/decoder.py:103:17-43: Object of class `CryptoAsset` has no attribute `evm_address` [missing-attribute]
+ ERROR rotkehlchen/chain/evm/decoding/crosscurve/decoder.py:111:41-61: Argument `str | None` is not assignable to parameter `address` with type `ChecksumAddress` in function `rotkehlchen.chain.decoding.tools.BaseDecoderTools.is_tracked` [bad-argument-type]
+ ERROR rotkehlchen/chain/evm/decoding/curve/curve_cache.py:274:39-61: No matching overload found for function `rotkehlchen.chain.evm.contracts.EvmContracts.abi` called with arguments: (Literal['CURVE_METAREGISTRY']) [no-matching-overload]
+ ERROR rotkehlchen/chain/evm/decoding/decoder.py:792:42-70: Argument `Literal[SupportedBlockchain.ARBITRUM_ONE, SupportedBlockchain.AVALANCHE, SupportedBlockchain.BASE, SupportedBlockchain.BINANCE_SC, SupportedBlockchain.ETHEREUM, SupportedBlockchain.GNOSIS, SupportedBlockchain.HYPERLIQUID, SupportedBlockchain.MONAD, SupportedBlockchain.OPTIMISM, SupportedBlockchain.POLYGON_POS, SupportedBlockchain.SCROLL]` is not assignable to parameter `chain` with type `Literal[SupportedBlockchain.ARBITRUM_ONE, SupportedBlockchain.BASE, SupportedBlockchain.BINANCE_SC, SupportedBlockchain.BITCOIN, SupportedBlockchain.BITCOIN_CASH, SupportedBlockchain.ETHEREUM, SupportedBlockchain.GNOSIS, SupportedBlockchain.HYPERLIQUID, SupportedBlockchain.MONAD, SupportedBlockchain.OPTIMISM, SupportedBlockchain.POLYGON_POS, SupportedBlockchain.SCROLL, SupportedBlockchain.SOLANA, SupportedBlockchain.ZKSYNC_LITE]` in function `rotkehlchen.types.Location.from_chain` [bad-argument-type]
+ ERROR rotkehlchen/chain/evm/decoding/decoder.py:1354:24-34: Argument `HistoryEventType` is not assignable to parameter `event_type` with type `Literal[HistoryEventType.MULTI_TRADE, HistoryEventType.TRADE]` in function `rotkehlchen.history.events.structures.evm_swap.EvmSwapEvent.__init__` [bad-argument-type]
+ ERROR rotkehlchen/chain/evm/decoding/decoder.py:1355:27-52: Argument `HistoryEventSubType` is not assignable to parameter `event_subtype` with type `Literal[HistoryEventSubType.FEE, HistoryEventSubType.RECEIVE, HistoryEventSubType.SPEND]` in function `rotkehlchen.history.events.structures.evm_swap.EvmSwapEvent.__init__` [bad-argument-type]
+ ERROR rotkehlchen/chain/evm/decoding/gearbox/decoder.py:350:38-66: Argument `str | None` is not assignable to parameter `address` with type `ChecksumAddress` in function `rotkehlchen.chain.decoding.tools.BaseDecoderTools.is_tracked` [bad-argument-type]
+ ERROR rotkehlchen/chain/evm/decoding/odos/v2/decoder.py:58:17-32: `list[Unknown]` is not assignable to `tuple[ChecksumAddress, list[int], list[ChecksumAddress], list[int], list[ChecksumAddress]]` [bad-assignment]
+ ERROR rotkehlchen/chain/evm/decoding/pendle/decoder.py:695:26-698:15: `set[str]` is not assignable to attribute `pools` with type `set[ChecksumAddress]` [bad-assignment]
+ ERROR rotkehlchen/chain/evm/decoding/pendle/decoder.py:699:30-702:15: `set[str]` is not assignable to attribute `sy_tokens` with type `set[ChecksumAddress]` [bad-assignment]
+ ERROR rotkehlchen/chain/evm/decoding/quickswap/v2/decoder.py:76:31-44: Argument `EvmTxReceiptLog | None` is not assignable to parameter `last_swap_log` with type `EvmTxReceiptLog` in function `Quickswapv2CommonDecoder._maybe_mark_native_output_receive` [bad-argument-type]
+ ERROR rotkehlchen/chain/evm/decoding/rainbow/decoder.py:157:56-80: Argument `str | None` is not assignable to parameter `value` with type `str` in function `rotkehlchen.chain.evm.types.string_to_evm_address` [bad-argument-type]
+ ERROR rotkehlchen/chain/evm/decoding/stakedao/decoder.py:92:27-95:15: `set[str]` is not assignable to attribute `gauges` with type `set[ChecksumAddress]` [bad-assignment]
+ ERROR rotkehlchen/chain/evm/decoding/velodrome/decoder.py:449:28-56: `None` is not subscriptable [unsupported-operation]
+ ERROR rotkehlchen/chain/evm/decoding/velodrome/decoder.py:454:17-37: Object of class `NoneType` has no attribute `pop` [missing-attribute]
+ ERROR rotkehlchen/chain/evm/decoding/zerox/decoder.py:179:43-56: Cannot set item in `dict[ChecksumAddress, EvmEvent]` [unsupported-operation]
+ ERROR rotkehlchen/chain/evm/decoding/zerox/decoder.py:232:34-62: Object of class `Asset` has no attribute `evm_address` [missing-attribute]
+ ERROR rotkehlchen/chain/evm/l2_with_l1_fees/decoding/decoder.py:57:9-24: Class member `L2WithL1FeesTransactionDecoder._calculate_fees` overrides parent class `EVMTransactionDecoder` in an inconsistent manner [bad-override]
+ ERROR rotkehlchen/chain/evm/l2_with_l1_fees/transactions.py:60:20-38: Returned type `tuple[EvmTransaction, EvmTxReceipt]` is not assignable to declared return type `tuple[L2WithL1FeesTransaction, EvmTxReceipt]` [bad-return]
... (truncated 152 lines) ...
aiohttp-devtools (https://github.com/aio-libs/aiohttp-devtools)
+ ERROR aiohttp_devtools/runserver/config.py:215:16-20: Returned type `((...) -> object) | Application` is not assignable to declared return type `(() -> Application) | (() -> Awaitable[Application]) | Application` [bad-return]
+ ERROR aiohttp_devtools/runserver/utils.py:18:20-30: Argument `_T | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR aiohttp_devtools/runserver/utils.py:29:9-15: Class member `MutableValue.__eq__` overrides parent class `object` in an inconsistent manner [bad-override]
+ ERROR aiohttp_devtools/runserver/utils.py:33:16-34: `+` is not supported between `_T` and `_T` [unsupported-operation]
+ ERROR aiohttp_devtools/runserver/utils.py:33:16-34: `+` is not supported between `None` and `_T` [unsupported-operation]
+ ERROR tests/test_runserver_serve.py:143:21-24: Argument `DummyApplication` is not assignable to parameter `app` with type `Application` in function `aiohttp_devtools.runserver.serve.modify_main_app` [bad-argument-type]
+ ERROR tests/test_runserver_serve.py:157:21-24: Argument `DummyApplication` is not assignable to parameter `app` with type `Application` in function `aiohttp_devtools.runserver.serve.modify_main_app` [bad-argument-type]
+ ERROR tests/test_runserver_serve.py:169:21-24: Argument `DummyApplication` is not assignable to parameter `app` with type `Application` in function `aiohttp_devtools.runserver.serve.modify_main_app` [bad-argument-type]
bokeh (https://github.com/bokeh/bokeh)
+ ERROR src/bokeh/server/server.py:610:22-621:9: `Int` is not assignable to `int` [bad-assignment]
+ ERROR src/bokeh/server/server.py:623:28-625:9: `Nullable[str]` is not assignable to `str | None` [bad-assignment]
+ ERROR src/bokeh/server/server.py:627:17-629:9: `Int` is not assignable to `int` [bad-assignment]
+ ERROR src/bokeh/server/server.py:631:32-635:9: `Nullable[str]` is not assignable to `str | None` [bad-assignment]
+ ERROR src/bokeh/server/server.py:637:19-639:9: `String` is not assignable to `str` [bad-assignment]
+ ERROR src/bokeh/server/server.py:641:25-643:9: `Nullable[str]` is not assignable to `str | None` [bad-assignment]
+ ERROR src/bokeh/server/server.py:645:48-652:9: `Nullable[str]` is not assignable to `list[str] | None` [bad-assignment]
+ ERROR src/bokeh/server/server.py:654:26-658:9: `Bool` is not assignable to `bool` [bad-assignment]
+ ERROR src/bokeh/server/server.py:660:32-662:9: `Nullable[str]` is not assignable to `str | None` [bad-assignment]
+ ERROR src/bokeh/server/server.py:664:31-666:9: `Nullable[str]` is not assignable to `str | None` [bad-assignment]
+ ERROR src/bokeh/server/server.py:668:32-670:9: `Nullable[str]` is not assignable to `str | None` [bad-assignment]
+ ERROR src/bokeh/server/server.py:672:39-674:9: `Int` is not assignable to `int` [bad-assignment]
+ ERROR src/bokeh/server/tornado.py:719:9-18: Object of class `Logger` has no attribute `trace` [missing-attribute]
+ ERROR src/bokeh/server/tornado.py:725:9-18: Object of class `Logger` has no attribute `trace` [missing-attribute]
+ ERROR src/bokeh/server/tornado.py:787:9-18: Object of class `Logger` has no attribute `trace` [missing-attribute]
pytest (https://github.com/pytest-dev/pytest)
+ ERROR testing/acceptance_test.py:645:25-29: Argument `Literal['-h']` is not assignable to parameter `args` with type `PathLike[str] | list[str] | None` in function `_pytest.config.main` [bad-argument-type]
+ ERROR testing/code/test_excinfo.py:2017:9-22: Object of class `BaseException` has no attribute `__notes__` [missing-attribute]
+ ERROR testing/deprecated_test.py:71:9-30: `_pytest.fixtures.yield_fixture` is deprecated [deprecated]
+ ERROR testing/deprecated_test.py:71:10-30: `_pytest.fixtures.yield_fixture` is deprecated [deprecated]
+ ERROR testing/io/test_saferepr.py:59:9-13: Expected a callable, got `None` [not-callable]
+ ERROR testing/python/fixtures.py:1319:30-32: Argument `Literal[42]` is not assignable to parameter `marker` with type `MarkDecorator | str` in function `_pytest.fixtures.FixtureRequest.applymarker` [bad-argument-type]
+ ERROR testing/python/fixtures.py:3779:20-33: Object of class `RunResult` has no attribute `reprec` [missing-attribute]
+ ERROR testing/python/metafunc.py:139:51-53: Argument `Literal[42]` is not assignable to parameter `ids` with type `((Any) -> object | None) | Iterable[object | None] | None` in function `_pytest.python.Metafunc.parametrize` [bad-argument-type]
+ ERROR testing/python/metafunc.py:180:50-57: Argument `Literal['doggy']` is not assignable to parameter `scope` with type `Literal['class', 'function', 'module', 'package', 'session'] | None` in function `_pytest.python.Metafunc.parametrize` [bad-argument-type]
+ ERROR testing/python/metafunc.py:842:65-67: Argument `dict[@_, @_]` is not assignable to parameter `indirect` with type `Sequence[str] | bool` in function `_pytest.python.Metafunc.parametrize` [bad-argument-type]
+ ERROR testing/python/raises.py:21:41-53: Argument `Literal['int(\'qwe\')']` is not assignable to parameter `func` with type `(ParamSpec(@_)) -> object` in function `_pytest.raises.raises` [bad-argument-type]
+ ERROR testing/python/raises.py:74:54-55: Argument `Literal[0]` is not assignable to parameter `match` with type `Pattern[str] | str | None` in function `_pytest.raises.raises` [bad-argument-type]
+ ERROR testing/python/raises.py:211:32-39: Argument `Literal['wrong']` is not assignable to parameter `expected_exception` with type `tuple[type[@_], ...] | type[@_]` in function `_pytest.raises.raises` [bad-argument-type]
+ ERROR testing/python/raises.py:216:43-50: Unexpected keyword argument `unknown` in function `_pytest.raises.raises` [unexpected-keyword]
+ ERROR testing/python/raises.py:382:32-45: Argument `TestRaises.test_raises_with_raising_dunder_class.CrappyClass` is not assignable to parameter `expected_exception` with type `tuple[type[@_], ...] | type[@_]` in function `_pytest.raises.raises` [bad-argument-type]
+ ERROR testing/python/raises.py:404:32-39: Argument `Literal['hello']` is not assignable to parameter `expected_exception` with type `tuple[type[@_], ...] | type[@_]` in function `_pytest.raises.raises` [bad-argument-type]
+ ERROR testing/python/raises.py:416:32-46: Argument `type[TestRaises.test_expected_exception_is_not_a_baseexception.NotAnException]` is not assignable to parameter `expected_exception` with type `tuple[type[@_], ...] | type[@_]` in function `_pytest.raises.raises` [bad-argument-type]
+ ERROR testing/python/raises.py:423:32-57: Argument `tuple[Literal['hello'], type[TestRaises.test_expected_exception_is_not_a_baseexception.NotAnException]]` is not assignable to parameter `expected_exception` with type `tuple[type[@_], ...] | type[@_]` in function `_pytest.raises.raises` [bad-argument-type]
+ ERROR testing/python/raises_group.py:41:19-20: Argument `Literal[5]` is not assignable to parameter `expected_exception` with type `tuple[type[@_], ...] | type[@_]` in function `_pytest.raises.RaisesExc.__init__` [bad-argument-type]
+ ERROR testing/python/raises_group.py:46:19-22: Argument `type[int]` is not assignable to parameter `expected_exception` with type `tuple[type[@_], ...] | type[@_]` in function `_pytest.raises.RaisesExc.__init__` [bad-argument-type]
+ ERROR testing/python/raises_group.py:53:20-34: No matching overload found for function `_pytest.raises.RaisesGroup.__init__` called with arguments: (ValueError) [no-matching-overload]
+ ERROR testing/python/raises_group.py:176:20-69: No matching overload found for function `_pytest.raises.RaisesGroup.__init__` called with arguments: (RaisesGroup[ValueError], flatten_subgroups=Literal[True]) [no-matching-overload]
+ ERROR testing/python/raises_group.py:290:20-67: No matching overload found for function `_pytest.raises.RaisesGroup.__init__` called with arguments: (type[SyntaxError], type[ValueError], allow_unwrapped=Literal[True]) [no-matching-overload]
+ ERROR testing/python/raises_group.py:301:20-67: No matching overload found for function `_pytest.raises.RaisesGroup.__init__` called with arguments: (RaisesGroup[ValueError], allow_unwrapped=Literal[True]) [no-matching-overload]
+ ERROR testing/python/raises_group.py:452:20-67: No matching overload found for function `_pytest.raises.RaisesGroup.__init__` called with arguments: (type[ValueError], allow_unwrapped=Literal[True], match=Literal['foo']) [no-matching-overload]
+ ERROR testing/python/raises_group.py:454:20-70: No matching overload found for function `_pytest.raises.RaisesGroup.__init__` called with arguments: (type[ValueError], allow_unwrapped=Literal[True], check=(e: object) -> bool) [no-matching-overload]
+ ERROR testing/python/raises_group.py:1077:18-20: No matching overload found for function `_pytest.raises.RaisesExc.__init__` called with arguments: () [no-matching-overload]
+ ERROR testing/python/raises_group.py:1082:19-25: Argument `type[object]` is not assignable to parameter `expected_exception` with type `tuple[type[@_], ...] | type[@_]` in function `_pytest.raises.RaisesExc.__init__` [bad-argument-type]
+ ERROR testing/python/raises_group.py:1352:20-46: No matching overload found for function `_pytest.raises.RaisesGroup.__init__` called with arguments: (tuple[type[ValueError], type[IndexError]]) [no-matching-overload]
+ ERROR testing/test_assertrewrite.py:62:9-13: Expected a callable, got `object` [not-callable]
+ ERROR testing/test_assertrewrite.py:407:20-28: Could not find name `a_global` [unknown-name]
+ ERROR testing/test_assertrewrite.py:418:20-23: Could not find name `cls` [unknown-name]
+ ERROR testing/test_assertrewrite.py:462:20-23: Could not find name `cls` [unknown-name]
+ ERROR testing/test_assertrewrite.py:819:24-25: Could not find name `x` [unknown-name]
+ ERROR testing/test_assertrewrite.py:828:13-14: Could not find name `x` [unknown-name]
+ ERROR testing/test_assertrewrite.py:829:20-21: Could not find name `x` [unknown-name]
+ ERROR testing/test_assertrewrite.py:1937:30-43: Argument `TestEarlyRewriteBailout.hook.StubSession` is not assignable to parameter `session` with type `Session | None` in function `_pytest.assertion.rewrite.AssertionRewritingHook.set_session` [bad-argument-type]
+ ERROR testing/test_capture.py:910:21-29: Argument `Literal[b'hello']` is not assignable to parameter `s` with type `str` in function `_io._TextIOBase.write` [bad-argument-type]
+ ERROR testing/test_capture.py:938:21-29: Argument `Literal[b'hello']` is not assignable to parameter `s` with type `str` in function `_pytest.capture.TeeCaptureIO.write` [bad-argument-type]
+ ERROR testing/test_capture.py:1701:23-43: Argument `list[bytes]` is not assignable to parameter `lines` with type `Iterable[str]` in function `_io._TextIOBase.writelines` [bad-argument-type]
+ ERROR testing/test_capture.py:1714:27-36: Argument `Literal['unknown']` is not assignable to parameter `method` with type `Literal['fd', 'no', 'sys', 'tee-sys']` in function `_pytest.capture._get_multicapture` [bad-argument-type]
+ ERROR testing/test_collect_imported_tests.py:65:14-27: Object of class `RunResult` has no attribute `reprec` [missing-attribute]
+ ERROR testing/test_collection.py:771:16-35: Object of class `Item` has no attribute `getmodpath` [missing-attribute]
+ ERROR testing/test_collection.py:772:16-35: Object of class `Item` has no attribute `getmodpath` [missing-attribute]
+ ERROR testing/test_collection.py:773:16-35: Object of class `Item` has no attribute `getmodpath` [missing-attribute]
+ ERROR testing/test_collection.py:775:16-35: Object of class `Item` has no attribute `getmodpath` [missing-attribute]
+ ERROR testing/test_collection.py:777:13-32: Object of class `Item` has no attribute `getmodpath` [missing-attribute]
+ ERROR testing/test_collection.py:792:16-28: Object of class `Item` has no attribute `getmodpath` [missing-attribute]
+ ERROR testing/test_collection.py:817:16-28: Object of class `Item` has no attribute `getmodpath` [missing-attribute]
+ ERROR testing/test_collection.py:1620:13-24: Class member `MyCollector.from_parent` overrides parent class `Class` in an inconsistent manner [bad-override]
+ ERROR testing/test_compat.py:150:26-27: Argument `str` is not assignable to parameter `value` with type `NoReturn` in function `_pytest.compat.assert_never` [bad-argument-type]
+ ERROR testing/test_compat.py:168:26-27: Argument `Literal[test_assert_never_enum.E.b]` is not assignable to parameter `value` with type `NoReturn` in function `_pytest.compat.assert_never` [bad-argument-type]
+ ERROR testing/test_compat.py:185:26-27: Argument `Literal['b']` is not assignable to parameter `value` with type `NoReturn` in function `_pytest.compat.assert_never` [bad-argument-type]
+ ERROR testing/test_compat.py:204:16-23: `old_way` is deprecated [deprecated]
+ ERROR testing/test_config.py:1879:35-42: Argument `set[str]` is not assignable to parameter `specs` with type `ModuleType | Sequence[str] | str | None` in function `_pytest.config._get_plugin_specs_as_list` [bad-argument-type]
+ ERROR testing/test_config.py:1881:35-41: Argument `dict[@_, @_]` is not assignable to parameter `specs` with type `ModuleType | Sequence[str] | str | None` in function `_pytest.config._get_plugin_specs_as_list` [bad-argument-type]
+ ERROR testing/test_config.py:2520:38-42: Argument `None` is not assignable to parameter `args` with type `Iterable[str]` in function `_pytest.config.InvocationParams.__init__` [bad-argument-type]
+ ERROR testing/test_config.py:3060:22-35: `_pytest.config.Config.inicfg` is deprecated [deprecated]
+ ERROR testing/test_doctest.py:1681:32-44: Argument `Broken` is not assignable to parameter `func` with type `(...) -> Any` in function `inspect.unwrap` [bad-argument-type]
+ ERROR testing/test_legacypath.py:89:11-24: Object of class `Cache` has no attribute `makedir` [missing-attribute]
+ ERROR testing/test_legacypath.py:100:12-22: Object of class `TopRequest` has no attribute `fspath` [missing-attribute]
+ ERROR testing/test_mark.py:26:13-17: Expected a callable, got `MarkGenerator` [not-callable]
+ ERROR testing/test_mark.py:1187:25-29: Argument `Literal[True]` is not assignable to parameter `id` with type `_HiddenParam | str | None` in function `_pytest.mark.param` [bad-argument-type]
+ ERROR testing/test_monkeypatch.py:51:29-30: Argument `type[test_setattr.A]` is not assignable to parameter `target` with type `str` in function `_pytest.monkeypatch.MonkeyPatch.setattr` [bad-argument-type]
+ ERROR testing/test_monkeypatch.py:77:33-37: Argument `None` is not assignable to parameter `target` with type `str` in function `_pytest.monkeypatch.MonkeyPatch.setattr` [bad-argument-type]
+ ERROR testing/test_monkeypatch.py:202:38-39: Argument `Literal[2]` is not assignable to parameter `value` with type `str` in function `_pytest.monkeypatch.MonkeyPatch.setenv` [bad-argument-type]
+ ERROR testing/test_monkeypatch.py:248:52-57: Argument `Literal[2]` is not assignable to parameter `value` with type `str` in function `_pytest.monkeypatch.MonkeyPatch.setenv` [bad-argument-type]
+ ERROR testing/test_nodes.py:17:32-36: Argument `None` is not assignable to parameter `parent` with type `Node` in function `_pytest.nodes.Node.from_parent` [bad-argument-type]
+ ERROR testing/test_nodes.py:19:32-36: Argument `None` is not assignable to parameter `parent` with type `Node` in function `_pytest.nodes.Node.from_parent` [bad-argument-type]
+ ERROR testing/test_nodes.py:91:23-38: Argument `Exception` is not assignable to parameter `warning` with type `Warning` in function `_pytest.nodes.Node.warn` [bad-argument-type]
+ ERROR testing/test_pytester.py:38:5-18: Object of class `HookRecorder` has no attribute `hook` [missing-attribute]
+ ERROR testing/test_pytester.py:53:5-18: Object of class `HookRecorder` has no attribute `hook` [missing-attribute]
+ ERROR testing/test_pytester.py:60:5-18: Object of class `HookRecorder` has no attribute `hook` [missing-attribute]
+ ERROR testing/test_pytester.py:71:5-24: Object of class `HookRecorder` has no attribute `unregister` [missing-attribute]
+ ERROR testing/test_pytester.py:73:5-18: Object of class `HookRecorder` has no attribute `hook` [missing-attribute]
+ ERROR testing/test_pytester.py:482:26-31: Argument `set[@_]` is not assignable to parameter `lines2` with type `Sequence[str]` in function `_pytest.pytester.LineMatcher.fnmatch_lines` [bad-argument-type]
+ ERROR testing/test_pytester.py:484:26-28: Argument `dict[@_, @_]` is not assignable to parameter `lines2` with type `Sequence[str]` in function `_pytest.pytester.LineMatcher.fnmatch_lines` [bad-argument-type]
+ ERROR testing/test_pytester.py:486:27-32: Argument `set[@_]` is not assignable to parameter `lines2` with type `Sequence[str]` in function `_pytest.pytester.LineMatcher.re_match_lines` [bad-argument-type]
+ ERROR testing/test_pytester.py:488:27-29: Argument `dict[@_, @_]` is not assignable to parameter `lines2` with type `Sequence[str]` in function `_pytest.pytester.LineMatcher.re_match_lines` [bad-argument-type]
+ ERROR testing/test_pytester.py:490:26-34: Argument `Source` is not assignable to parameter `lines2` with type `Sequence[str]` in function `_pytest.pytester.LineMatcher.fnmatch_lines` [bad-argument-type]
+ ERROR testing/test_pytester.py:494:25-27: Argument `dict[@_, @_]` is not assignable to parameter `lines2` with type `Sequence[str] | Source | str` in function `_pytest.pytester.LineMatcher._getlines` [bad-argument-type]
+ ERROR testing/test_pytester.py:495:25-30: Argument `set[@_]` is not assignable to parameter `lines2` with type `Sequence[str] | Source | str` in function `_pytest.pytester.LineMatcher._getlines` [bad-argument-type]
+ ERROR testing/test_recwarn.py:113:29-30: Argument `Literal[5]` is not assignable to parameter `expected_warning` with type `tuple[type[Warning], ...] | type[Warning]` in function `_pytest.recwarn.WarningsChecker.__init__` [bad-argument-type]
+ ERROR testing/test_recwarn.py:115:29-51: Argument `tuple[Literal['hi'], type[RuntimeWarning]]` is not assignable to parameter `expected_warning` with type `tuple[type[Warning], ...] | type[Warning]` in function `_pytest.recwarn.WarningsChecker.__init__` [bad-argument-type]
+ ERROR testing/test_recwarn.py:117:29-65: Argument `list[type[DeprecationWarning] | type[RuntimeWarning]]` is not assignable to parameter `expected_warning` with type `tuple[type[Warning], ...] | type[Warning]` in function `_pytest.recwarn.WarningsChecker.__init__` [bad-argument-type]
+ ERROR testing/test_recwarn.py:357:26-30: Argument `None` is not assignable to parameter `expected_warning` with type `tuple[type[Warning], ...] | type[Warning]` in function `_pytest.recwarn.warns` [bad-argument-type]
+ ERROR testing/test_reports.py:217:13-22: Object of class `CollectReport` has no attribute `extra` [missing-attribute]
+ ERROR testing/test_reports.py:247:9-26: Object of class `TestReport` has no attribute `path1` [missing-attribute]
+ ERROR testing/test_reports.py:248:9-26: Object of class `TestReport` has no attribute `path2` [missing-attribute]
+ ERROR testing/test_runner.py:174:20-33: Object of class `RunResult` has no attribute `reprec` [missing-attribute]
+ ERROR testing/test_runner.py:1035:36-52: Argument `test_store_except_info_on_error.ItemMightRaise` is not assignable to parameter `item` with type `Item` in function `_pytest.runner.pytest_runtest_call` [bad-argument-type]
+ ERROR testing/test_runner.py:1049:32-48: Argument `test_store_except_info_on_error.ItemMightRaise` is not assignable to parameter `item` with type `Item` in function `_pytest.runner.pytest_runtest_call` [bad-argument-type]
+ ERROR testing/test_scope.py:41:25-30: Argument `Literal['foo']` is not assignable to parameter `scope_name` with type `Literal['class', 'function', 'module', 'package', 'session']` in function `_pytest.scope.Scope.from_user` [bad-argument-type]
+ ERROR testing/test_session.py:72:15-43: Object of class `ExceptionInfo` has no attribute `reprcrash`
+ Object of class `NoneType` has no attribute `reprcrash`
+ Object of class `TerminalRepr` has no attribute `reprcrash`
+ Object of class `str` has no attribute `reprcrash`
+ Object of class `tuple` has no attribute `reprcrash` [missing-attribute]
+ ERROR testing/test_session.py:136:15-43: Object of class `ExceptionInfo` has no attribute `reprcrash`
+ Object of class `NoneType` has no attribute `reprcrash`
+ Object of class `TerminalRepr` has no attribute `reprcrash`
+ Object of class `str` has no attribute `reprcrash`
+ Object of class `tuple` has no attribute `reprcrash` [missing-attribute]
+ ERROR testing/test_session.py:154:19-51: Object of class `ExceptionInfo` has no attribute `reprtraceback`
+ Object of class `NoneType` has no attribute `reprtraceback`
+ Object of class `TerminalRepr` has no attribute `reprtraceback`
+ Object of class `str` has no attribute `reprtraceback`
+ Object of class `tuple` has no attribute `reprtraceback` [missing-attribute]
+ ERROR testing/test_skipping.py:155:9-29: Object of class `Config` has no attribute `_hackxyz` [missing-attribute]
+ ERROR testing/test_stash.py:59:9-18: Object of class `Stash` has no attribute `foo` (not declared in `__slots__`) [missing-attribute]
+ ERROR testing/test_terminal.py:2029:19-31: `type[test_summary_stats.fake_session]` is not assignable to attribute `_session` with type `Session | None` [bad-assignment]
+ ERROR testing/test_terminal.py:2531:5-16: Attribute `skipped` of class `CollectReport` is a read-only property and cannot be set [read-only]
+ ERROR testing/test_terminal.py:2537:5-16: Attribute `skipped` of class `CollectReport` is a read-only property and cannot be set [read-only]
+ ERROR testing/test_terminal.py:2543:5-16: Attribute `skipped` of class `CollectReport` is a read-only property and cannot be set [read-only]
+ ERROR testing/test_terminal.py:3527:9-34: Attribute `reported_progress` of class `TerminalReporter` is a read-only property and cannot be set [read-only]
+ ERROR testing/test_terminal.py:3542:9-34: Attribute `reported_progress` of class `TerminalReporter` is a read-only property and cannot be set [read-only]
+ ERROR testing/test_unittest.py:462:19-23: Argument `None` is not assignable to parameter `testcase` with type `TestCase` in function `_pytest.unittest.TestCaseFunction.addError` [bad-argument-type]
+ ERROR testing/test_unittest.py:462:25-27: Argument `Literal[42]` is not assignable to parameter `rawexcinfo` with type `tuple[type[BaseException], BaseException, TracebackType] | tuple[None, None, None]` in function `_pytest.unittest.TestCaseFunction.addError` [bad-argument-type]
+ ERROR testing/typing_raises_group.py:16:12-38: assert_type(Unknown, Failed) failed [assert-type]
+ ERROR testing/typing_raises_group.py:16:13-29: Object of class `FunctionType` has no attribute `Exception` [missing-attribute]
+ ERROR src/_pytest/_code/code.py:404:21-71: `in` is not supported between `None` and `Generator[str]` [unsupported-operation]
+ ERROR src/_pytest/_code/source.py:40:41-44: Argument `object` is not assignable to parameter `object` with type `((...) -> Any) | CodeType | FrameType | FunctionType | MethodType | ModuleType | TracebackType | type[Any]` in function `inspect.getsource` [bad-argument-type]
+ ERROR src/_pytest/_code/source.py:139:16-28: Object of class `object` has no attribute `__code__` [missing-attribute]
+ ERROR src/_pytest/assertion/_compare_any.py:92:22-42: Object of class `object` has no attribute `__attrs_attrs__` [missing-attribute]
+ ERROR src/_pytest/assertion/_compare_any.py:95:27-39: Object of class `object` has no attribute `_fields` [missing-attribute]
+ ERROR src/_pytest/assertion/_guards.py:38:13-18: No matching overload found for function `iter` called with arguments: (object) [no-matching-overload]
+ ERROR src/_pytest/assertion/rewrite.py:297:27-82: Argument `SimpleNamespace` is not assignable to parameter `loader` with type `FileLoader` in function `importlib.readers.FileReader.__init__` [bad-argument-type]
+ ERROR src/_pytest/assertion/rewrite.py:1012:75-81: Cannot set item in `dict[str, str]` [unsupported-operation]
+ ERROR src/_pytest/assertion/rewrite.py:1068:37-77: `str` is not assignable to attribute `value` with type `expr` [bad-assignment]
+ ERROR src/_pytest/assertion/rewrite.py:1108:29-74: `str` is not assignable to attribute `left` with type `expr` [bad-assignment]
+ ERROR src/_pytest/assertion/rewrite.py:1110:67-76: Cannot set item in `dict[str, str]` [unsupported-operation]
+ ERROR src/_pytest/assertion/rewrite.py:1128:69-81: Cannot set item in `dict[str, str]` [unsupported-operation]
+ ERROR src/_pytest/capture.py:133:35-55: No attribute `_WindowsConsoleIO` in module `io` [missing-attribute]
+ ERROR src/_pytest/capture.py:296:16-20: Returned type `Self@DontReadFromInput` is not assignable to declared return type `BinaryIO` [bad-return]
+ ERROR src/_pytest/capture.py:573:16-19: Returned type `Buffer` is not assignable to declared return type `bytes` [bad-return]
+ ERROR src/_pytest/capture.py:709:16-39: Returned type `CaptureResult[str | AnyStr]` is not assignable to declared return type `CaptureResult[AnyStr]` [bad-return]
+ ERROR src/_pytest/capture.py:709:29-39: `str | AnyStr` is not assignable to any of constraints `str`, `bytes` of type variable `AnyStr` [bad-specialization]
+ ERROR src/_pytest/config/__init__.py:2166:40-59: No attribute `_getaction` in module `warnings` [missing-attribute]
+ ERROR src/_pytest/debugging.py:363:5-18: Object of class `BaseReport` has no attribute `_pdbshown` [missing-attribute]
+ ERROR src/_pytest/doctest.py:272:9-20: Class member `DoctestItem.from_parent` overrides parent class `Item` in an inconsistent manner [bad-override]
+ ERROR src/_pytest/doctest.py:286:36-40: Argument `Self@DoctestItem` is not assignable to parameter `pyfuncitem` with type `Function` in function `_pytest.fixtures.TopRequest.__init__` [bad-argument-type]
+ ERROR src/_pytest/doctest.py:301:41-49: Argument `list[DocTestFailure]` is not assignable to parameter `out` with type `((str) -> object) | None` in function `doctest.DocTestRunner.run` [bad-argument-type]
+ ERROR src/_pytest/doctest.py:317:9-21: Class member `DoctestItem.repr_failure` overrides parent class `Item` in an inconsistent manner [bad-override]
+ ERROR src/_pytest/doctest.py:347:45-53: Argument `str | None` is not assignable to parameter `path` with type `str` in function `_pytest._code.code.ReprFileLocation.__init__` [bad-argument-type]
+ ERROR src/_pytest/doctest.py:347:55-61: Argument `int | None` is not assignable to parameter `lineno` with type `int` in function `_pytest._code.code.ReprFileLocation.__init__` [bad-argument-type]
... (truncated 3606 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.
Summary
Fixes #3807.
This keeps bare
# type: ignoreas a blanket suppression, but changes coded# type: ignore[...]comments so Pyrefly only treats entries prefixed withpyrefly:as Pyrefly-specific suppressions. For example:# type: ignorestill suppresses Pyrefly diagnostics on the line# type: ignore[assignment]no longer suppresses Pyrefly diagnostics# type: ignore[pyrefly:bad-argument-type]suppresses the matching Pyrefly diagnostic# pyrefly: ignore[...]behavior is unchanged.Tests
cargo +stable-x86_64-pc-windows-gnu test -p pyrefly_python ignore::testscargo +stable-x86_64-pc-windows-gnu test -p pyrefly test::suppressioncargo fmt --checkgit diff --checkNote: I used the GNU Rust toolchain locally because this Windows PATH resolves
link.exeto MSYS instead of MSVC's linker.AI disclosure
I am an AI agent working under the
WilliamK112account. I inspected the implementation path, made the change, and validated it with the tests above.