[ty] Fix false-positive diagnostics for PEP-604 union annotations on attribute targets on Python 3.9 when from __future__ import annotations is active by AlexWaygood · Pull Request #23915 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
pyp (https://github.com/hauntsaninja/pyp)
- pyp.py:343:30: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Call'>andNone - Found 7 diagnostics
- Found 6 diagnostics
packaging (https://github.com/pypa/packaging)
- src/packaging/_tokenizer.py:106:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Token'>andNone - src/packaging/requirements.py:50:19: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/packaging/requirements.py:53:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Marker'>andNone - src/packaging/specifiers.py:309:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'tuple[str, Version]'>andNone - src/packaging/specifiers.py:312:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'tuple[list[str], int]'>andNone - src/packaging/specifiers.py:935:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[tuple[(Version, str, /) -> bool, str, str]]'>andNone - Found 25 diagnostics
- Found 19 diagnostics
pip (https://github.com/pypa/pip)
- src/pip/_internal/cache.py:193:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'DirectUrl'>andNone - src/pip/_internal/cli/base_command.py:65:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'TempDirectoryTypeRegistry'>andNone - src/pip/_internal/cli/index_command.py:63:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'PipSession'>andNone - src/pip/_internal/index/collector.py:278:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/pip/_internal/index/collector.py:279:38: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/pip/_internal/index/package_finder.py:669:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'BaseSpecifier'>andNone - src/pip/_internal/index/package_finder.py:669:57: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Hashes'>andNone - src/pip/_internal/metadata/pkg_resources.py:85:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Mapping[Any, str]'>andNone - src/pip/_internal/models/target_python.py:66:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[Tag]'>andNone - src/pip/_internal/models/target_python.py:67:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'set[Tag]'>andNone - src/pip/_internal/network/auth.py:243:36: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Credentials'>andNone - src/pip/_internal/network/session.py:348:51: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - src/pip/_internal/network/session.py:389:37: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'InsecureCacheControlAdapter'>and<class 'InsecureHTTPAdapter'> - src/pip/_internal/req/req_install.py:97:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/pip/_internal/req/req_install.py:113:40: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Link'>andNone - src/pip/_internal/req/req_install.py:117:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'DirectUrl'>andNone - src/pip/_internal/req/req_install.py:120:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/pip/_internal/req/req_install.py:135:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'BaseDistribution'>andNone - src/pip/_internal/req/req_install.py:140:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'TempDirectory'>andNone - src/pip/_internal/req/req_install.py:142:33: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'bool'>andNone - src/pip/_internal/req/req_install.py:160:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/pip/_internal/req/req_install.py:164:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'BaseDistribution'>andNone - src/pip/_internal/req/req_install.py:167:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[str]'>andNone - src/pip/_internal/req/req_install.py:173:30: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'BuildBackendHookCaller'>andNone - src/pip/_internal/req/req_install.py:179:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Path'>andNone - src/pip/_internal/req/req_uninstall.py:588:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[bytes]'>andNone - src/pip/_internal/resolution/resolvelib/candidates.py:162:21: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - src/pip/_internal/resolution/resolvelib/found_candidates.py:133:21: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'bool'>andNone - src/pip/_internal/resolution/resolvelib/requirements.py:56:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/pip/_internal/resolution/resolvelib/requirements.py:57:21: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - src/pip/_internal/resolution/resolvelib/requirements.py:133:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/pip/_internal/resolution/resolvelib/requirements.py:134:21: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - src/pip/_internal/resolution/resolvelib/requirements.py:164:21: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - src/pip/_internal/resolution/resolvelib/resolver.py:74:23: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Result[Requirement, Candidate, str]'>andNone - src/pip/_internal/vcs/subversion.py:196:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'tuple[int, ...]'>andNone - src/pip/_vendor/dependency_groups/_implementation.py:81:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Requirement'>and<class 'DependencyGroupInclude'> - src/pip/_vendor/packaging/_tokenizer.py:106:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Token'>andNone - src/pip/_vendor/packaging/requirements.py:41:19: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/pip/_vendor/packaging/requirements.py:44:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Marker'>andNone - src/pip/_vendor/packaging/specifiers.py:269:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'tuple[str, Version]'>andNone - src/pip/_vendor/pkg_resources/init.py:3374:30: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - src/pip/_vendor/resolvelib/resolvers/resolution.py:86:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[State[RT@Resolution, CT@Resolution, KT@Resolution]]'>andNone - src/pip/_vendor/resolvelib/resolvers/resolution.py:87:39: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - src/pip/_vendor/resolvelib/structs.py:162:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Iterable[RT@_FactoryIterableView]'>andNone - Found 700 diagnostics
- Found 656 diagnostics
pyjwt (https://github.com/jpadilla/pyjwt)
- jwt/jwks_client.py:73:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'JWKSetCache'>andNone - Found 36 diagnostics
- Found 35 diagnostics
dedupe (https://github.com/dedupeio/dedupe)
- dedupe/api.py:83:30: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Fingerprinter'>andNone - dedupe/api.py:677:13: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'MutableMapping[int, Mapping[str, Any]]'>and<class 'MutableMapping[str, Mapping[str, Any]]'> - dedupe/predicates.py:168:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - Found 56 diagnostics
- Found 53 diagnostics
PyWinCtl (https://github.com/Kalmat/PyWinCtl)
- src/pywinctl/_main.py:453:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class '_WatchDogWorker'>andNone - Found 22 diagnostics
- Found 21 diagnostics
nox (https://github.com/wntrblm/nox)
- nox/manifest.py:74:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - nox/sessions.py:995:20: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'ProcessEnv'>andNone - nox/sessions.py:997:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Result'>andNone - nox/virtualenv.py:590:25: error[unsupported-operator] Operator
|is unsupported between objects of typeNoneand<class 'str'> - Found 27 diagnostics
- Found 23 diagnostics
pydantic (https://github.com/pydantic/pydantic)
- pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type
dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | ((dict[str, Divergent], type[Any], /) -> None)on TypedDictCoreMetadata: value of typedict[object, object]
- pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type
dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | ((dict[str, int | float | str | ... omitted 3 union elements], type[Any], /) -> None)on TypedDictCoreMetadata: value of typedict[object, object]
- pydantic/_internal/_discriminated_union.py:109:36: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - pydantic/_internal/_docs_extraction.py:16:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - pydantic/_internal/_docs_extraction.py🔞34: error[unsupported-operator] Operator
|is unsupported between objects of type<special-form 'type[AST]'>andNone - pydantic/_internal/_namespace_utils.py:230:33: error[unsupported-operator] Operator
|is unsupported between objects of type<special-form 'type[Any]'>and<class 'TypeAliasType'> - pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None
- pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type
PydanticUndefinedTypeis not assignable to annotated parameter typedict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None
- pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None, founddict[str, Divergent] | dict[Never, Never] | (((dict[str, Divergent], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None
- pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected
dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None, founddict[str, int | float | str | ... omitted 3 union elements] | dict[Never, Never] | (((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None
- Found 3194 diagnostics
- Found 3190 diagnostics
PyGithub (https://github.com/PyGithub/PyGithub)
- github/AccessToken.py:57:37: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - github/AccessToken.py:58:45: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - github/AdvisoryVulnerabilityPackage.py:69:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/Auth.py:527:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/Auth.py:528:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/Authorization.py:66:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/Authorization.py:67:35: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/CheckRun.py:93:39: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/CodeScanAlert.py:70:48: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/CodeScanAlert.py:71:39: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/CodeScanAlert.py:72:39: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>andNone - github/CodeScanAlert.py:73:44: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/CodeScanAlert.py:74:43: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/CodeScanAlert.py:75:35: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/CommitComment.py:90:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/CommitStatus.py:71:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/CopilotSeat.py:52:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Attribute[NamedUser]'>and<class '_NotSetType'> - github/CopilotSeat.py:53:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Attribute[Team]'>and<class '_NotSetType'> - github/CopilotSeat.py:54:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Attribute[datetime]'>and<class '_NotSetType'> - github/CopilotSeat.py:55:33: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Attribute[datetime]'>and<class '_NotSetType'> - github/CopilotSeat.py:56:37: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Attribute[str]'>and<class '_NotSetType'> - github/CopilotSeat.py:59:42: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Attribute[datetime]'>and<class '_NotSetType'> - github/CopilotSeat.py:60:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Attribute[str]'>and<class '_NotSetType'> - github/CopilotSeat.py:61:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Attribute[datetime]'>and<class '_NotSetType'> - github/DependabotAlert.py:64:39: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/DependabotAlert.py:65:39: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/DependabotAlert.py:66:44: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/DependabotAlert.py:67:43: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/DependabotAlertVulnerability.py:50:51: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/Deployment.py:81:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/Deployment.py:96:37: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/DiscussionBase.py:59:33: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>andNone - github/DiscussionCommentBase.py:59:33: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>andNone - github/EnvironmentProtectionRuleReviewer.py:65:35: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Team'> - github/GitReleaseAsset.py:73:33: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/GithubApp.py:88:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/Installation.py:106:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/Invitation.py:77:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/Invitation.py:78:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/Issue.py:132:45: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/Issue.py:133:35: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>andNone - github/Issue.py:162:39: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/IssueComment.py:95:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/IssueEvent.py:83:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/IssueEvent.py:84:35: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/IssueEvent.py:85:35: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/IssueEvent.py:101:45: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/IssueEvent.py:103:43: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/Migration.py:94:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/NamedUser.py:107:30: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/NamedUser.py:108:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/NamedUser.py:111:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/NamedUser.py:116:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/NamedUser.py:123:38: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/NamedUser.py:124:35: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'bool'>andNone - github/NamedUser.py:130:35: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/NamedUser.py:150:39: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/NamedUser.py:154:43: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/Organization.py:189:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/OrganizationCustomProperty.py:90:40: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'list[str]'> - github/PaginatedList.py:206:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - github/Project.py:83:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/PublicKey.py:82:33: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'int'> - github/PullRequest.py:168:36: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/PullRequest.py:188:36: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/PullRequest.py:203:37: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone
- github/Repository.py:381:84: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective
- github/RepositoryDiscussion.py:65:33: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'RepositoryDiscussionComment'>andNone - github/RepositoryPreferences.py:66:63: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'bool'>and<class 'int'> - github/Requester.py:431:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'HTTPRequestsConnectionClass'>and<class 'HTTPSRequestsConnectionClass'> - github/Requester.py:433:42: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'HTTPRequestsConnectionClass'>and<class 'HTTPSRequestsConnectionClass'>
- github/Requester.py:1411:52: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective
- github/SecretScanAlert.py:60:65: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/SecretScanAlert.py:61:66: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/SecretScanAlert.py:62:66: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>andNone - github/SecretScanAlert.py:63:74: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/SecretScanAlert.py:65:54: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/SecretScanAlert.py:66:54: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>andNone - github/SecretScanAlert.py:67:37: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/SecretScanAlert.py:68:45: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - github/SecretScanAlert.py:69:38: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'datetime'>andNone - github/SecretScanAlert.py:70:38: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>andNone - github/SelfHostedActionsRunner.py:64:48: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>and<class 'str'> - github/StatsContributor.py:109:33: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'NamedUser'>and<class 'Organization'> - github/WorkflowJob.py:53:37: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - tests/Framework.py:383:40: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'float'>andNone - tests/Framework.py:384:38: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'float'>andNone - tests/Framework.py:388:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - Found 410 diagnostics
- Found 326 diagnostics
optuna (https://github.com/optuna/optuna)
- optuna/_imports.py:27:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'tuple[Exception, str]'>andNone - optuna/importance/_fanova/_fanova.py:49:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[_FanovaTree]'>andNone - optuna/importance/_fanova/_fanova.py:50:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'dict[int, ndarray[Unknown, dtype[Any]]]'>andNone - optuna/importance/_fanova/_fanova.py:51:42: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[ndarray[Unknown, dtype[Any]]]'>andNone - optuna/pruners/_hyperband.py:162:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - optuna/pruners/_successive_halving.py:162:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - optuna/samplers/_gp/sampler.py:197:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[GPRegressor]'>andNone - optuna/samplers/_gp/sampler.py:198:44: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[GPRegressor]'>andNone - optuna/samplers/_lazy_random_state.py:15:20: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'RandomState'>andNone - optuna/samplers/_qmc.py:164:37: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'dict[str, BaseDistribution]'>andNone - optuna/samplers/_tpe/sampler.py:353:46: error[unsupported-operator] Operator
|is unsupported between objects of type<class '_GroupDecomposedSearchSpace'>andNone - optuna/samplers/_tpe/sampler.py:354:35: error[unsupported-operator] Operator
|is unsupported between objects of type<class '_SearchSpaceGroup'>andNone - optuna/search_space/group_decomposed.py:43:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - optuna/search_space/intersection.py:79:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'dict[str, BaseDistribution]'>andNone - optuna/search_space/intersection.py:80:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - optuna/storages/_cached_storage.py:32:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[StudyDirection]'>andNone - optuna/storages/_cached_storage.py:33:20: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - optuna/storages/_heartbeat.py:109:23: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Thread'>andNone - optuna/storages/_heartbeat.py:110:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Event'>andNone - optuna/storages/_in_memory.py:424:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - optuna/terminator/median_erroreval.py:62:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'float'>andNone - optuna/testing/storages.py:85:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'IO[Any]'>andNone - optuna/testing/storages.py:87:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Thread'>andNone - optuna/testing/storages.py:88:21: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'GrpcStorageProxy'>andNone - optuna/testing/storages.py:89:23: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'BaseStorage'>andNone - optuna/testing/storages.py:90:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'BaseStorage'>andNone - optuna/testing/tempfile_pool.py:25:21: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'IO[bytes]'>and<class 'IO[str]'> - optuna/testing/threading.py:11:19: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'BaseException'>andNone - optuna/trial/_frozen.py:158:23: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[int | float]'>andNone - optuna/trial/_trial.py:62:37: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'dict[str, BaseDistribution]'>andNone - optuna/trial/_trial.py:63:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'dict[str, Any]'>andNone - tests/storages_tests/journal_tests/test_journal.py:46:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'IO[Any]'>andNone - Found 639 diagnostics
- Found 607 diagnostics
mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/config/config_options.py:698:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - mkdocs/config/config_options.py:1053:23: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Config'>andNone - mkdocs/contrib/search/search_index.py:176:23: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'ContentSection'>andNone - mkdocs/livereload/init.py:120:45: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'bytes'>andNone - mkdocs/structure/pages.py:57:34: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - Found 225 diagnostics
- Found 220 diagnostics
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/asynchronous/mongo_client.py:773:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'float'>andNone - pymongo/asynchronous/mongo_client.py:775:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class '_EventListeners'>andNone - pymongo/asynchronous/topology.py:114:23: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Queue[Any]'>andNone - pymongo/synchronous/mongo_client.py:773:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'float'>andNone - pymongo/synchronous/mongo_client.py:775:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class '_EventListeners'>andNone - pymongo/synchronous/topology.py:114:23: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Queue[Any]'>andNone - Found 435 diagnostics
- Found 429 diagnostics
setuptools (https://github.com/pypa/setuptools)
- setuptools/_distutils/command/install.py:251:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/command/install.py:252:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/command/install.py:253:20: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/command/install.py:261:20: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/command/install.py:270:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/compilers/C/base.py:139:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:192:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'list[str]'> - setuptools/_distutils/dist.py:197:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'PathLike[str]'> - setuptools/_distutils/dist.py:198:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[str]'>andNone - setuptools/_distutils/dist.py:1142:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1143:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1144:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1145:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1146:30: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1147:36: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1148:23: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1149:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1150:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1151:36: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1152:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'list[str]'> - setuptools/_distutils/dist.py:1153:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'list[str]'> - setuptools/_distutils/dist.py:1154:31: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'list[str]'> - setuptools/_distutils/dist.py:1155:32: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_distutils/dist.py:1157:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'list[str]'> - setuptools/_distutils/dist.py:1158:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'list[str]'> - setuptools/_distutils/dist.py:1159:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'list[str]'> - setuptools/_distutils/filelist.py:39:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Iterable[str]'>andNone - setuptools/_vendor/packaging/_tokenizer.py:106:26: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Token'>andNone - setuptools/_vendor/packaging/requirements.py:41:19: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_vendor/packaging/requirements.py:44:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Marker'>andNone - setuptools/_vendor/packaging/specifiers.py:269:29: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'tuple[str, Version]'>andNone - setuptools/_vendor/wheel/_bdist_wheel.py:251:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_vendor/wheel/_bdist_wheel.py:255:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_vendor/wheel/_bdist_wheel.py:257:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'bool'>andNone - setuptools/_vendor/wheel/_bdist_wheel.py:263:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'int'> - setuptools/_vendor/wheel/_bdist_wheel.py:265:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/_vendor/wheel/_bdist_wheel.py:266:30: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<special-form 'Literal[False]'> - setuptools/_vendor/wheel/wheelfile.py:82:38: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'tuple[None, None]'>and<class 'tuple[int, bytes]'> - setuptools/command/bdist_wheel.py:209:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/command/bdist_wheel.py:211:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/command/bdist_wheel.py:212:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/command/bdist_wheel.py:215:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/command/bdist_wheel.py:217:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/command/bdist_wheel.py:218:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'bool'>andNone - setuptools/command/bdist_wheel.py:224:27: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<class 'int'> - setuptools/command/bdist_wheel.py:226:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/command/bdist_wheel.py:227:30: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>and<special-form 'Literal[False]'> - setuptools/config/expand.py:438:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Mapping[_K@LazyMappingProxy, _V_co@LazyMappingProxy]'>andNone - setuptools/dist.py:309:36: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'bool'>andNone - setuptools/dist.py:310:36: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'dict[str, list[str]]'>andNone - setuptools/dist.py:312:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'str'>andNone - setuptools/tests/integration/helpers.py:44:24: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'TarFile'>and<class 'ZipFile'> - Found 1177 diagnostics
- Found 1125 diagnostics
altair (https://github.com/vega/altair)
- altair/datasets/_data.py:258:30: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'list[LiteralString]'>andNone - altair/datasets/_data.py:258:35: error[unsupported-operator] Operator
|is unsupported between objects of type<special-form 'Literal["airports", "annual_precip", "anscombe", "barley", "birdstrikes", ... omitted 68 literals]'>and<special-form 'typing.LiteralString'> - altair/utils/execeval.py:21:22: error[unsupported-operator] Operator
|is unsupported between objects of type<special-form 'typing.Any'>andNone - Found 1072 diagnostics
- Found 1069 diagnostics
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/profiling/collector/pytorch.py:40:22: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Tracer'>andNone - Found 9361 diagnostics
- Found 9360 diagnostics
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
- src/scikit_build_core/build/wheel.py:99:20: error[no-matching-overload] No overload of bound method
__init__matches arguments
- src/scikit_build_core/hatch/plugin.py:41:25: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'Path'>andNone - src/scikit_build_core/resources/_editable_redirect.py:30:28: error[unsupported-operator] Operator
|is unsupported between objects of type<class 'int'>andNone - Found 59 diagnostics
- Found 58 diagnostics