Skip to content

[ty] Sync vendored typeshed stubs#23006

Merged
sharkdp merged 8 commits intomainfrom
typeshedbot/sync-typeshed
Feb 3, 2026
Merged

[ty] Sync vendored typeshed stubs#23006
sharkdp merged 8 commits intomainfrom
typeshedbot/sync-typeshed

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 1, 2026

Close and reopen this PR to trigger CI

@github-actions github-actions bot added the ty Multi-file analysis & type inference label Feb 1, 2026
@carljm carljm closed this Feb 1, 2026
@carljm carljm reopened this Feb 1, 2026
@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 1, 2026

Typing conformance results

No changes detected ✅

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 1, 2026

mypy_primer results

Changes were detected when running on open source projects
attrs (https://github.com/python-attrs/attrs)
- tests/test_validators.py:1143:64: error[unresolved-attribute] Object of type `(Any, Attribute[Unknown | int], Unknown | int, /) -> Any` has no attribute `exc_types`
+ tests/test_validators.py:1143:64: error[unresolved-attribute] Object of type `(Any, Attribute[Any], Any, /) -> Any` has no attribute `exc_types`

spack (https://github.com/spack/spack)
+ lib/spack/spack/binary_distribution.py:2681:18: warning[deprecated] The function `getcode` is deprecated: Deprecated since Python 3.9. Use `addinfourl.status` attribute instead.
+ lib/spack/spack/binary_distribution.py:2836:18: warning[deprecated] The function `getcode` is deprecated: Deprecated since Python 3.9. Use `addinfourl.status` attribute instead.
+ lib/spack/spack/oci/oci.py:228:14: warning[deprecated] The function `getcode` is deprecated: Deprecated since Python 3.9. Use `addinfourl.status` attribute instead.
- lib/spack/spack/vendor/ruamel/yaml/comments.py:543:32: error[invalid-argument-type] Argument to function `__delitem__` is incorrect: Expected `SupportsIndex | slice[Any, Any, Any]`, found `Unknown | None`
+ lib/spack/spack/vendor/ruamel/yaml/comments.py:543:32: error[invalid-argument-type] Argument to function `__delitem__` is incorrect: Expected `SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None]`, found `Unknown | None`
- Found 4337 diagnostics
+ Found 4340 diagnostics

beartype (https://github.com/beartype/beartype)
- beartype/_util/kind/sequence/utilseqmake.py:44:17: error[invalid-assignment] Object of type `Sequence[Unknown]` is not assignable to `list[Unknown]`
- Found 515 diagnostics
+ Found 514 diagnostics

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/datastructures/etag.py:102:49: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ src/werkzeug/datastructures/structures.py:193:72: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ src/werkzeug/sansio/response.py:612:54: error[unresolved-attribute] Object of type `object` has no attribute `to_header`
- src/werkzeug/sansio/response.py:610:25: error[invalid-argument-type] Method `__getitem__` of type `bound method WWWAuthenticate.__getitem__(key: str) -> str | None` cannot be called with key of type `slice[Literal[1], None, None]` on object of type `WWWAuthenticate`
- src/werkzeug/sansio/response.py:610:25: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> object, (s: slice[Never, Never, Never], /) -> Top[list[Unknown]]]` cannot be called with key of type `slice[Literal[1], None, None]` on object of type `Top[list[Unknown]]`
- Found 411 diagnostics
+ Found 412 diagnostics

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcpeerconnection.py:1237:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> MediaDescription, (s: slice[Any, Any, Any], /) -> list[MediaDescription]]` cannot be called with key of type `None` on object of type `list[MediaDescription]`
+ src/aiortc/rtcpeerconnection.py:1237:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> MediaDescription, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[MediaDescription]]` cannot be called with key of type `None` on object of type `list[MediaDescription]`

scrapy (https://github.com/scrapy/scrapy)
- tests/test_feedexport.py:1777:25: error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex, /) -> int, (key: slice[Any, Any, Any], /) -> bytes]` cannot be called with key of type `Literal["format"]` on object of type `bytes`
+ tests/test_feedexport.py:1777:25: error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex, /) -> int, (key: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> bytes]` cannot be called with key of type `Literal["format"]` on object of type `bytes`

paasta (https://github.com/yelp/paasta)
- paasta_tools/contrib/bounce_log_latency_parser.py:48:54: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Unknown, (s: slice[Any, Any, Any], /) -> list[Unknown]]` cannot be called with key of type `float` on object of type `list[Unknown]`
+ paasta_tools/contrib/bounce_log_latency_parser.py:48:54: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Unknown, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Unknown]]` cannot be called with key of type `float` on object of type `list[Unknown]`
- paasta_tools/contrib/bounce_log_latency_parser.py:49:43: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Unknown, (s: slice[Any, Any, Any], /) -> list[Unknown]]` cannot be called with key of type `float` on object of type `list[Unknown]`
+ paasta_tools/contrib/bounce_log_latency_parser.py:49:43: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Unknown, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Unknown]]` cannot be called with key of type `float` on object of type `list[Unknown]`
- paasta_tools/contrib/bounce_log_latency_parser.py:50:43: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Unknown, (s: slice[Any, Any, Any], /) -> list[Unknown]]` cannot be called with key of type `float` on object of type `list[Unknown]`
+ paasta_tools/contrib/bounce_log_latency_parser.py:50:43: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Unknown, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Unknown]]` cannot be called with key of type `float` on object of type `list[Unknown]`

ignite (https://github.com/pytorch/ignite)
- tests/ignite/metrics/test_accuracy.py:317:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_accuracy.py:317:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
- tests/ignite/metrics/test_accuracy.py:317:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
+ tests/ignite/metrics/test_accuracy.py:317:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
- tests/ignite/metrics/test_accuracy.py:317:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
+ tests/ignite/metrics/test_accuracy.py:317:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
- tests/ignite/metrics/test_accuracy.py:375:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_accuracy.py:375:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_accuracy.py:375:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_accuracy.py:375:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_accuracy.py:375:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_accuracy.py:375:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_accuracy.py:376:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_accuracy.py:376:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_accuracy.py:376:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_accuracy.py:376:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_accuracy.py:376:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_accuracy.py:376:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_accuracy.py:444:33: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_accuracy.py:444:33: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_accuracy.py:444:33: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_accuracy.py:444:33: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_accuracy.py:444:33: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_accuracy.py:444:33: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_classification_report.py:28:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_classification_report.py:28:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
- tests/ignite/metrics/test_classification_report.py:28:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
+ tests/ignite/metrics/test_classification_report.py:28:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
- tests/ignite/metrics/test_classification_report.py:28:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
+ tests/ignite/metrics/test_classification_report.py:28:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
- tests/ignite/metrics/test_classification_report.py:102:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_classification_report.py:102:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_classification_report.py:102:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_classification_report.py:102:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_classification_report.py:102:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_classification_report.py:102:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_classification_report.py:103:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_classification_report.py:103:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_classification_report.py:103:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_classification_report.py:103:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_classification_report.py:103:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_classification_report.py:103:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_epoch_metric.py:171:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_epoch_metric.py:171:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
- tests/ignite/metrics/test_epoch_metric.py:171:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
+ tests/ignite/metrics/test_epoch_metric.py:171:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
- tests/ignite/metrics/test_epoch_metric.py:171:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
+ tests/ignite/metrics/test_epoch_metric.py:171:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
- tests/ignite/metrics/test_fbeta.py:135:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_fbeta.py:135:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
- tests/ignite/metrics/test_fbeta.py:135:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
+ tests/ignite/metrics/test_fbeta.py:135:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
- tests/ignite/metrics/test_fbeta.py:135:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
+ tests/ignite/metrics/test_fbeta.py:135:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
- tests/ignite/metrics/test_mean_average_precision.py:189:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_mean_average_precision.py:189:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_mean_average_precision.py:189:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_mean_average_precision.py:189:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_mean_average_precision.py:189:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_mean_average_precision.py:189:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_mean_average_precision.py:190:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_mean_average_precision.py:190:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_mean_average_precision.py:190:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_mean_average_precision.py:190:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_mean_average_precision.py:190:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_mean_average_precision.py:190:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:68:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:68:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:68:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:68:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:68:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:68:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:69:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:69:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:69:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:69:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:69:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:69:17: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:90:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:90:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:90:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:90:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:90:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:90:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:91:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:91:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:91:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:91:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_mean_pairwise_distance.py:91:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:91:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_metrics_lambda.py:440:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_metrics_lambda.py:440:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_metrics_lambda.py:440:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_metrics_lambda.py:440:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_metrics_lambda.py:440:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_metrics_lambda.py:440:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_metrics_lambda.py:441:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_metrics_lambda.py:441:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_metrics_lambda.py:441:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_metrics_lambda.py:441:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_metrics_lambda.py:441:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_metrics_lambda.py:441:28: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_metrics_lambda.py:489:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_metrics_lambda.py:489:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
- tests/ignite/metrics/test_metrics_lambda.py:489:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
+ tests/ignite/metrics/test_metrics_lambda.py:489:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
- tests/ignite/metrics/test_metrics_lambda.py:489:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
+ tests/ignite/metrics/test_metrics_lambda.py:489:13: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
- tests/ignite/metrics/test_precision.py:351:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_precision.py:351:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[int | float]`
- tests/ignite/metrics/test_precision.py:351:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
+ tests/ignite/metrics/test_precision.py:351:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[str]`
- tests/ignite/metrics/test_precision.py:351:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
+ tests/ignite/metrics/test_precision.py:351:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], slice[None, None, None]]` on object of type `list[Any]`
- tests/ignite/metrics/test_precision.py:403:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_precision.py:403:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_precision.py:403:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_precision.py:403:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_precision.py:403:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_precision.py:403:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_precision.py:404:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_precision.py:404:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_precision.py:404:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_precision.py:404:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[str]`
- tests/ignite/metrics/test_precision.py:404:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[Any, Any, Any], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
+ tests/ignite/metrics/test_precision.py:404:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Any, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Any]]` cannot be called with key of type `tuple[slice[Any, Any, Any], ellipsis]` on object of type `list[Any]`
- tests/ignite/metrics/test_psnr.py:103:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[Any, Any, Any], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[None, None, None], Literal[0], ellipsis]` on object of type `list[int | float]`
+ tests/ignite/metrics/test_psnr.py:103:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> int | float, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[int | float]]` cannot be called with key of type `tuple[slice[None, None, None], Literal[0], ellipsis]` on object of type `list[int | float]`
- tests/ignite/metrics/test_psnr.py:103:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[Any, Any, Any], /) -> list[str]]` cannot be called with key of type `tuple[slice[None, None, None], Literal[0], ellipsis]` on object of type `list[str]`
+ tests/ignite/metrics/test_psnr.py:103:21: error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> str, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[str]]` cannot be called with key of type `tuple[slice[None, None, None], Literal[0], ellipsis]` on object of type 

... (truncated 1164 lines) ...
Memory usage changes were detected when running on open source projects
trio (https://github.com/python-trio/trio)
-     memo metadata = ~31MB
+     memo metadata = ~33MB

prefect (https://github.com/PrefectHQ/prefect)
-     memo metadata = ~185MB
+     memo metadata = ~194MB

@sharkdp sharkdp self-assigned this Feb 2, 2026
@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 2, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-argument-type 6 118 527
no-matching-overload 8 0 0
invalid-assignment 4 1 2
unresolved-import 0 7 0
deprecated 5 0 0
invalid-return-type 1 0 3
unused-type-ignore-comment 4 0 0
unresolved-attribute 1 0 1
unsupported-operator 1 1 0
invalid-method-override 1 0 0
Total 31 127 533

Full report with detailed diff (timing results)

@sharkdp sharkdp requested a review from Gankra as a code owner February 2, 2026 14:55
@sharkdp
Copy link
Contributor

sharkdp commented Feb 2, 2026

Alex Waygood approved these changes 10 minutes ago

Does your approval imply that you expected this kind of effect on the ecosystem? (I was planning to take a look at the impact still, but would skip that if you expected those changes based on reviewing the corresponding typeshed PRs…)

@AlexWaygood
Copy link
Member

I skimmed through it (on my phone) — it looks to me like making Container contravariant for us has a bigger impact than for other type checkers, but that is the kind of ecosystem diff I'd expect from that change. It might have more of an impact for us because we don't support solving type variables in implicit subtypes of generic protocols yet, only explicit subclasses of generic protocols.

I am on holiday and on my phone though, so i can't say i gave the ecosystem results a thorough review 😆 but if there is a bug in either ty or typeshed, i think I'd still probably advocate landing this as-is and then investigating as a followup

@sharkdp
Copy link
Contributor

sharkdp commented Feb 3, 2026

There are two significant changes here:

The first change has a favorable ecosystem impact as far as I can tell. The second change should not result in new diagnostics, if I understand correctly. The previous signature of (async)contextmanager was deprecated and a new overload was added. So it's a bit interesting to me that we see new diagnostics now, but they all seem correct.

@sharkdp sharkdp merged commit cb58704 into main Feb 3, 2026
49 checks passed
@sharkdp sharkdp deleted the typeshedbot/sync-typeshed branch February 3, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecosystem-analyzer ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants