[ty] More precise type inference for dictionary literals by ibraheemdev · Pull Request #20523 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
mypy_primer (https://github.com/hauntsaninja/mypy_primer)
- mypy_primer/main.py:67:87: error[invalid-argument-type] Argument to function
setup_mypyis incorrect: Expectedstr | None, foundUnknown | str | None | int | RustBuildMode | Path - mypy_primer/main.py:67:87: error[invalid-argument-type] Argument to function
setup_mypyis incorrect: Expectedint | None, foundUnknown | str | None | int | RustBuildMode | Path - mypy_primer/main.py:67:87: error[invalid-argument-type] Argument to function
setup_mypyis incorrect: Expectedbool, foundUnknown | str | None | int | RustBuildMode | Path - mypy_primer/main.py:67:87: error[invalid-argument-type] Argument to function
setup_pyrightis incorrect: Expectedstr | None, foundUnknown | str | None | int | RustBuildMode | Path - mypy_primer/main.py:67:87: error[invalid-argument-type] Argument to function
setup_tyis incorrect: ExpectedRustBuildMode, foundUnknown | str | None | int | RustBuildMode | Path - mypy_primer/main.py:67:87: error[invalid-argument-type] Argument to function
setup_tyis incorrect: Expectedstr | None, foundUnknown | str | None | int | RustBuildMode | Path - mypy_primer/main.py:67:87: error[invalid-argument-type] Argument to function
setup_pyreflyis incorrect: ExpectedRustBuildMode, foundUnknown | str | None | int | RustBuildMode | Path - mypy_primer/main.py:67:87: error[invalid-argument-type] Argument to function
setup_pyreflyis incorrect: Expectedstr | None, foundUnknown | str | None | int | RustBuildMode | Path - mypy_primer/main.py:67:87: error[invalid-argument-type] Argument to function
setup_pyreflyis incorrect: ExpectedPath | None, foundUnknown | str | None | int | RustBuildMode | Path
- Found 3 diagnostics
- Found 12 diagnostics
attrs (https://github.com/python-attrs/attrs)
- src/attr/_funcs.py:487:44: error[invalid-argument-type] Argument to function
get_type_hintsis incorrect: Expecteddict[str, Any] | None, foundUnknown | None | bool - src/attr/_funcs.py:487:44: error[invalid-argument-type] Argument to function
get_type_hintsis incorrect: ExpectedMapping[str, Any] | None, foundUnknown | None | bool - src/attr/_funcs.py:487:44: error[invalid-argument-type] Argument to function
get_type_hintsis incorrect: Expectedbool, foundUnknown | None | bool
- src/attr/_make.py:261:12: error[invalid-return-type] Return type does not match returned value: expected
dict[str, Any], founddict[@Todo, @Todo] | Mapping[str, object]
- src/attr/_make.py:261:12: error[invalid-return-type] Return type does not match returned value: expected
dict[str, Any], founddict[Unknown, Unknown] | Mapping[str, object] - tests/test_make.py:587:13: error[no-matching-overload] No overload of function
attrsmatches arguments
- tests/test_next_gen.py:444:25: error[invalid-argument-type] Argument is incorrect: Expected
int, founddict[@Todo, @Todo]
- tests/test_next_gen.py:444:25: error[invalid-argument-type] Argument is incorrect: Expected
int, founddict[Unknown | tuple[int], Unknown | int]
- Found 565 diagnostics
- Found 569 diagnostics
aioredis (https://github.com/aio-libs/aioredis)
- aioredis/client.py:916:46: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedtype[Connection], foundUnknown | str | int | None | float - aioredis/client.py:916:46: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint | None, foundUnknown | str | int | None | float
- Found 16 diagnostics
- Found 18 diagnostics
pyinstrument (https://github.com/joerick/pyinstrument)
- pyinstrument/context_manager.py:40:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint | float, foundUnknown | None
- Found 42 diagnostics
- Found 43 diagnostics
kornia (https://github.com/kornia/kornia)
- kornia/contrib/models/sam/model.py:212:35: error[unresolved-attribute] Type
SamConfighas no attributenum_heads
- kornia/contrib/models/tiny_vit.py:411:74: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint, foundAny | list[@Todo] | PatchMerging | None | bool - kornia/contrib/models/tiny_vit.py:411:74: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint, foundAny | list[@Todo] | PatchMerging | None | bool - kornia/contrib/models/tiny_vit.py:411:74: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint | float | list[int | float], foundAny | list[@Todo] | PatchMerging | None | bool - kornia/contrib/models/tiny_vit.py:411:74: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundAny | list[@Todo] | PatchMerging | None | bool - kornia/contrib/models/tiny_vit.py:420:21: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint, foundAny | list[@Todo] | PatchMerging | None | bool - kornia/contrib/models/tiny_vit.py:420:21: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint, foundAny | list[@Todo] | PatchMerging | None | bool - kornia/contrib/models/tiny_vit.py:420:21: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint | float | list[int | float], foundAny | list[@Todo] | PatchMerging | None | bool - kornia/contrib/models/tiny_vit.py:420:21: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundAny | list[@Todo] | PatchMerging | None | bool - kornia/feature/loftr/loftr.py:105:13: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["d_model"]on object of typestr - kornia/feature/loftr/loftr.py:105:13: error[invalid-argument-type] Method
__getitem__of typeOverload[(index: SupportsIndex, /) -> int, (index: slice[Any, Any, Any], /) -> tuple[int, ...]]cannot be called with key of typeLiteral["d_model"]on object of typetuple[int, int] - kornia/feature/loftr/loftr.py:105:13: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint, foundAny | int | list[Unknown | int] | list[Unknown | str] | str | float - kornia/feature/loftr/loftr.py:105:13: error[non-subscriptable] Cannot subscript object of type
intwith no__getitem__method - kornia/feature/loftr/loftr.py:105:42: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundAny | int | list[Unknown | int] | list[Unknown | str] | str | float - kornia/feature/loftr/loftr.py:105:55: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["temp_bug_fix"]on object of typestr - kornia/feature/loftr/loftr.py:105:55: error[invalid-argument-type] Method
__getitem__of typeOverload[(index: SupportsIndex, /) -> int, (index: slice[Any, Any, Any], /) -> tuple[int, ...]]cannot be called with key of typeLiteral["temp_bug_fix"]on object of typetuple[int, int] - kornia/feature/loftr/loftr.py:105:55: error[non-subscriptable] Cannot subscript object of type
intwith no__getitem__method - kornia/feature/loftr/loftr.py:107:53: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any], foundAny | str | tuple[int, int] | int | dict[Unknown | str, Unknown | int | list[Unknown | int]] | dict[Unknown | str, Unknown | int | list[Unknown | str] | str] | dict[Unknown | str, Unknown | float | int | str] - kornia/feature/loftr/loftr.py:108:47: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any], foundAny | str | tuple[int, int] | int | dict[Unknown | str, Unknown | int | list[Unknown | int]] | dict[Unknown | str, Unknown | int | list[Unknown | str] | str] | dict[Unknown | str, Unknown | float | int | str] - kornia/feature/loftr/loftr.py:110:51: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any], foundAny | str | tuple[int, int] | int | dict[Unknown | str, Unknown | int | list[Unknown | int]] | dict[Unknown | str, Unknown | int | list[Unknown | str] | str] | dict[Unknown | str, Unknown | float | int | str]
- Found 783 diagnostics
- Found 801 diagnostics
bandersnatch (https://github.com/pypa/bandersnatch)
- src/bandersnatch/simple.py:222:13: warning[possibly-missing-attribute] Attribute
appendon typeAny | list[Unknown] | dict[Unknown | str, Unknown | str] | strmay be missing - src/bandersnatch/simple.py:290:25: warning[possibly-missing-attribute] Attribute
appendon typeAny | dict[Unknown | str, Unknown | int] | list[Unknown]may be missing
- Found 114 diagnostics
- Found 116 diagnostics
beartype (https://github.com/beartype/beartype)
- beartype/_check/code/_pep/pep484585/codepep484585container.py:97:77: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - Found 586 diagnostics
- Found 585 diagnostics
spack (https://github.com/spack/spack)
- lib/spack/spack/bootstrap/core.py:225:17: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toQueryInfo
- lib/spack/spack/bootstrap/core.py:225:17: error[invalid-assignment] Object of type
dict[Unknown, Unknown]is not assignable toQueryInfo
- lib/spack/spack/bootstrap/core.py:233:18: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toQueryInfo
- lib/spack/spack/bootstrap/core.py:233:18: error[invalid-assignment] Object of type
dict[Unknown, Unknown]is not assignable toQueryInfo
- lib/spack/spack/bootstrap/core.py:246:18: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toQueryInfo
- lib/spack/spack/bootstrap/core.py:246:18: error[invalid-assignment] Object of type
dict[Unknown, Unknown]is not assignable toQueryInfo
- lib/spack/spack/bootstrap/core.py:267:9: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toQueryInfo
- lib/spack/spack/bootstrap/core.py:267:9: error[invalid-assignment] Object of type
dict[Unknown, Unknown]is not assignable toQueryInfo
- lib/spack/spack/bootstrap/core.py:307:9: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toQueryInfo
- lib/spack/spack/bootstrap/core.py:307:9: error[invalid-assignment] Object of type
dict[Unknown, Unknown]is not assignable toQueryInfo - lib/spack/spack/ci/gitlab.py:408:61: error[invalid-argument-type] Argument to function
ensure_expected_target_pathis incorrect: Expectedstr, foundUnknown | str | bytes | (Unknown & ~AlwaysFalsy)
- lib/spack/spack/operating_systems/windows_os.py:52:51: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- lib/spack/spack/solver/requirements.py:207:52: error[invalid-argument-type] Argument to function
parse_spec_from_yaml_stringis incorrect: Expectedstr, found(Unknown & ~AlwaysFalsy) | (list[Unknown | (Unknown & str)] & ~AlwaysFalsy) - lib/spack/spack/solver/requirements.py:223:25: error[invalid-argument-type] Argument is incorrect: Expected
str | None, foundUnknown | list[Unknown | (Unknown & str)] | None
- lib/spack/spack/test/ci.py:228:60: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedMessage[str, str], founddict[@Todo, @Todo]
- lib/spack/spack/test/ci.py:228:60: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedMessage[str, str], founddict[Unknown, Unknown]
- lib/spack/spack/util/spack_json.py:26:53: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - lib/spack/spack/util/spack_json.py:27:49: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - lib/spack/spack/vendor/jinja2/environment.py:1114:25: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedMutableMapping[Unknown, Unknown], foundMapping[str, Any] | dict[@Todo, @Todo]
- lib/spack/spack/vendor/jinja2/environment.py:1114:25: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedMutableMapping[Unknown, Unknown], foundMapping[str, Any] | dict[Unknown, Unknown] - share/spack/qa/flake8_formatter.py:62:16: warning[possibly-missing-attribute] Attribute
searchon typeUnknown | strmay be missing
- Found 7528 diagnostics
- Found 7529 diagnostics
isort (https://github.com/pycqa/isort)
- isort/parse.py:425:29: error[invalid-assignment] Object of type
Unknown | dict[Unknown, Unknown]is not assignable tolist[Any] | None - isort/parse.py:432:33: error[invalid-assignment] Object of type
Unknown | dict[Unknown, Unknown]is not assignable tolist[Any] | None - isort/parse.py:436:33: error[invalid-assignment] Object of type
Unknown | dict[Unknown, Unknown]is not assignable tolist[Any] | None - isort/parse.py:486:21: error[invalid-assignment] Object of type
Unknown | dict[Unknown, Unknown]is not assignable tolist[Any] | None
- Found 31 diagnostics
- Found 35 diagnostics
werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/serving.py:223:12: warning[possibly-missing-attribute] Attribute
stripon typeUnknown | tuple[int, int] | str | TextIO | boolmay be missing - src/werkzeug/serving.py:225:52: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedIO[bytes], foundUnknown | tuple[int, int] | str | TextIO | bool - src/werkzeug/wsgi.py:66:42: error[invalid-argument-type] Argument to function
get_current_urlis incorrect: Expectedbytes | None, foundUnknown | str
- Found 364 diagnostics
- Found 367 diagnostics
pylint (https://github.com/pycqa/pylint)
- pylint/checkers/unicode.py:414:17: error[invalid-argument-type] Argument to function
_map_positions_to_resultis incorrect: Expecteddict[bytes | str, _BadChar], founddict[bytes, _BadChar]
- Found 180 diagnostics
- Found 181 diagnostics
pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/fixtures.py:1658:24: error[invalid-return-type] Return type does not match returned value: expected
Scope, foundScope | (Unknown & ~None & ~((...) -> object) & ~str) | (((str, Config, /) -> Unknown) & ~((...) -> object) & ~str) | (Unknown & ~str) - src/_pytest/terminal.py:1550:9: error[no-matching-overload] No overload of bound method
setdefaultmatches arguments
- testing/test_assertrewrite.py:62:17: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- testing/test_monkeypatch.py:172:25: error[invalid-argument-type] Argument to bound method
setitemis incorrect: ExpectedMapping[Literal["y"], Literal[1700]], founddict[str, object] & ~AlwaysTruthy - testing/test_monkeypatch.py:175:25: error[invalid-argument-type] Argument to bound method
setitemis incorrect: ExpectedMapping[Literal["x"], Literal[1500]], founddict[str, object] & ~AlwaysTruthy - testing/test_pathlib.py:875:16: warning[possibly-missing-attribute] Attribute
testson typeUnknown | ModuleTypemay be missing - testing/test_pathlib.py:876:16: warning[possibly-missing-attribute] Attribute
fooon typeUnknown | ModuleTypemay be missing
- Found 480 diagnostics
- Found 485 diagnostics
aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcpeerconnection.py:108:17: error[invalid-assignment] Method
__setitem__of typebound method dict[int, RTCRtpCodecParameters].__setitem__(key: int, value: RTCRtpCodecParameters, /) -> Nonecannot be called with a key of typeint | Noneand a value of typeRTCRtpCodecParameterson object of typedict[int, RTCRtpCodecParameters] - src/aiortc/rtcpeerconnection.py:1236:17: error[invalid-assignment] Method
__setitem__of typebound method dict[int, RTCRtpDecodingParameters].__setitem__(key: int, value: RTCRtpDecodingParameters, /) -> Nonecannot be called with a key of typeint | Noneand a value of typeRTCRtpDecodingParameterson object of typedict[int, RTCRtpDecodingParameters]
- Found 92 diagnostics
- Found 94 diagnostics
paasta (https://github.com/yelp/paasta)
- paasta_tools/adhoc_tools.py:111:13: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedLongRunningServiceConfigDict, founddict[@Todo, @Todo]
- paasta_tools/adhoc_tools.py:111:13: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedLongRunningServiceConfigDict, founddict[Unknown, Unknown]
- paasta_tools/cleanup_expired_autoscaling_overrides.py:136:9: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable to attributedataon typeUnknown | None
- paasta_tools/cleanup_expired_autoscaling_overrides.py:136:9: error[invalid-assignment] Object of type
dict[Unknown, Unknown]is not assignable to attributedataon typeUnknown | None
- paasta_tools/cli/cmds/local_run.py:762:9: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toAWSSessionCreds
- paasta_tools/cli/cmds/local_run.py:762:9: error[invalid-assignment] Object of type
dict[Unknown | str, Unknown]is not assignable toAWSSessionCreds
- paasta_tools/cli/cmds/local_run.py:816:5: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toAWSSessionCreds
- paasta_tools/cli/cmds/local_run.py:816:5: error[invalid-assignment] Object of type
dict[Unknown | str, Unknown]is not assignable toAWSSessionCreds
- paasta_tools/cli/cmds/local_run.py:1331:51: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedSystemPaastaConfigDict, founddict[@Todo, @Todo]
- paasta_tools/cli/cmds/local_run.py:1331:51: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedSystemPaastaConfigDict, founddict[Unknown | str, Unknown | list[Unknown]]
- paasta_tools/cli/cmds/spark_run.py:1227:51: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedSystemPaastaConfigDict, founddict[@Todo, @Todo]
- paasta_tools/cli/cmds/spark_run.py:1227:51: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedSystemPaastaConfigDict, founddict[Unknown | str, Unknown | list[Unknown]] - paasta_tools/contrib/paasta_update_soa_memcpu.py:427:9: warning[possibly-missing-attribute] Attribute
appendon typeUnknown | dict[Unknown | str, Unknown] | dict[Unknown | str, Unknown | str] | list[Unknown | str]may be missing
- paasta_tools/frameworks/native_service_config.py:176:9: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toTaskInfo
- paasta_tools/frameworks/native_service_config.py:176:9: error[invalid-assignment] Object of type
dict[Unknown | str, Unknown | str | dict[Unknown | str, Unknown | str] | dict[Unknown | str, Unknown | str | dict[Unknown | str, Unknown | list[@Todo]] | list[@Todo]] | dict[Unknown | str, Unknown | str | list[Unknown | dict[Unknown | str, Unknown | str | bool]]] | list[Unknown | dict[Unknown | str, Unknown | str | dict[Unknown | str, Unknown]]]]is not assignable toTaskInfo
- paasta_tools/instance/hpa_metrics_parser.py:26:9: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toHPAMetricsDict
- paasta_tools/instance/hpa_metrics_parser.py:26:9: error[invalid-assignment] Object of type
dict[Unknown, Unknown]is not assignable toHPAMetricsDict
- paasta_tools/instance/hpa_metrics_parser.py:43:9: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toHPAMetricsDict
- paasta_tools/instance/hpa_metrics_parser.py:43:9: error[invalid-assignment] Object of type
dict[Unknown, Unknown]is not assignable toHPAMetricsDict - paasta_tools/instance/kubernetes.py:352:13: warning[possibly-missing-attribute] Attribute
appendon typeUnknown | str | int | list[Unknown]may be missing - paasta_tools/instance/kubernetes.py:364:13: warning[possibly-missing-attribute] Attribute
appendon typeUnknown | str | int | list[Unknown]may be missing
- paasta_tools/instance/kubernetes.py:830:12: error[invalid-return-type] Return type does not match returned value: expected
KubernetesVersionDict, founddict[@Todo, @Todo]
- paasta_tools/instance/kubernetes.py:830:12: error[invalid-return-type] Return type does not match returned value: expected
KubernetesVersionDict, founddict[Unknown | str, Unknown | str | int | tuple[Unknown] | list[Unknown]]
- paasta_tools/instance/kubernetes.py:1114:12: error[invalid-return-type] Return type does not match returned value: expected
KubernetesVersionDict, founddict[@Todo, @Todo]
- paasta_tools/instance/kubernetes.py:1114:12: error[invalid-return-type] Return type does not match returned value: expected
KubernetesVersionDict, founddict[Unknown | str, Unknown | str | int | list[@Todo]] - paasta_tools/kubernetes_tools.py:813:9: error[no-matching-overload] No overload of bound method
updatematches arguments - paasta_tools/kubernetes_tools.py:3177:17: warning[possibly-missing-attribute] Attribute
extendon typeUnknown | list[Unknown] | strmay be missing
- paasta_tools/metrics/metastatus_lib.py:637:12: error[invalid-return-type] Return type does not match returned value: expected
ResourceUtilizationDict, founddict[@Todo, @Todo]
- paasta_tools/metrics/metastatus_lib.py:637:12: error[invalid-return-type] Return type does not match returned value: expected
ResourceUtilizationDict, founddict[Unknown | str, Unknown | ResourceInfo | int]
- paasta_tools/metrics/metastatus_lib.py:714:12: error[invalid-return-type] Return type does not match returned value: expected
ResourceUtilizationDict, founddict[@Todo, @Todo]
- paasta_tools/metrics/metastatus_lib.py:714:12: error[invalid-return-type] Return type does not match returned value: expected
ResourceUtilizationDict, founddict[Unknown | str, Unknown | ResourceInfo | int]
- paasta_tools/metrics/metrics_lib.py:98:9: error[invalid-assignment] Method
__setitem__of type(bound method dict[@Todo, @Todo].__setitem__(key: @Todo, value: @Todo, /) -> None) | (bound method dict[str, @Todo].__setitem__(key: str, value: @Todo, /) -> None)cannot be called with a key of typestr | Noneand a value of typetype[BaseMetrics]on object of typedict[@Todo, @Todo] | dict[str, @Todo]
- paasta_tools/metrics/metrics_lib.py:98:9: error[invalid-assignment] Method
__setitem__of typebound method dict[str, @Todo].__setitem__(key: str, value: @Todo, /) -> Nonecannot be called with a key of typestr | Noneand a value of typetype[BaseMetrics]on object of typedict[str, @Todo] - paasta_tools/paastaapi/api_client.py:713:21: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | None | dict[Unknown, Unknown] | list[Unknown]may be missing - paasta_tools/paastaapi/api_client.py:717:21: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | None | dict[Unknown, Unknown] | list[Unknown]may be missing - paasta_tools/paastaapi/api_client.py:720:21: warning[possibly-missing-attribute] Attribute
appendon typeUnknown | None | dict[Unknown, Unknown] | list[Unknown]may be missing - paasta_tools/paastaapi/api_client.py:722:21: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | None | dict[Unknown, Unknown] | list[Unknown]may be missing - paasta_tools/paastaapi/api_client.py:725:21: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | None | dict[Unknown, Unknown] | list[Unknown]may be missing
- paasta_tools/secret_providers/vault.py:202:21: error[invalid-argument-type] Argument to bound method
appendis incorrect: ExpectedCryptoKey, founddict[@Todo, @Todo]
- paasta_tools/secret_providers/vault.py:202:21: error[invalid-argument-type] Argument to bound method
appendis incorrect: ExpectedCryptoKey, founddict[Unknown | str, Unknown | str] - paasta_tools/setup_kubernetes_cr.py:307:9: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["labels"]on object of typestr - paasta_tools/setup_kubernetes_cr.py:307:9: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | str | dict[Unknown | str, Unknown | str] | dict[Unknown, Unknown]may be missing - paasta_tools/setup_kubernetes_cr.py:311:9: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["annotations"]on object of typestr - paasta_tools/setup_kubernetes_cr.py:311:9: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | str | dict[Unknown | str, Unknown | str] | dict[Unknown, Unknown]may be missing - paasta_tools/setup_kubernetes_cr.py:314:9: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["labels"]on object of typestr - paasta_tools/setup_kubernetes_cr.py:314:9: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | str | dict[Unknown | str, Unknown | str] | dict[Unknown, Unknown]may be missing - paasta_tools/setup_kubernetes_cr.py:317:5: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["annotations"]on object of typestr - paasta_tools/setup_kubernetes_cr.py:317:5: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | str | dict[Unknown | str, Unknown | str] | dict[Unknown, Unknown]may be missing - paasta_tools/setup_kubernetes_cr.py:318:5: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["annotations"]on object of typestr - paasta_tools/setup_kubernetes_cr.py:318:5: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | str | dict[Unknown | str, Unknown | str] | dict[Unknown, Unknown]may be missing - paasta_tools/setup_kubernetes_cr.py:319:5: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["labels"]on object of typestr - paasta_tools/setup_kubernetes_cr.py:319:5: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | str | dict[Unknown | str, Unknown | str] | dict[Unknown, Unknown]may be missing - paasta_tools/setup_kubernetes_cr.py:320:5: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["labels"]on object of typestr - paasta_tools/setup_kubernetes_cr.py:320:5: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | str | dict[Unknown | str, Unknown | str] | dict[Unknown, Unknown]may be missing - paasta_tools/setup_kubernetes_cr.py:321:5: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["labels"]on object of typestr - paasta_tools/setup_kubernetes_cr.py:321:5: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | str | dict[Unknown | str, Unknown | str] | dict[Unknown, Unknown]may be missing - paasta_tools/setup_kubernetes_job.py:313:29: error[invalid-assignment] Method
__setitem__of typebound method dict[str, HpaOverride].__setitem__(key: str, value: HpaOverride, /) -> Nonecannot be called with a key of typeUnknownand a value of typedict[Unknown | str, Unknown | (Any & ~AlwaysFalsy)]on object of typedict[str, HpaOverride]
- paasta_tools/setup_prometheus_adapter_config.py:342:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[@Todo, @Todo]
- paasta_tools/setup_prometheus_adapter_config.py:342:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[Unknown | str, Unknown | dict[Unknown | str, Unknown | str] | str]
- paasta_tools/setup_prometheus_adapter_config.py:445:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[@Todo, @Todo]
- paasta_tools/setup_prometheus_adapter_config.py:445:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[Unknown | str, Unknown | dict[Unknown | str, Unknown | str] | str]
- paasta_tools/setup_prometheus_adapter_config.py:518:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[@Todo, @Todo]
- paasta_tools/setup_prometheus_adapter_config.py:518:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[Unknown | str, Unknown | dict[Unknown | str, Unknown | str] | str]
- paasta_tools/setup_prometheus_adapter_config.py:614:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[@Todo, @Todo]
- paasta_tools/setup_prometheus_adapter_config.py:614:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[Unknown | str, Unknown | dict[Unknown | str, Unknown | str] | str]
- paasta_tools/setup_prometheus_adapter_config.py:715:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[@Todo, @Todo]
- paasta_tools/setup_prometheus_adapter_config.py:715:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[Unknown | str, Unknown | dict[Unknown | str, Unknown | str] | str]
- paasta_tools/setup_prometheus_adapter_config.py:766:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[@Todo, @Todo]
- paasta_tools/setup_prometheus_adapter_config.py:766:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterRule, founddict[Unknown | str, Unknown | dict[Unknown | str, Unknown | str] | str]
- paasta_tools/setup_prometheus_adapter_config.py:864:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterConfig, founddict[@Todo, @Todo]
- paasta_tools/setup_prometheus_adapter_config.py:864:12: error[invalid-return-type] Return type does not match returned value: expected
PrometheusAdapterConfig, founddict[Unknown | str, Unknown | list[PrometheusAdapterRule]] - paasta_tools/tron/client.py:45:37: error[invalid-argument-type] Argument to function
getis incorrect: Expectedstr | bytes, foundUnknown | str | dict[Unknown | str, Unknown | str] - paasta_tools/tron/client.py:45:37: error[invalid-argument-type] Argument to function
getis incorrect: ExpectedMapping[str, str | bytes | None] | None, foundUnknown | str | dict[Unknown | str, Unknown | str] - paasta_tools/tron/client.py:45:37: error[invalid-argument-type] Argument to function
getis incorrect: Expectedbool, foundUnknown | str | dict[Unknown | str, Unknown | str] - paasta_tools/tron/client.py:45:37: error[invalid-argument-type] Argument to function
getis incorrect: Expectedbool | None, foundUnknown | str | dict[Unknown | str, Unknown | str] - paasta_tools/tron/client.py:50:17: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | str | dict[Unknown | str, Unknown | str]may be missing - paasta_tools/tron/client.py:51:38: error[invalid-argument-type] Argument to function
postis incorrect: Expectedstr | bytes, foundUnknown | str | dict[Unknown | str, Unknown | str] - paasta_tools/tron/client.py:51:38: error[invalid-argument-type] Argument to function
postis incorrect: ExpectedMapping[str, str | bytes | None] | None, foundUnknown | str | dict[Unknown | str, Unknown | str] - paasta_tools/tron/client.py:51:38: error[invalid-argument-type] Argument to function
postis incorrect: Expectedbool, foundUnknown | str | dict[Unknown | str, Unknown | str] - paasta_tools/tron/client.py:51:38: error[invalid-argument-type] Argument to function
postis incorrect: Expectedbool | None, foundUnknown | str | dict[Unknown | str, Unknown | str] - paasta_tools/tron_tools.py:547:16: error[invalid-return-type] Return type does not match returned value: expected
dict[str, FieldSelectorConfig], founddict[Unknown | str, Unknown | dict[Unknown | str, Unknown | str]] - paasta_tools/tron_tools.py:1096:17: error[invalid-argument-type] Argument to function
build_spark_commandis incorrect: Expectedstr, foundUnknown | list[TronSecretVolume] | bool | str | None
- paasta_tools/utils.py:594:9: error[invalid-assignment] Object of type
list[Unknown | dict[@Todo, @Todo]]is not assignable tolist[DockerParameter]
- paasta_tools/utils.py:594:9: error[invalid-assignment] Object of type
list[Unknown | dict[Unknown | str, Unknown | str]]is not assignable tolist[DockerParameter]
- paasta_tools/utils.py:601:17: error[invalid-argument-type] Argument to bound method
appendis incorrect: ExpectedDockerParameter, founddict[@Todo, @Todo]
- paasta_tools/utils.py:601:17: error[invalid-argument-type] Argument to bound method
appendis incorrect: ExpectedDockerParameter, founddict[Unknown | str, Unknown | str]
- paasta_tools/utils.py:2112:35: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedSystemPaastaConfigDict, founddict[@Todo, @Todo]
- paasta_tools/utils.py:2112:35: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedSystemPaastaConfigDict, founddict[Unknown, Unknown]
- paasta_tools/utils.py:2120:5: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toSystemPaastaConfigDict
- paasta_tools/utils.py:2120:5: error[invalid-assignment] Object of type
dict[Unknown, Unknown]is not assignable toSystemPaastaConfigDict
- paasta_tools/utils.py:3581:9: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable toBranchDictV2
- paasta_tools/utils.py:3581:9: error[invalid-assignment] Object of type
dict[Unknown | str, Unknown]is not assignable toBranchDictV2
- Found 875 diagnostics
- Found 913 diagnostics
scrapy (https://github.com/scrapy/scrapy)
- tests/test_downloadermiddleware_httpcompression.py:405:49: error[invalid-argument-type] Argument to bound method
from_argsis incorrect: ExpectedMapping[bytes, bytes] | None, founddict[Unknown | str, Unknown | str]
- tests/test_downloadermiddleware_httpproxy.py:27:9: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable to attributeenvironof type_Environ[str]
- tests/test_downloadermiddleware_httpproxy.py:27:9: error[invalid-assignment] Object of type
dict[Unknown | str, Unknown | str]is not assignable to attributeenvironof type_Environ[str] - tests/test_downloadermiddleware_offsite.py:90:44: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundUnknown | dict[Unknown, Unknown] - tests/test_downloadermiddleware_offsite.py:90:44: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbytes | str | None, foundUnknown | dict[Unknown, Unknown] - tests/test_downloadermiddleware_offsite.py:90:44: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundUnknown | dict[Unknown, Unknown] - tests/test_downloadermiddleware_offsite.py:90:44: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint, foundUnknown | dict[Unknown, Unknown] - tests/test_downloadermiddleware_offsite.py:90:44: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundUnknown | dict[Unknown, Unknown] - tests/test_downloadermiddleware_offsite.py:90:44: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expected((Unknown, /) -> Any) | None, foundUnknown | dict[Unknown, Unknown] - tests/test_downloadermiddleware_offsite.py:90:44: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[str] | None, foundUnknown | dict[Unknown, Unknown] - tests/test_downloaderslotssettings.py:99:21: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundUnknown | int
- tests/test_feedexport.py:238:77: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, founddict[@Todo, @Todo]
- tests/test_feedexport.py:238:77: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, founddict[Unknown, Unknown] - tests/test_feedexport.py:1780:25: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex, /) -> int, (key: slice[Any, Any, Any], /) -> bytes]cannot be called with key of typeLiteral["format"]on object of typebytes - tests/test_http2_client_protocol.py:114:13: warning[possibly-missing-implicit-call] Method
__setitem__of typeUnknown | dict[Unknown, Unknown] | strmay be missing - tests/test_responsetypes.py:119:46: error[invalid-argument-type] Argument to bound method
from_argsis incorrect: ExpectedMapping[bytes, bytes] | None, foundUnknown | str | Headers - tests/test_responsetypes.py:119:46: error[invalid-argument-type] Argument to bound method
from_argsis incorrect: Expectedstr | None, foundUnknown | str | Headers - tests/test_responsetypes.py:119:46: error[invalid-argument-type] Argument to bound method
from_argsis incorrect: Expectedstr | None, foundUnknown | str | Headers - tests/test_responsetypes.py:119:46: error[invalid-argument-type] Argument to bound method
from_argsis incorrect: Expectedbytes | None, foundUnknown | str | Headers
- tests/test_utils_misc/init.py:39:25: error[invalid-argument-type] Argument to function
load_objectis incorrect: Expectedstr | ((...) -> Any), founddict[@Todo, @Todo]
- tests/test_utils_misc/init.py:39:25: error[invalid-argument-type] Argument to function
load_objectis incorrect: Expectedstr | ((...) -> Any), founddict[Unknown, Unknown]
- Found 1044 diagnostics
- Found 1059 diagnostics
twine (https://github.com/pypa/twine)
- twine/package.py:264:38: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - Found 12 diagnostics
- Found 11 diagnostics
dulwich (https://github.com/dulwich/dulwich)
- dulwich/porcelain.py:1421:19: error[invalid-argument-type] Argument is incorrect: Expected
Tree, foundTree | Blob | Commit | Tag - dulwich/porcelain.py:1421:19: error[invalid-argument-type] Argument is incorrect: Expected
Blob, foundTree | Blob | Commit | Tag - dulwich/porcelain.py:1421:19: error[invalid-argument-type] Argument is incorrect: Expected
Commit, foundTree | Blob | Commit | Tag - dulwich/porcelain.py:1421:19: error[invalid-argument-type] Argument is incorrect: Expected
Tag, foundTree | Blob | Commit | Tag
- dulwich/tests/utils.py:369:58: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - Found 177 diagnostics
- Found 180 diagnostics
alerta (https://github.com/alerta/alerta)
- alerta/utils/logging.py:309:22: error[unsupported-operator] Operator
+is unsupported between objects of typeUnknown | intandUnknown | str | int
- alerta/webhooks/prometheus.py:70:41: warning[possibly-missing-attribute] Attribute
upperon type@Todo | None | Literal["unknown"]may be missing
- alerta/webhooks/prometheus.py:70:41: warning[possibly-missing-attribute] Attribute
upperon typeUnknown | None | Literal["unknown"]may be missing
- Found 512 diagnostics
- Found 513 diagnostics
starlette (https://github.com/encode/starlette)
- starlette/middleware/wsgi.py:69:21: error[unsupported-operator] Operator
+is unsupported between objects of typeUnknown | str | tuple[int, int] | BytesIO | TextIO | boolandLiteral[","] - starlette/testclient.py:365:49: warning[possibly-missing-attribute] Attribute
readon typeUnknown | int | list[Unknown] | BytesIOmay be missing
- Found 144 diagnostics
- Found 146 diagnostics
rich (https://github.com/Textualize/rich)
- rich/pretty.py:1006:31: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- tests/test_console.py:173:16: error[invalid-return-type] Return type does not match returned value: expected
tuple[int, int], found(Unknown & ~<class 'ValueError'>) | tuple[int, int] | (type[ValueError] & ~<class 'ValueError'>)
graphql-core (https://github.com/graphql-python/graphql-core)
- src/graphql/utilities/extend_schema.py:265:56: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - src/graphql/utilities/extend_schema.py:266:62: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - src/graphql/utilities/extend_schema.py:267:70: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - tests/error/test_graphql_error.py:404:46: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- tests/execution/test_defer.py:211:32: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundAny | str | list[Unknown | str | int] - tests/execution/test_defer.py:211:32: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[str | int], foundAny | str | list[Unknown | str | int] - tests/execution/test_defer.py:211:32: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr | None, foundAny | str | list[Unknown | str | int] - tests/execution/test_defer.py:212:40: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundAny | str | list[Unknown | str | int] - tests/execution/test_defer.py:212:40: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[str | int], foundAny | str | list[Unknown | str | int] - tests/execution/test_defer.py:212:40: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr | None, foundAny | str | list[Unknown | str | int] - tests/execution/test_defer.py:236:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundAny | str | list[Unknown] - tests/execution/test_defer.py:236:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[GraphQLError] | None, foundAny | str | list[Unknown] - tests/execution/test_defer.py:237:42: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundAny | str | list[Unknown] - tests/execution/test_defer.py:237:42: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[GraphQLError] | None, foundAny | str | list[Unknown] - tests/execution/test_defer.py:283:41: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any], foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:283:41: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:283:41: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[str | int] | None, foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:283:41: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[GraphQLError] | None, foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:283:41: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:284:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any], foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:284:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:284:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[str | int] | None, foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:284:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[GraphQLError] | None, foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:284:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | dict[Unknown | str, Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:348:52: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:348:52: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[GraphQLError] | None, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:348:52: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[PendingResult] | None, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:348:52: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:348:52: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:349:60: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:349:60: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[GraphQLError] | None, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:349:60: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[PendingResult] | None, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:349:60: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:349:60: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | dict[Unknown | str, Unknown | str] | list[Unknown | GraphQLError] | list[Unknown | PendingResult] | bool | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:457:55: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:457:55: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[PendingResult] | None, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:457:55: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[Unknown] | None, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:457:55: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[CompletedResult] | None, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:457:55: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:458:63: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:458:63: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[PendingResult] | None, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:458:63: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[Unknown] | None, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:458:63: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[CompletedResult] | None, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_defer.py:458:63: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | bool | list[Unknown | PendingResult] | list[Unknown] | list[Unknown | CompletedResult] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:189:42: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[Any], foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:189:42: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:189:42: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[str | int] | None, foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:189:42: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[GraphQLError] | None, foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:189:42: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:190:50: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[Any], foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:190:50: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:190:50: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[str | int] | None, foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:190:50: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[GraphQLError] | None, foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/execution/test_stream.py:190:50: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expecteddict[str, Any] | None, foundAny | list[Unknown | str] | str | list[Unknown | str | int] | list[Unknown | GraphQLError] | dict[Unknown | str, Unknown | int] - tests/test_user_registry.py:578:16: error[invalid-argument-type] Method
__getitem__of typeOverload[(key: SupportsIndex | slice[Any, Any, Any], /) -> LiteralString, (key: SupportsIndex | slice[Any, Any, Any], /) -> str]cannot be called with key of typeLiteral["id"]on object of typestr
- tests/test_user_registry.py:288:51: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - tests/test_user_registry.py:343:51: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - tests/type/test_definition.py:158:72: error[invalid-argument-type] Argument to function
parse_literalis incorrect: ExpectedValueNode, founddict[@Todo, @Todo]
- tests/type/test_definition.py:158:72: error[invalid-argument-type] Argument to function
parse_literalis incorrect: ExpectedValueNode, founddict[Unknown | str, Unknown | str]
- tests/type/test_directives.py:66:43: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - Found 302 diagnostics
- Found 346 diagnostics
sockeye (https://github.com/awslabs/sockeye)
- sockeye/log.py:128:64: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - sockeye/log.py:130:63: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - sockeye/log.py:133:76: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - sockeye/log.py:134:69: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- sockeye/test_utils.py:224:13: error[invalid-argument-type] Argument to function
generate_json_input_file_with_tgt_prefixis incorrect: Expectedlist[str] | None, foundNone | Unknown | str | list[Unknown]
- sockeye/test_utils.py:224:34: error[invalid-argument-type] Argument to function
generate_json_input_file_with_tgt_prefixis incorrect: Expectedlist[str], foundNone | @Todo | list[Unknown]
- sockeye/test_utils.py:224:34: error[invalid-argument-type] Argument to function
generate_json_input_file_with_tgt_prefixis incorrect: Expectedlist[str], foundNone | Unknown | str | list[Unknown]
- Found 318 diagnostics
- Found 315 diagnostics
ignite (https://github.com/pytorch/ignite)
- tests/ignite/handlers/test_fbresearch_logger.py:79:5: error[invalid-assignment] Object of type
dict[@Todo, @Todo]is not assignable to attributeoutputon typeUnknown | State
- tests/ignite/handlers/test_fbresearch_logger.py:79:5: error[invalid-assignment] Object of type
dict[Unknown | str, Unknown | float]is not assignable to attributeoutputon typeUnknown | State - tests/ignite/handlers/test_state_param_scheduler.py:336:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint | float, foundUnknown | str | int | float | list[Unknown | int] - tests/ignite/handlers/test_state_param_scheduler.py:336:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedint | float, foundUnknown | str | int | float | list[Unknown | int] - tests/ignite/handlers/test_state_param_scheduler.py:336:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedlist[int], foundUnknown | str | int | float | list[Unknown | int] - tests/ignite/handlers/test_state_param_scheduler.py:336:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedstr, foundUnknown | str | int | float | list[Unknown | int] - tests/ignite/handlers/test_state_param_scheduler.py:336:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundUnknown | str | int | float | list[Unknown | int] - tests/ignite/handlers/test_state_param_scheduler.py:336:49: error[invalid-argument-type] Argument to bound method
__init__is incorrect: Expectedbool, foundUnknown | str | int | float | list[Unknown | int] - tests/ignite/handlers/test_state_param_scheduler.py:342:84: error[invalid-argument-type] Argument to bound method
plot_valuesis incorrect: ExpectedMapping[Unknown, Unknown], foundUnknown | str | int | float | list[Unknown | int] - tests/ignite/metrics/test_metric.py:1214:9: error[invalid-assignment] Object of type
Unknownis not assignable to attribute_num_correcton typeMetric | Unknown - tests/ignite/metrics/test_metric.py:1215:9: error[invalid-assignment] Object of type
Unknownis not assignable to attribute_num_exampleson typeMetric | Unknown - tests/ignite/metrics/test_metric.py:1216:9: error[invalid-assignment] Object of type
Unknownis not assignable to attribute_numeratoron typeMetric | Unknown - tests/ignite/metrics/test_metric.py:1217:9: error[invalid-assignment] Object of type
Unknownis not assignable to attribute_denominatoron typeMetric | Unknown - tests/ignite/metrics/test_metric.py:1218:9: error[invalid-assignment] Object of type
Unknownis not assignable to attribute_weighton typeMetric | Unknown - tests/ignite/metrics/test_metric.py:1219:9: error[invalid-assignment] Object of type
Unknownis not assignable to attribute_updatedon typeMetric | Unknown
- Found 2140 diagnostics
- Found 2153 diagnostics
porcupine (https://github.com/Akuli/porcupine)
- porcupine/plugins/restart.py:64:15: warning[possibly-missing-attribute] Attribute
from_stateon type@Todo | boolmay be missing
- Found 25 diagnostics
- Found 26 diagnostics
pydantic (https://github.com/pydantic/pydantic)
- pydantic/init.py:247:1: error[invalid-assignment] Object of type
dict[Unknown | str, Unknown | tuple[str | None, str]]is not assignable todict[str, tuple[str, str]] - pydantic/_internal/_dataclasses.py:223:12: error[no-matching-overload] No overload of function
fieldmatches arguments - pydantic/_internal/_generate_schema.py:1942:9: error[invalid-assignment] Object of type
dict[Unknown | _ParameterKind, Unknown | str]is not assignable todict[_ParameterKind, Literal["positional_only", "positional_or_keyword", "keyword_only"]] - pydantic/_internal/_generate_schema.py:2016:9: error[invalid-assignment] Object of type
dict[Unknown | _ParameterKind, Unknown | str]is not assignable todict[_ParameterKind, Literal["positional_only", "positional_or_keyword", "var_args", "keyword_only"]] - pydantic/_internal/_generate_schema.py:2441:1: error[invalid-assignment] Object of type
dict[Unknown | tuple[str, str], Unknown | ((f, schema) -> Unknown) | ((f, _) -> Unknown)]is not assignable toMapping[tuple[@Todo, Literal["no-info", "with-info"]], ((...) -> Any, Unknown, /) -> Unknown]
- Found 760 diagnostics
- Found 765 diagnostics
mkosi (https://github.com/systemd/mkosi)
- mkosi/config.py:290:16: error[invalid-return-type] Return type does not match returned value: expected
str, found@Todo | None
- mkosi/config.py:290:16: error[invalid-return-type] Return type does not match returned value: expected
str, foundUnknown | str | None
- mkosi/config.py:496:16: error[invalid-return-type] Return type does not match returned value: expected
Architecture, found@Todo | None
- mkosi/config.py:496:16: error[invalid-return-type] Return type does not match returned value: expected
Architecture, foundUnknown | Architecture | None
- mkosi/config.py:539:16: error[invalid-return-type] Return type does not match returned value: expected
str, found@Todo | None
- mkosi/config.py:539:16: error[invalid-return-type] Return type does not match returned value: expected
str, foundUnknown | str | None
- mkosi/config.py:561:16: error[invalid-return-type] Return type does not match returned value: expected
str, found@Todo | None
- mkosi/config.py:561:16: error[invalid-return-type] Return type does not match returned value: expected
str, foundUnknown | str | None
- mkosi/distributions/arch.py:125:16: error[invalid-return-type] Return type does not match returned value: expected
str, found@Todo | None
- mkosi/distributions/arch.py:125:16: error[invalid-return-type] Return type does not match returned value: expected
str, foundUnknown | str | None
- mkosi/distributions/azure.py:111:16: error[invalid-return-type] Return type does not match returned value: expected
str, found@Todo | None
- mkosi/distributions/azure.py:111:16: error[invalid-return-type] Return type does not match returned value: expected
str, foundUnknown | str | None
- mkosi/distributions/centos.py:96:16: error[invalid-return-type] Return type does not match returned value: expected
str, found@Todo | None
- mkosi/distributions/centos.py:96:16: error[invalid-return-type] Return type does not match returned value: expected
str, foundUnknown | str | None
- mkosi/distributions/debian.py:244:16: error[invalid-return-type] Return type does not match returned value: expected
str, found@Todo | None
- mkosi/distributions/debian.py:244:16: error[invalid-return-type] Return type does not match returned value: expected
str, foundUnknown | str | None
- mkosi/distributions/fedora.py:259:16: error[invalid-return-type] Return type does not match returned value: expected
str, found@Todo | None
- mkosi/distributions/fedora.py:259:16: error[in...[Comment body truncated]