Skip to content

[ty] Narrow bound method overloads by receiver#24707

Open
charliermarsh wants to merge 16 commits intomainfrom
charlie/bind-selfs
Open

[ty] Narrow bound method overloads by receiver#24707
charliermarsh wants to merge 16 commits intomainfrom
charlie/bind-selfs

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

@charliermarsh charliermarsh commented Apr 18, 2026

Summary

Given:

from typing import overload

class Base:
    @overload
    def convert(self: "Base", x: int) -> int: ...

    @overload
    def convert(self: "Child", x: str) -> str: ...

    def convert(self, x: int | str) -> int | str:
        return x

class Child(Base): ...

On main, we treat Base().convert as if both overloads are still possible, including the overload that requires self: "Child".

After this PR:

reveal_type(Base().convert)
# bound method Base.convert(x: int) -> int

reveal_type(Child().convert)
# Overload[(x: int) -> int, (x: str) -> str]

So Base().convert("x") is no longer considered valid via narrowing on the actual receiver type.

Closes astral-sh/ty#2693.

Closes astral-sh/ty#2612.

@astral-sh-bot astral-sh-bot Bot added the ty Multi-file analysis & type inference label Apr 18, 2026
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 18, 2026

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 88.62%. The percentage of expected errors that received a diagnostic held steady at 84.63%. The number of fully passing files held steady at 84/134.

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 18, 2026

Memory usage report

Summary

Project Old New Diff Outcome
prefect 702.88MB 703.49MB +0.09% (620.63kB)
sphinx 258.88MB 259.22MB +0.13% (346.95kB)
trio 116.62MB 116.71MB +0.08% (92.35kB)
flake8 47.64MB 47.66MB +0.06% (27.15kB)

Significant changes

Click to expand detailed breakdown

prefect

Name Old New Diff Outcome
BoundMethodType<'db>::bound_signatures_ 0.00B 644.36kB +644.36kB (new)
Type<'db>::apply_specialization_ 3.73MB 4.06MB +8.91% (340.60kB)
BoundMethodType<'db>::into_callable_type_ 325.24kB 219.11kB -32.63% (106.14kB)
infer_definition_types 89.99MB 89.92MB -0.08% (73.78kB)
infer_scope_types_impl 55.65MB 55.58MB -0.13% (72.70kB)
infer_expression_types_impl 63.80MB 63.74MB -0.10% (66.87kB)
Type<'db>::try_call_dunder_get_ 10.64MB 10.62MB -0.23% (25.44kB)
CallableType 2.23MB 2.22MB -0.47% (10.83kB)
is_redundant_with_impl 2.00MB 2.00MB -0.36% (7.43kB)
Type<'db>::apply_specialization_::interned_arguments 2.98MB 2.98MB +0.18% (5.47kB)
StaticClassLiteral<'db>::implicit_attribute_inner_ 10.09MB 10.10MB +0.03% (3.49kB)
function_known_decorators 4.55MB 4.54MB -0.07% (3.27kB)
GenericAlias<'db>::variance_of_ 594.75kB 597.52kB +0.47% (2.77kB)
check_file_impl 17.11MB 17.11MB -0.01% (2.28kB)
StaticClassLiteral<'db>::try_mro_ 4.27MB 4.27MB -0.05% (2.09kB)
... 29 more

sphinx

Name Old New Diff Outcome
BoundMethodType<'db>::bound_signatures_ 0.00B 579.44kB +579.44kB (new)
BoundMethodType<'db>::into_callable_type_ 278.04kB 172.34kB -38.02% (105.70kB)
infer_expression_types_impl 20.82MB 20.78MB -0.21% (45.25kB)
infer_definition_types 23.79MB 23.76MB -0.14% (34.22kB)
infer_scope_types_impl 15.49MB 15.47MB -0.18% (29.32kB)
CallableType 1.11MB 1.11MB -0.26% (3.02kB)
Type<'db>::try_call_dunder_get_ 4.87MB 4.86MB -0.06% (2.87kB)
is_redundant_with_impl 928.82kB 926.38kB -0.26% (2.45kB)
check_file_impl 4.69MB 4.69MB -0.05% (2.44kB)
infer_expression_type_impl 2.90MB 2.90MB -0.06% (1.89kB)
class_mro_literals 316.00B 2.20kB +611.39% (1.89kB)
Type<'db>::apply_specialization_ 1.62MB 1.63MB +0.09% (1.50kB)
StaticClassLiteral<'db>::implicit_attribute_inner_ 2.36MB 2.36MB -0.05% (1.09kB)
Type<'db>::member_lookup_with_policy_ 6.84MB 6.84MB -0.02% (1.07kB)
Specialization 1001.34kB 1000.38kB -0.10% (992.00B)
... 26 more

trio

Name Old New Diff Outcome
BoundMethodType<'db>::bound_signatures_ 0.00B 142.19kB +142.19kB (new)
BoundMethodType<'db>::into_callable_type_ 74.54kB 45.14kB -39.44% (29.40kB)
infer_expression_types_impl 7.01MB 7.00MB -0.15% (10.84kB)
infer_definition_types 7.69MB 7.69MB -0.05% (4.08kB)
infer_scope_types_impl 4.73MB 4.73MB -0.04% (2.10kB)
Type<'db>::try_call_dunder_get_ 1.34MB 1.34MB -0.15% (2.03kB)
ClassType<'db>::into_callable_ 7.78kB 5.78kB -25.75% (2.00kB)
class_mro_literals 696.00B 2.50kB +268.39% (1.82kB)
is_redundant_with_impl 247.69kB 246.52kB -0.47% (1.17kB)
infer_expression_type_impl 1.31MB 1.31MB -0.06% (816.00B)
Type<'db>::apply_specialization_ 709.04kB 709.81kB +0.11% (792.00B)
Type<'db>::apply_specialization_::interned_arguments 626.64kB 627.34kB +0.11% (720.00B)
cached_protocol_interface 123.75kB 124.20kB +0.36% (456.00B)
loop_header_reachability 130.45kB 130.07kB -0.29% (384.00B)
all_narrowing_constraints_for_expression 597.46kB 597.20kB -0.04% (264.00B)
... 12 more

flake8

Name Old New Diff Outcome
BoundMethodType<'db>::bound_signatures_ 0.00B 48.27kB +48.27kB (new)
BoundMethodType<'db>::into_callable_type_ 27.19kB 13.71kB -49.57% (13.48kB)
infer_definition_types 1.84MB 1.84MB -0.22% (4.20kB)
infer_expression_types_impl 1.04MB 1.03MB -0.23% (2.47kB)
infer_scope_types_impl 985.38kB 984.32kB -0.11% (1.05kB)
class_mro_literals 0.00B 1.04kB +1.04kB (new)
Type<'db>::try_call_dunder_get_ 367.09kB 366.37kB -0.20% (744.00B)
CallableType 168.68kB 168.05kB -0.38% (648.00B)
Type<'db>::apply_specialization_ 208.90kB 209.52kB +0.30% (632.00B)
Type<'db>::apply_specialization_::interned_arguments 199.45kB 200.00kB +0.27% (560.00B)
UnionType<'db>::from_two_elements_::interned_arguments 15.47kB 15.21kB -1.67% (264.00B)
UnionType<'db>::from_two_elements_ 28.28kB 28.04kB -0.83% (240.00B)
infer_deferred_types 564.03kB 563.87kB -0.03% (168.00B)
infer_statement_types_impl 5.81kB 5.73kB -1.41% (84.00B)
try_call_bin_op_return_type_impl 6.31kB 6.29kB -0.37% (24.00B)

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 18, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-argument-type 1 11 284
type-assertion-failure 0 161 80
unsupported-operator 0 126 0
no-matching-overload 9 97 0
invalid-method-override 27 40 0
unused-ignore-comment 12 0 0
invalid-assignment 0 1 1
invalid-return-type 0 2 0
Total 49 438 365

Large timing changes:

Project Old Time New Time Change
colour 2.20s 5.03s +128%
pandas-stubs 11.95s 2.70s -77%

Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.

Showing a random sample of 160 of 852 changes. See the HTML report for the full diff.

Raw diff sample (160 of 852 changes)
apprise (https://github.com/caronc/apprise)
- apprise/plugins/notificationapi.py:828:17 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["email"]` on object of type `str`
+ apprise/plugins/notificationapi.py:828:17 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["email"]` on object of type `str`

bidict (https://github.com/jab/bidict)
- bidict/_bidict.py:158:9 error[invalid-method-override] Invalid override of method `update`: Definition is incompatible with `MutableMapping.update`

build (https://github.com/pypa/build)
- tests/test_integration.py:149:17 error[no-matching-overload] No overload of constructor `filter.__new__` matches arguments
- tests/test_integration.py:150:17 error[no-matching-overload] No overload of constructor `filter.__new__` matches arguments

cloud-init (https://github.com/canonical/cloud-init)
- cloudinit/netinfo.py:596:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["ip"]` on object of type `str`
+ cloudinit/netinfo.py:596:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["ip"]` on object of type `str`
- cloudinit/sources/DataSourceNoCloud.py:172:24 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["seedfrom"]` on object of type `str`
+ cloudinit/sources/DataSourceNoCloud.py:172:24 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["seedfrom"]` on object of type `str`
- cloudinit/sources/DataSourceOracle.py:371:27 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["macAddr"]` on object of type `str`
+ cloudinit/sources/DataSourceOracle.py:371:27 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["macAddr"]` on object of type `str`
- cloudinit/sources/DataSourceVMware.py:1027:20 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["ip"]` on object of type `str`
+ cloudinit/sources/DataSourceVMware.py:1027:20 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["ip"]` on object of type `str`
- cloudinit/sources/helpers/openstack.py:341:33 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["meta"]` on object of type `str`
+ cloudinit/sources/helpers/openstack.py:341:33 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["meta"]` on object of type `str`
- tests/unittests/sources/test_cloudsigma.py:70:13 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["ssh_public_key"]` on object of type `str`
+ tests/unittests/sources/test_cloudsigma.py:70:13 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["ssh_public_key"]` on object of type `str`
- tests/unittests/test_ds_identify.py:1313:35 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["usr/lib/vmware-tools/plugins/vmsvc/libdeployPkgPlugin.so"]` on object of type `str`
+ tests/unittests/test_ds_identify.py:1313:35 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["usr/lib/vmware-tools/plugins/vmsvc/libdeployPkgPlugin.so"]` on object of type `str`
- tests/unittests/test_ds_identify.py:1358:33 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["usr/lib/vmware-tools/plugins/vmsvc/libdeployPkgPlugin.so"]` on object of type `str`
+ tests/unittests/test_ds_identify.py:1358:33 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["usr/lib/vmware-tools/plugins/vmsvc/libdeployPkgPlugin.so"]` on object of type `str`

colour (https://github.com/colour-science/colour)
+ colour/io/luts/lut.py:638:26 error[no-matching-overload] No overload matches arguments
+ colour/utilities/array.py:547:25 error[no-matching-overload] No overload matches arguments
+ colour/utilities/array.py:547:25 error[no-matching-overload] No overload matches arguments

core (https://github.com/home-assistant/core)
- homeassistant/components/forked_daapd/media_player.py:414:34 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["selected"]` on object of type `str`
+ homeassistant/components/forked_daapd/media_player.py:414:34 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["selected"]` on object of type `str`
- homeassistant/components/forked_daapd/media_player.py:415:32 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["volume"]` on object of type `str`
+ homeassistant/components/forked_daapd/media_player.py:415:32 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["volume"]` on object of type `str`
- homeassistant/components/forked_daapd/media_player.py:630:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["id"]` on object of type `str`
+ homeassistant/components/forked_daapd/media_player.py:630:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["id"]` on object of type `str`
- homeassistant/components/pterodactyl/api.py:92:41 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["attributes"]` on object of type `str`
+ homeassistant/components/pterodactyl/api.py:92:41 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["attributes"]` on object of type `str`
- homeassistant/helpers/storage.py:455:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["version"]` on object of type `str`
+ homeassistant/helpers/storage.py:455:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["version"]` on object of type `str`
- homeassistant/helpers/storage.py:458:24 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["version"]` on object of type `str`
+ homeassistant/helpers/storage.py:458:24 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["version"]` on object of type `str`

cwltool (https://github.com/common-workflow-language/cwltool)
- cwltool/checker.py:121:12 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["type"]` on object of type `str`
+ cwltool/checker.py:121:12 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["type"]` on object of type `str`
- cwltool/checker.py:133:39 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["type"]` on object of type `str`
+ cwltool/checker.py:133:39 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["type"]` on object of type `str`
- cwltool/command_line_tool.py:642:60 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["entryname"]` on object of type `str`
+ cwltool/command_line_tool.py:642:60 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["entryname"]` on object of type `str`
- cwltool/main.py:309:16 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["type"]` on object of type `str`
+ cwltool/main.py:309:16 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["type"]` on object of type `str`
- cwltool/main.py:310:85 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["items"]` on object of type `str`
+ cwltool/main.py:310:85 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["items"]` on object of type `str`
- cwltool/main.py:318:16 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["type"]` on object of type `str`
+ cwltool/main.py:318:16 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["type"]` on object of type `str`
- cwltool/pack.py:30:38 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["run"]` on object of type `str`
+ cwltool/pack.py:30:38 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["run"]` on object of type `str`
- cwltool/pack.py:47:38 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["id"]` on object of type `str`
+ cwltool/pack.py:47:38 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["id"]` on object of type `str`
- cwltool/pack.py:47:38 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["name"]` on object of type `str`
+ cwltool/pack.py:47:38 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["name"]` on object of type `str`
- cwltool/subgraph.py:236:36 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["id"]` on object of type `str`
+ cwltool/subgraph.py:236:36 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["id"]` on object of type `str`

dd-trace-py (https://github.com/DataDog/dd-trace-py)
- tests/contrib/vertexai/test_vertexai_llmobs.py:251:33 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["text"]` on object of type `str`
+ tests/contrib/vertexai/test_vertexai_llmobs.py:251:33 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["text"]` on object of type `str`
- tests/contrib/vertexai/test_vertexai_llmobs.py:811:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["text"]` on object of type `str`
+ tests/contrib/vertexai/test_vertexai_llmobs.py:811:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["text"]` on object of type `str`
- tests/contrib/vertexai/test_vertexai_llmobs.py:829:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["text"]` on object of type `str`
+ tests/contrib/vertexai/test_vertexai_llmobs.py:829:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["text"]` on object of type `str`
- tests/contrib/vertexai/test_vertexai_llmobs.py:844:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["text"]` on object of type `str`
+ tests/contrib/vertexai/test_vertexai_llmobs.py:844:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["text"]` on object of type `str`
- tests/contrib/vertexai/test_vertexai_llmobs.py:908:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["parts"]` on object of type `str`
+ tests/contrib/vertexai/test_vertexai_llmobs.py:908:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["parts"]` on object of type `str`
- tests/llmobs/test_experiments.py:3729:29 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["tag_operations"]` on object of type `str`
+ tests/llmobs/test_experiments.py:3729:29 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["tag_operations"]` on object of type `str`
- tests/llmobs/test_experiments.py:3758:12 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["id"]` on object of type `str`
+ tests/llmobs/test_experiments.py:3758:12 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["id"]` on object of type `str`
- tests/llmobs/test_experiments.py:4236:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["tag_operations"]` on object of type `str`
+ tests/llmobs/test_experiments.py:4236:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["tag_operations"]` on object of type `str`
- tests/llmobs/test_experiments.py:4237:25 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["tag_operations"]` on object of type `str`
+ tests/llmobs/test_experiments.py:4237:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["tag_operations"]` on object of type `str`
- tests/llmobs/test_experiments.py:4667:12 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["id"]` on object of type `str`
+ tests/llmobs/test_experiments.py:4667:12 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["id"]` on object of type `str`

freqtrade (https://github.com/freqtrade/freqtrade)
- freqtrade/data/btanalysis/trade_parallelism.py:121:46 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["order_filled_timestamp"]` on object of type `str`
+ freqtrade/data/btanalysis/trade_parallelism.py:121:46 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["order_filled_timestamp"]` on object of type `str`

ibis (https://github.com/ibis-project/ibis)
- ibis/backends/__init__.py:1102:23 error[no-matching-overload] No overload of constructor `filter.__new__` matches arguments

mypy (https://github.com/python/mypy)
- mypy/dmypy_util.py:107:9 error[invalid-method-override] Invalid override of method `write`: Definition is incompatible with `IO.write`
- mypy/typeshed/stdlib/codecs.pyi:302:9 error[invalid-method-override] Invalid override of method `writelines`: Definition is incompatible with `IO.writelines`
- mypy/typeshed/stdlib/os/__init__.pyi:725:9 error[invalid-method-override] Invalid override of method `setdefault`: Definition is incompatible with `MutableMapping.setdefault`

openlibrary (https://github.com/internetarchive/openlibrary)
- openlibrary/core/observations.py:614:47 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["name"]` on object of type `str`
+ openlibrary/core/observations.py:614:47 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["name"]` on object of type `str`
- openlibrary/core/observations.py:706:35 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["name"]` on object of type `str`
+ openlibrary/core/observations.py:706:35 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["name"]` on object of type `str`

pandas (https://github.com/pandas-dev/pandas)
- pandas/io/sas/sas_xport.py:478:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[float64]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[float64]], (key: str, /) -> ndarray[tuple[Any, ...], dtype[Any]], (key: list[str], /) -> ndarray[tuple[Any, ...], Unknown]]` cannot be called with key of type `str` on object of type `ndarray[tuple[Any, ...], dtype[float64]]`
+ pandas/io/sas/sas_xport.py:478:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[float64]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[float64]]]` cannot be called with key of type `str` on object of type `ndarray[tuple[Any, ...], dtype[float64]]`

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ pandas-stubs/core/indexes/datetimes.pyi:79:48 warning[unused-ignore-comment] Unused `ty: ignore` directive
+ pandas-stubs/core/indexes/datetimes.pyi:82:49 warning[unused-ignore-comment] Unused `ty: ignore` directive
- tests/indexes/bool/test_add.py:54:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[bool]`
+ tests/indexes/bool/test_add.py:54:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[bool]`
- tests/indexes/bool/test_mul.py:47:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[bool]`
- tests/indexes/complex/test_add.py:22:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float | complex]`
- tests/indexes/complex/test_add.py:23:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Index[int | float | complex]` and `Literal[1]`
- tests/indexes/complex/test_add.py:24:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float | complex]`
- tests/indexes/complex/test_mul.py:40:23 error[unsupported-operator] Operator `*` is not supported between objects of type `Index[int | float | complex]` and `Literal[True]`
- tests/indexes/complex/test_mul.py:48:23 error[unsupported-operator] Operator `*` is not supported between objects of type `Literal[True]` and `Index[int | float | complex]`
- tests/indexes/complex/test_mul.py:49:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float | complex]`
- tests/indexes/float/test_add.py:27:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Literal[True]` and `Index[int | float]`
- tests/indexes/float/test_add.py:58:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/float/test_add.py:58:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float | complex]`
- tests/indexes/float/test_mul.py:48:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float]`
- tests/indexes/float/test_mul.py:48:23 error[unsupported-operator] Operator `*` is not supported between objects of type `Literal[True]` and `Index[int | float]`
- tests/indexes/int/test_add.py:56:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int]`
+ tests/indexes/int/test_add.py:56:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int]`
- tests/indexes/int/test_add.py:58:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/int/test_add.py:58:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float | complex]`
- tests/indexes/str/test_add.py:64:9 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Never`
+ tests/indexes/str/test_add.py:64:9 error[type-assertion-failure] Type `Unknown` does not match asserted type `Never`
- tests/indexes/str/test_add.py:65:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[str]`
+ tests/indexes/str/test_add.py:65:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[str]`
- tests/indexes/str/test_mul.py:75:15 error[unsupported-operator] Operator `*` is not supported between objects of type `list[bool]` and `Index[str]`
- tests/indexes/str/test_mul.py:79:15 error[unsupported-operator] Operator `*` is not supported between objects of type `list[int | float | complex]` and `Index[str]`
- tests/indexes/str/test_mul.py:80:15 error[unsupported-operator] Operator `*` is not supported between objects of type `list[datetime]` and `Index[str]`
- tests/series/bool/test_add.py:36:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[bool]`
- tests/series/bool/test_add.py:36:23 error[no-matching-overload] No overload of bound method `Series.radd` matches arguments
- tests/series/bool/test_add.py:48:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Series[bool]` and `list[bool]`
- tests/series/bool/test_add.py:63:23 error[no-matching-overload] No overload of bound method `Series.radd` matches arguments
- tests/series/bool/test_add.py:100:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[bool]`
+ tests/series/bool/test_add.py:100:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[bool]`
- tests/series/bool/test_add.py:102:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_add.py:102:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
- tests/series/bool/test_mul.py:64:23 error[no-matching-overload] No overload of bound method `Series.rmul` matches arguments
- tests/series/complex/test_add.py:33:23 error[no-matching-overload] No overload of bound method `Series.add` matches arguments
- tests/series/complex/test_add.py:37:21 error[no-matching-overload] No overload of bound method `Series.radd` matches arguments
- tests/series/complex/test_add.py:40:9 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/complex/test_add.py:55:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Series[int | float | complex]` and `list[int]`
- tests/series/complex/test_add.py:57:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/complex/test_add.py:57:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Series[int | float | complex]` and `list[int | float | complex]`
- tests/series/complex/test_add.py:65:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/complex/test_add.py:66:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/complex/test_add.py:70:21 error[no-matching-overload] No overload of bound method `Series.radd` matches arguments
- tests/series/complex/test_add.py:73:21 error[no-matching-overload] No overload of bound method `Series.radd` matches arguments
- tests/series/complex/test_add.py:112:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/complex/test_add.py:112:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/complex/test_mul.py:49:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/complex/test_mul.py:50:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/complex/test_mul.py:57:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/float/test_add.py:49:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
- tests/series/float/test_add.py:55:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
- tests/series/float/test_add.py:59:23 error[no-matching-overload] No overload of bound method `Series.add` matches arguments
- tests/series/float/test_add.py:63:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
- tests/series/float/test_add.py:64:23 error[no-matching-overload] No overload of bound method `Series.radd` matches arguments
- tests/series/float/test_add.py:65:23 error[no-matching-overload] No overload of bound method `Series.radd` matches arguments
- tests/series/float/test_add.py:81:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/float/test_add.py:81:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/float/test_add.py:95:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
+ tests/series/float/test_add.py:95:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
- tests/series/float/test_add.py:100:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
+ tests/series/float/test_add.py:100:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
- tests/series/float/test_mul.py:40:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
- tests/series/int/test_add.py:95:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int]`
+ tests/series/int/test_add.py:95:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int]`
- tests/series/int/test_add.py:98:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/int/test_add.py:98:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/int/test_add.py:101:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int]`
+ tests/series/int/test_add.py:101:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int]`
- tests/series/int/test_add.py:104:9 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/int/test_add.py:104:9 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
- tests/series/str/test_add.py:32:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Series[str]` and `Literal["right"]`
- tests/series/str/test_add.py:81:15 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[str]`
- tests/series/str/test_add.py:102:9 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Never`
+ tests/series/str/test_add.py:102:9 error[type-assertion-failure] Type `Unknown` does not match asserted type `Never`
- tests/series/str/test_mul.py:53:15 error[unsupported-operator] Operator `*` is not supported between objects of type `float` and `Series[str]`
- tests/series/str/test_mul.py:55:15 error[unsupported-operator] Operator `*` is not supported between objects of type `datetime` and `Series[str]`
- tests/series/str/test_mul.py:68:9 error[no-matching-overload] No overload of bound method `Series.rmul` matches arguments
- tests/series/str/test_mul.py:97:15 error[unsupported-operator] Operator `*` is not supported between objects of type `list[int | float | complex]` and `Series[str]`
- tests/series/str/test_mul.py:152:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[str]`
- tests/series/str/test_mul.py:193:15 error[unsupported-operator] Operator `*` is not supported between objects of type `DatetimeIndex` and `Series[str]`
- tests/series/timedelta/test_mul.py:42:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Timedelta]`
- tests/series/timedelta/test_mul.py:43:23 error[unsupported-operator] Operator `*` is not supported between objects of type `float` and `Series[Timedelta]`
- tests/series/timedelta/test_mul.py:48:9 error[no-matching-overload] No overload of bound method `Series.mul` matches arguments
- tests/series/timedelta/test_mul.py:50:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Timedelta]`
- tests/series/timedelta/test_mul.py:56:23 error[no-matching-overload] No overload of bound method `Series.rmul` matches arguments
- tests/series/timedelta/test_mul.py:59:9 error[no-matching-overload] No overload of bound method `Series.rmul` matches arguments
- tests/series/timedelta/test_mul.py:68:23 error[unsupported-operator] Operator `*` is not supported between objects of type `Series[Timedelta]` and `list[int]`
- tests/series/timedelta/test_mul.py:69:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Timedelta]`
- tests/series/timedelta/test_mul.py:75:23 error[unsupported-operator] Operator `*` is not supported between objects of type `list[int]` and `Series[Timedelta]`
- tests/series/timedelta/test_mul.py:82:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Timedelta]`
- tests/series/timedelta/test_mul.py:83:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Timedelta]`
- tests/series/timedelta/test_mul.py:88:9 error[no-matching-overload] No overload of bound method `Series.rmul` matches arguments
- tests/series/timedelta/test_mul.py:89:23 error[no-matching-overload] No overload of bound method `Series.rmul` matches arguments
- tests/series/timedelta/test_mul.py:122:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Timedelta]`
- tests/series/timedelta/test_truediv.py:88:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
- tests/series/timedelta/test_truediv.py:226:11 error[type-assertion-failure] Type `Series[Timedelta]` does not match asserted type `Series[int | float]`

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/infrastructure/provisioners/container_instance.py:347:24 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["displayName"]` on object of type `str`
+ src/prefect/infrastructure/provisioners/container_instance.py:347:24 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["displayName"]` on object of type `str`
- src/prefect/infrastructure/provisioners/container_instance.py:413:20 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["tenant"]` on object of type `str`
+ src/prefect/infrastructure/provisioners/container_instance.py:413:20 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["tenant"]` on object of type `str`

pydantic (https://github.com/pydantic/pydantic)
- pydantic/_internal/_schema_gather.py:159:29 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["schema"]` on object of type `str`
+ pydantic/_internal/_schema_gather.py:159:29 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["schema"]` on object of type `str`

rich (https://github.com/Textualize/rich)
- rich/_null_file.py:39:9 error[invalid-method-override] Invalid override of method `writelines`: Definition is incompatible with `IO.writelines`

schema_salad (https://github.com/common-workflow-language/schema_salad)
- schema_salad/ref_resolver.py:1164:41 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `str` on object of type `str`
+ schema_salad/ref_resolver.py:1164:41 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `str` on object of type `str`
- schema_salad/schema.py:434:30 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["name"]` on object of type `str`
+ schema_salad/schema.py:434:30 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["name"]` on object of type `str`
- schema_salad/schema.py:543:56 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["name"]` on object of type `str`
+ schema_salad/schema.py:543:56 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["name"]` on object of type `str`
- schema_salad/schema.py:558:20 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["name"]` on object of type `str`
+ schema_salad/schema.py:558:20 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["name"]` on object of type `str`
- schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["fields"]` on object of type `str`
+ schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["fields"]` on object of type `str`
- schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["type"]` on object of type `str`
+ schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["type"]` on object of type `str`
- schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["values"]` on object of type `str`
+ schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["values"]` on object of type `str`

scikit-build-core (https://github.com/scikit-build/scikit-build-core)
- src/scikit_build_core/settings/skbuild_schema.py:65:5 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["generate"]` on object of type `str`
+ src/scikit_build_core/settings/skbuild_schema.py:65:5 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["generate"]` on object of type `str`

scipy (https://github.com/scipy/scipy)
- subprojects/highs/highs/highspy/highs.py:1200:56 error[invalid-assignment] Object of type `ndarray[tuple[object, ...], dtype[object]]` is not assignable to `ndarray[Any, dtype[object_]]`
+ subprojects/highs/highs/highspy/highs.py:1200:56 error[invalid-assignment] Object of type `Iterable[highs_var | highs_linear_expression] & ndarray[tuple[object, ...], dtype[object]]` is not assignable to `ndarray[Any, dtype[object_]]`

scipy-stubs (https://github.com/scipy/scipy-stubs)
+ scipy-stubs/sparse/_dok.pyi:721:118 error[unused-ignore-comment] Unused `ty: ignore` directive
+ scipy-stubs/stats/_distribution_infrastructure.pyi:341:9 error[invalid-method-override] Invalid override of method `mode`: Definition is incompatible with `_ProbabilityDistribution.mode`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:387:9 error[invalid-method-override] Invalid override of method `mean`: Definition is incompatible with `_ProbabilityDistribution.mean`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:580:9 error[invalid-method-override] Invalid override of method `logpdf`: Definition is incompatible with `_ProbabilityDistribution.logpdf`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:845:9 error[invalid-method-override] Invalid override of method `logcdf`: Definition is incompatible with `_ProbabilityDistribution.logcdf`
+ scipy-stubs/stats/_distribution_infrastructure.pyi:938:9 error[invalid-method-override] Invalid override of method `ccdf`: Definition is incompatible with `_ProbabilityDistribution.ccdf`
- tests/spatial/test__rigid_transform.pyi:61:1 error[type-assertion-failure] Type `RigidTransform[tuple[()]] | RigidTransform[tuple[int]]` does not match asserted type `RigidTransform[tuple[()]]`
+ tests/spatial/test__rigid_transform.pyi:61:1 error[type-assertion-failure] Type `RigidTransform[tuple[Any, ...]]` does not match asserted type `RigidTransform[tuple[()]]`
- tests/spatial/test__rigid_transform.pyi:62:1 error[type-assertion-failure] Type `RigidTransform[tuple[()]] | RigidTransform[tuple[int]]` does not match asserted type `RigidTransform[tuple[int]]`
+ tests/spatial/test__rigid_transform.pyi:62:1 error[type-assertion-failure] Type `RigidTransform[tuple[Any, ...]] | RigidTransform[tuple[int]]` does not match asserted type `RigidTransform[tuple[int]]`

setuptools (https://github.com/pypa/setuptools)
- setuptools/_distutils/util.py:154:43 error[invalid-argument-type] Method `__getitem__` of type `(Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]) | (Overload[(key: SupportsIndex, /) -> int, (key: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> bytes])` cannot be called with key of type `slice[Literal[1], None, None]` on object of type `AnyStr@change_root`
+ setuptools/_distutils/util.py:154:43 error[invalid-argument-type] Method `__getitem__` of type `(Overload[]) | (Overload[])` cannot be called with key of type `slice[Literal[1], None, None]` on object of type `AnyStr@change_root`
- setuptools/tests/test_editable_install.py:967:5 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["mypkg"]` on object of type `str`
+ setuptools/tests/test_editable_install.py:967:5 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["mypkg"]` on object of type `str`

spack (https://github.com/spack/spack)
- lib/spack/spack/vendor/markupsafe/__init__.py:193:9 error[invalid-method-override] Invalid override of method `partition`: Definition is incompatible with `str.partition`

xarray (https://github.com/pydata/xarray)
- xarray/core/groupby.py:963:24 error[invalid-argument-type] Method `__getitem__` of type `(bound method T_Xarray@GroupBy.__getitem__(key: Any) -> T_Xarray@GroupBy) | (Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_Xarray@GroupBy])` cannot be called with key of type `Unknown` on object of type `T_Xarray@GroupBy`
+ xarray/core/groupby.py:963:24 error[invalid-argument-type] Method `__getitem__` of type `(bound method T_Xarray@GroupBy.__getitem__(key: Any) -> T_Xarray@GroupBy) | (Overload[])` cannot be called with key of type `Unknown` on object of type `T_Xarray@GroupBy`
- xarray/core/indexing.py:406:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]], (key: str, /) -> ndarray[tuple[object, ...], dtype[Any]], (key: list[str], /) -> ndarray[tuple[object, ...], Unknown]]` cannot be called with key of type `integer[Any]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
+ xarray/core/indexing.py:406:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]]]` cannot be called with key of type `ndarray[Any, dtype[integer[Any]]]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
- xarray/core/indexing.py:406:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]], (key: str, /) -> ndarray[tuple[object, ...], dtype[Any]], (key: list[str], /) -> ndarray[tuple[object, ...], Unknown]]` cannot be called with key of type `ndarray[Any, dtype[integer[Any]]]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
- xarray/core/indexing.py:406:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]], (key: str, /) -> ndarray[tuple[object, ...], dtype[Any]], (key: list[str], /) -> ndarray[tuple[object, ...], Unknown]]` cannot be called with key of type `ndarray[Any, dtype[integer[Any]]]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
- xarray/core/indexing.py:406:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]], (key: str, /) -> ndarray[tuple[object, ...], dtype[Any]], (key: list[str], /) -> ndarray[tuple[object, ...], Unknown]]` cannot be called with key of type `slice[Any, Any, Any]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
- xarray/plot/facetgrid.py:241:26 error[invalid-argument-type] Method `__getitem__` of type `(Overload[(key: Hashable) -> DataArray, (key: Iterable[Hashable]) -> T_DataArrayOrSet@FacetGrid]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`
+ xarray/plot/facetgrid.py:241:26 error[invalid-argument-type] Method `__getitem__` of type `(Overload[]) | (bound method T_DataArrayOrSet@FacetGrid.__getitem__(key: Any) -> T_DataArrayOrSet@FacetGrid)` cannot be called with key of type `Hashable` on object of type `T_DataArrayOrSet@FacetGrid`

Full report with detailed diff (timing results)

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 18, 2026

Merging this PR will degrade performance by 9.81%

⚡ 2 improved benchmarks
❌ 1 regressed benchmark
✅ 50 untouched benchmarks
⏩ 60 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
WallTime static_frame 22.4 s 21.3 s +5.16%
WallTime pandas 66.8 s 64.2 s +4.04%
WallTime colour_science 50.3 s 55.7 s -9.81%

Comparing charlie/bind-selfs (9cb078c) with main (359eb82)

Open in CodSpeed

Footnotes

  1. 60 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@charliermarsh charliermarsh added the bug Something isn't working label Apr 19, 2026
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 19, 2026

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@charliermarsh charliermarsh force-pushed the charlie/bind-selfs branch 5 times, most recently from 1d57f74 to fd58449 Compare April 20, 2026 20:31
@charliermarsh charliermarsh marked this pull request as ready for review April 20, 2026 20:43
@charliermarsh charliermarsh marked this pull request as draft April 21, 2026 17:49
@charliermarsh charliermarsh force-pushed the charlie/bind-selfs branch 5 times, most recently from 26c456e to ba61691 Compare April 22, 2026 02:25
@charliermarsh charliermarsh marked this pull request as ready for review April 22, 2026 02:25
@charliermarsh charliermarsh force-pushed the charlie/bind-selfs branch 2 times, most recently from 7f009ab to d6274ae Compare April 26, 2026 00:13
@charliermarsh charliermarsh force-pushed the charlie/bind-selfs branch 4 times, most recently from 6b84710 to 99db257 Compare April 27, 2026 17:58
@charliermarsh charliermarsh marked this pull request as ready for review April 27, 2026 18:36
@charliermarsh
Copy link
Copy Markdown
Member Author

I'm out of ideas on how to fix this colour_science regression, but I will keep poking at it.

@carljm
Copy link
Copy Markdown
Contributor

carljm commented Apr 27, 2026

I'm out of ideas on how to fix this colour_science regression, but I will keep poking at it.

But we can eliminate it with salsa caching, at some memory cost? What does it require caching?

@charliermarsh charliermarsh marked this pull request as draft April 27, 2026 22:33
PathBounds::default_solve(self.db, self.constraints, typevar, lower, upper)
},
) {
let solutions = match set.solutions(self.db, self.constraints) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is equivalent? But it reduced the regression from 50% to 10%.

@charliermarsh charliermarsh marked this pull request as ready for review April 28, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MutableMapping.update override rejected when using Protocol Incorrect / confusing invalid-method-override when overriding str.__iter__

3 participants