Skip to content

[ty] Fix method calls on subclasses of Any#23248

Merged
sharkdp merged 1 commit intomainfrom
david/subclass-any-methods
Feb 12, 2026
Merged

[ty] Fix method calls on subclasses of Any#23248
sharkdp merged 1 commit intomainfrom
david/subclass-any-methods

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Feb 12, 2026

Summary

Another small win in terms of typing conformance. This should fix the last remaining test in specialtypes_any.py

Ecosystem

The new diagnostics look like true positives (in our current strict interpretation of LSP checks)

Test Plan

New Markdown test

@sharkdp sharkdp requested a review from carljm as a code owner February 12, 2026 15:16
@sharkdp sharkdp added the ty Multi-file analysis & type inference label Feb 12, 2026
@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 12, 2026

Typing conformance results improved 🎉

The percentage of diagnostics emitted that were expected errors increased from 83.51% to 83.59%. The percentage of expected errors that received a diagnostic held steady at 74.33%.

Summary

Metric Old New Diff Outcome
True Positives 805 805 +0
False Positives 159 158 -1 ⏬ (✅)
False Negatives 278 278 +0
Total Diagnostics 964 963 -1
Precision 83.51% 83.59% +0.09% ⏫ (✅)
Recall 74.33% 74.33% +0.00%

False positives removed

Details
Location Name Message
specialtypes_any.py:86:1 type-assertion-failure Type int does not match asserted type int | @Todo(instance attribute on class with dynamic base)

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 12, 2026

Memory usage report

Summary

Project Old New Diff Outcome
flake8 49.36MB 49.35MB -0.02% (10.57kB) ⬇️
trio 118.20MB 117.86MB -0.29% (350.80kB) ⬇️
sphinx 271.24MB 268.56MB -0.99% (2.68MB) ⬇️
prefect 681.12MB 677.32MB -0.56% (3.80MB) ⬇️

Significant changes

Click to expand detailed breakdown

flake8

Name Old New Diff Outcome
is_redundant_with_impl::interned_arguments 153.31kB 150.05kB -2.13% (3.27kB) ⬇️
UnionType 108.75kB 106.55kB -2.03% (2.20kB) ⬇️
is_redundant_with_impl 149.06kB 147.28kB -1.19% (1.78kB) ⬇️
Type<'db>::member_lookup_with_policy_ 423.52kB 421.96kB -0.37% (1.56kB) ⬇️
infer_expression_types_impl 1.06MB 1.06MB -0.10% (1.08kB) ⬇️
CallableType 182.39kB 182.11kB -0.15% (288.00B) ⬇️
IntersectionType 81.43kB 81.27kB -0.20% (168.00B) ⬇️
infer_scope_types_impl 1.08MB 1.08MB -0.01% (144.00B) ⬇️
Type<'db>::member_lookup_with_policy_::interned_arguments 206.98kB 206.88kB -0.05% (104.00B) ⬇️

trio

Name Old New Diff Outcome
is_redundant_with_impl::interned_arguments 613.16kB 524.73kB -14.42% (88.43kB) ⬇️
UnionType 346.97kB 290.34kB -16.32% (56.62kB) ⬇️
is_redundant_with_impl 514.17kB 464.61kB -9.64% (49.56kB) ⬇️
Type<'db>::member_lookup_with_policy_ 1.76MB 1.72MB -2.29% (41.30kB) ⬇️
FunctionType 1.54MB 1.51MB -2.24% (35.34kB) ⬇️
FunctionType<'db>::signature_ 1.09MB 1.07MB -1.57% (17.52kB) ⬇️
FunctionType<'db>::last_definition_signature_ 257.91kB 242.37kB -6.03% (15.54kB) ⬇️
infer_expression_types_impl 5.66MB 5.65MB -0.15% (8.73kB) ⬇️
infer_scope_types_impl 5.45MB 5.44MB -0.12% (6.87kB) ⬇️
BoundMethodType 194.30kB 188.20kB -3.14% (6.09kB) ⬇️
cached_protocol_interface 133.39kB 129.02kB -3.28% (4.37kB) ⬇️
StaticClassLiteral<'db>::try_mro_ 888.04kB 884.22kB -0.43% (3.82kB) ⬇️
ProtocolInterface 94.70kB 92.07kB -2.77% (2.62kB) ⬇️
infer_definition_types 7.18MB 7.18MB -0.03% (2.54kB) ⬇️
IntersectionType 248.47kB 246.01kB -0.99% (2.46kB) ⬇️
... 32 more

sphinx

Name Old New Diff Outcome
is_redundant_with_impl::interned_arguments 2.76MB 2.01MB -27.01% (762.70kB) ⬇️
UnionType 1.66MB 1.19MB -28.40% (481.47kB) ⬇️
is_redundant_with_impl 2.19MB 1.78MB -18.77% (420.59kB) ⬇️
Type<'db>::member_lookup_with_policy_ 6.49MB 6.17MB -4.91% (326.00kB) ⬇️
FunctionType 3.37MB 3.16MB -6.26% (215.98kB) ⬇️
FunctionType<'db>::last_definition_signature_ 366.37kB 226.38kB -38.21% (140.00kB) ⬇️
FunctionType<'db>::signature_ 2.40MB 2.29MB -4.60% (113.38kB) ⬇️
infer_expression_types_impl 21.59MB 21.50MB -0.44% (97.00kB) ⬇️
infer_definition_types 23.41MB 23.34MB -0.28% (67.26kB) ⬇️
BoundMethodType 769.77kB 711.17kB -7.61% (58.59kB) ⬇️
IntersectionType 1.04MB 1.02MB -2.04% (21.73kB) ⬇️
infer_scope_types_impl 17.46MB 17.45MB -0.09% (16.85kB) ⬇️
Type<'db>::member_lookup_with_policy_::interned_arguments 2.51MB 2.51MB -0.19% (4.98kB) ⬇️
StaticClassLiteral<'db>::try_mro_ 2.17MB 2.16MB -0.17% (3.75kB) ⬇️
infer_unpack_types 447.12kB 444.51kB -0.58% (2.61kB) ⬇️
... 32 more

prefect

Name Old New Diff Outcome
is_redundant_with_impl::interned_arguments 6.17MB 5.40MB -12.50% (789.94kB) ⬇️
Type<'db>::member_lookup_with_policy_ 15.29MB 14.61MB -4.43% (694.21kB) ⬇️
UnionType 3.89MB 3.40MB -12.57% (500.11kB) ⬇️
is_redundant_with_impl 5.93MB 5.50MB -7.27% (441.83kB) ⬇️
infer_expression_types_impl 51.39MB 51.02MB -0.71% (372.73kB) ⬇️
FunctionType 8.43MB 8.14MB -3.35% (288.66kB) ⬇️
FunctionType<'db>::last_definition_signature_ 909.97kB 718.73kB -21.02% (191.24kB) ⬇️
FunctionType<'db>::signature_ 3.92MB 3.77MB -3.73% (149.86kB) ⬇️
infer_definition_types 83.07MB 82.93MB -0.17% (144.13kB) ⬇️
infer_scope_types_impl 57.28MB 57.19MB -0.16% (95.96kB) ⬇️
BoundMethodType 1.37MB 1.31MB -4.60% (64.53kB) ⬇️
infer_expression_type_impl 10.38MB 10.35MB -0.35% (37.56kB) ⬇️
IntersectionType 2.50MB 2.47MB -1.20% (30.65kB) ⬇️
Type<'db>::member_lookup_with_policy_::interned_arguments 5.26MB 5.24MB -0.42% (22.45kB) ⬇️
Type<'db>::apply_specialization_ 3.70MB 3.68MB -0.40% (15.09kB) ⬇️
... 46 more

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 12, 2026

mypy_primer results

Changes were detected when running on open source projects
spack (https://github.com/spack/spack)
- lib/spack/spack/detection/path.py:169:33: error[invalid-argument-type] Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[int | bytes | PathLike[str] | ... omitted 3 union elements]`
+ lib/spack/spack/detection/path.py:169:33: error[invalid-argument-type] Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[int | str | bytes | ... omitted 3 union elements]`
- lib/spack/spack/llnl/util/filesystem.py:1668:35: error[invalid-argument-type] Argument to function `exists` is incorrect: Expected `int | str | bytes | PathLike[str] | PathLike[bytes]`, found `Sized | Unknown`
+ lib/spack/spack/llnl/util/filesystem.py:1668:35: error[invalid-argument-type] Argument to function `exists` is incorrect: Expected `int | str | bytes | PathLike[str] | PathLike[bytes]`, found `Unknown | Sized`
- lib/spack/spack/llnl/util/filesystem.py:1674:25: error[invalid-argument-type] Argument to function `move` is incorrect: Expected `str | PathLike[str]`, found `Sized | Unknown`
+ lib/spack/spack/llnl/util/filesystem.py:1674:25: error[invalid-argument-type] Argument to function `move` is incorrect: Expected `str | PathLike[str]`, found `Unknown | Sized`

aiortc (https://github.com/aiortc/aiortc)
- src/aiortc/rtcpeerconnection.py:571:25: error[unresolved-attribute] Attribute `media` is not defined on `None` in union `SessionDescription | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:571:25: error[unresolved-attribute] Attribute `media` is not defined on `None` in union `SessionDescription | None`
- src/aiortc/rtcpeerconnection.py:575:21: error[invalid-argument-type] Argument to function `create_media_description_for_transceiver` is incorrect: Expected `RTCRtpTransceiver`, found `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:575:21: error[invalid-argument-type] Argument to function `create_media_description_for_transceiver` is incorrect: Expected `RTCRtpTransceiver`, found `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:578:25: error[unresolved-attribute] Attribute `direction` is not defined on `None` in union `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:578:25: error[unresolved-attribute] Attribute `direction` is not defined on `None` in union `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:578:48: error[invalid-argument-type] Argument to function `and_direction` is incorrect: Expected `str`, found `str | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:578:48: error[invalid-argument-type] Argument to function `and_direction` is incorrect: Expected `str`, found `str | None`
- src/aiortc/rtcpeerconnection.py:578:48: error[unresolved-attribute] Attribute `_offerDirection` is not defined on `None` in union `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:578:48: error[unresolved-attribute] Attribute `_offerDirection` is not defined on `None` in union `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:580:21: error[invalid-argument-type] Argument to function `create_media_description_for_transceiver` is incorrect: Expected `str`, found `str | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:580:21: error[invalid-argument-type] Argument to function `create_media_description_for_transceiver` is incorrect: Expected `str`, found `str | None`
- src/aiortc/rtcpeerconnection.py:580:25: error[unresolved-attribute] Attribute `mid` is not defined on `None` in union `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:580:25: error[unresolved-attribute] Attribute `mid` is not defined on `None` in union `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:582:33: error[unresolved-attribute] Attribute `receiver` is not defined on `None` in union `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:582:33: error[unresolved-attribute] Attribute `receiver` is not defined on `None` in union `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:675:33: error[invalid-argument-type] Argument to function `get_media` is incorrect: Expected `SessionDescription`, found `SessionDescription | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:675:33: error[invalid-argument-type] Argument to function `get_media` is incorrect: Expected `SessionDescription`, found `SessionDescription | None`
- src/aiortc/rtcpeerconnection.py:676:34: error[invalid-argument-type] Argument to function `get_media` is incorrect: Expected `SessionDescription`, found `SessionDescription | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:676:34: error[invalid-argument-type] Argument to function `get_media` is incorrect: Expected `SessionDescription`, found `SessionDescription | None`
- src/aiortc/rtcpeerconnection.py:684:17: error[unresolved-attribute] Attribute `_set_mline_index` is not defined on `None` in union `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:684:17: error[unresolved-attribute] Attribute `_set_mline_index` is not defined on `None` in union `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:687:25: error[invalid-argument-type] Argument to function `create_media_description_for_transceiver` is incorrect: Expected `RTCRtpTransceiver`, found `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:687:25: error[invalid-argument-type] Argument to function `create_media_description_for_transceiver` is incorrect: Expected `RTCRtpTransceiver`, found `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:689:35: error[unresolved-attribute] Attribute `direction` is not defined on `None` in union `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:689:35: error[unresolved-attribute] Attribute `direction` is not defined on `None` in union `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:833:17: error[unresolved-attribute] Attribute `_set_mid` is not defined on `None` in union `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:833:17: error[unresolved-attribute] Attribute `_set_mid` is not defined on `None` in union `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:849:21: error[unresolved-attribute] Attribute `receiver` is not defined on `None` in union `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:849:21: error[unresolved-attribute] Attribute `receiver` is not defined on `None` in union `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:863:50: error[unresolved-attribute] Attribute `receiver` is not defined on `None` in union `RTCRtpTransceiver | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:863:50: error[unresolved-attribute] Attribute `receiver` is not defined on `None` in union `RTCRtpTransceiver | None`
- src/aiortc/rtcpeerconnection.py:1237:17: error[unresolved-attribute] Attribute `media` is not defined on `None` in union `SessionDescription | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:1237:17: error[unresolved-attribute] Attribute `media` is not defined on `None` in union `SessionDescription | None`
- src/aiortc/rtcpeerconnection.py:1407:71: error[unresolved-attribute] Attribute `media` is not defined on `None` in union `SessionDescription | None | @Todo`
+ src/aiortc/rtcpeerconnection.py:1407:71: error[unresolved-attribute] Attribute `media` is not defined on `None` in union `SessionDescription | None`
- src/aiortc/rtcsctptransport.py:1095:33: error[invalid-argument-type] Argument to bound method `_receive` is incorrect: Expected `int`, found `int | bytes | @Todo`
- src/aiortc/rtcsctptransport.py:1095:33: error[invalid-argument-type] Argument to bound method `_receive` is incorrect: Expected `int`, found `int | bytes | @Todo`
- src/aiortc/rtcsctptransport.py:1095:33: error[invalid-argument-type] Argument to bound method `_receive` is incorrect: Expected `bytes`, found `int | bytes | @Todo`
- src/aiortc/rtcsctptransport.py:1131:37: error[invalid-argument-type] Argument to bound method `_receive` is incorrect: Expected `int`, found `int | bytes | @Todo`
- src/aiortc/rtcsctptransport.py:1131:37: error[invalid-argument-type] Argument to bound method `_receive` is incorrect: Expected `int`, found `int | bytes | @Todo`
- src/aiortc/rtcsctptransport.py:1131:37: error[invalid-argument-type] Argument to bound method `_receive` is incorrect: Expected `bytes`, found `int | bytes | @Todo`
- Found 194 diagnostics
+ Found 188 diagnostics

sockeye (https://github.com/awslabs/sockeye)
- sockeye/layers.py:530:162: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- sockeye/layers.py:873:111: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- sockeye/output_handler.py:254:80: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown | list[str]]`, found `list[list[str]] | None`
+ sockeye/output_handler.py:254:80: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[list[str] | Unknown]`, found `list[list[str]] | None`
- Found 418 diagnostics
+ Found 416 diagnostics

PyGithub (https://github.com/PyGithub/PyGithub)
- github/Requester.py:899:57: error[invalid-argument-type] Argument to bound method `__hostnameHasDomain` is incorrect: Expected `str | list[str]`, found `Unknown | list[Unknown | str] | list[None | Unknown | str]`
+ github/Requester.py:899:57: error[invalid-argument-type] Argument to bound method `__hostnameHasDomain` is incorrect: Expected `str | list[str]`, found `Unknown | list[Unknown | str] | list[str | Unknown | None]`

schemathesis (https://github.com/schemathesis/schemathesis)
- src/schemathesis/cli/ext/options.py:41:106: error[invalid-return-type] Function can implicitly return `None`, which is not assignable to return type `list[str]`
- src/schemathesis/cli/ext/options.py:53:106: error[invalid-return-type] Function can implicitly return `None`, which is not assignable to return type `list[Enum]`
- src/schemathesis/cli/ext/options.py:77:106: error[invalid-return-type] Function can implicitly return `None`, which is not assignable to return type `list[str]`
- Found 321 diagnostics
+ Found 318 diagnostics

mitmproxy (https://github.com/mitmproxy/mitmproxy)
- mitmproxy/tools/console/commands.py:109:38: error[invalid-argument-type] Argument to bound method `connect` is incorrect: Expected `(text) -> None`, found `(bound method Self@__init__.sig_mod(txt) -> Unknown) | @Todo`
+ mitmproxy/tools/console/commands.py:109:38: error[invalid-argument-type] Argument to bound method `connect` is incorrect: Expected `(text) -> None`, found `bound method Self@__init__.sig_mod(txt) -> Unknown`
+ test/mitmproxy/tools/console/test_flowview.py:94:5: error[unresolved-attribute] Object of type `_lru_cache_wrapper[tuple[str, list[Unknown]]]` has no attribute `assert_called_with`
- Found 2126 diagnostics
+ Found 2127 diagnostics

artigraph (https://github.com/artigraph/artigraph)
- tests/arti/types/test_types.py:100:51: error[invalid-argument-type] Argument is incorrect: Expected `frozenset[Any]`, found `frozenset[float | Unknown | int] | list[int | Unknown | float] | tuple[float | Unknown | int, ...]`
+ tests/arti/types/test_types.py:100:51: error[invalid-argument-type] Argument is incorrect: Expected `frozenset[Any]`, found `frozenset[float | Unknown | int] | list[Unknown | int | float] | tuple[float | Unknown | int, ...]`

Expression (https://github.com/cognitedata/Expression)
+ tests/test_compose.py:21:16: error[invalid-assignment] Object of type `(Never, /) -> Never` is not assignable to `(int, /) -> int`
- Found 204 diagnostics
+ Found 205 diagnostics

vision (https://github.com/pytorch/vision)
+ references/depth/stereo/transforms.py:206:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `ColorJitter.forward`
+ references/detection/coco_utils.py:191:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `torchvision.datasets.coco.CocoDetection.__getitem__`
+ references/detection/transforms.py:31:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `torchvision.transforms.transforms.RandomHorizontalFlip.forward`
+ references/optical_flow/transforms.py:92:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `ColorJitter.forward`
+ references/optical_flow/transforms.py:120:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `torchvision.transforms.transforms.RandomErasing.forward`
+ references/optical_flow/transforms.py:132:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `torchvision.transforms.transforms.RandomHorizontalFlip.forward`
+ references/optical_flow/transforms.py:145:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `torchvision.transforms.transforms.RandomVerticalFlip.forward`
+ references/segmentation/v2_extras.py:13:9: error[invalid-method-override] Invalid override of method `make_params`: Definition is incompatible with `Transform.make_params`
+ references/segmentation/v2_extras.py:78:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `Transform.forward`
+ test/test_transforms_v2.py:5773:17: error[invalid-method-override] Invalid override of method `transform`: Definition is incompatible with `Transform.transform`
+ torchvision/datasets/clevr.py:69:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/dtd.py:84:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/fer2013.py:107:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/fgvc_aircraft.py:99:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/flowers102.py:85:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/food101.py:77:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/hmdb51.py:144:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/imagenette.py:91:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/kinetics.py:230:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/moving_mnist.py:66:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/oxford_iiit_pet.py:99:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/pcam.py:106:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/rendered_sst2.py:65:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/stanford_cars.py:87:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/sun397.py:63:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/datasets/ucf101.py:124:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `VisionDataset.__getitem__`
+ torchvision/models/quantization/mobilenetv3.py:89:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `InvertedResidual.forward`
+ torchvision/ops/feature_pyramid_network.py:212:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `ExtraFPNBlock.forward`
+ torchvision/ops/feature_pyramid_network.py:238:9: error[invalid-method-override] Invalid override of method `forward`: Definition is incompatible with `ExtraFPNBlock.forward`
- torchvision/prototype/models/depth/stereo/raft_stereo.py:162:80: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- torchvision/transforms/transforms.py:1537:30: error[invalid-argument-type] Argument to function `affine` is incorrect: Expected `int | float`, found `int | float | tuple[int | float, int | float] | @Todo`
- torchvision/transforms/transforms.py:1537:30: error[invalid-argument-type] Argument to function `affine` is incorrect: Expected `list[int]`, found `int | float | tuple[int | float, int | float] | @Todo`
+ torchvision/transforms/transforms.py:1537:30: error[invalid-argument-type] Argument to function `affine` is incorrect: Expected `list[int]`, found `tuple[int, int]`
- torchvision/transforms/transforms.py:1537:30: error[invalid-argument-type] Argument to function `affine` is incorrect: Expected `int | float`, found `int | float | tuple[int | float, int | float] | @Todo`
- torchvision/transforms/transforms.py:1537:30: error[invalid-argument-type] Argument to function `affine` is incorrect: Expected `list[int | float]`, found `int | float | tuple[int | float, int | float] | @Todo`
+ torchvision/transforms/transforms.py:1537:30: error[invalid-argument-type] Argument to function `affine` is incorrect: Expected `list[int | float]`, found `tuple[int | float, int | float]`
+ torchvision/transforms/v2/_misc.py:111:9: error[invalid-method-override] Invalid override of method `check_inputs`: Definition is incompatible with `Transform.check_inputs`
+ torchvision/transforms/v2/_misc.py:169:9: error[invalid-method-override] Invalid override of method `check_inputs`: Definition is incompatible with `Transform.check_inputs`
- Found 1408 diagnostics
+ Found 1436 diagnostics

zope.interface (https://github.com/zopefoundation/zope.interface)
+ src/zope/interface/common/idatetime.py:361:9: error[invalid-method-override] Invalid override of method `replace`: Definition is incompatible with `IDate.replace`
- Found 421 diagnostics
+ Found 422 diagnostics

openlibrary (https://github.com/internetarchive/openlibrary)
- openlibrary/accounts/model.py:178:16: error[invalid-return-type] Return type does not match returned value: expected `int`, found `(User & ~AlwaysTruthy & ~AlwaysFalsy) | (@Todo & ~AlwaysFalsy) | (int & ~AlwaysFalsy) | Literal[0]`
+ openlibrary/accounts/model.py:178:16: error[invalid-return-type] Return type does not match returned value: expected `int`, found `(User & ~AlwaysTruthy & ~AlwaysFalsy) | (int & ~AlwaysFalsy) | Literal[0]`
- openlibrary/catalog/utils/__init__.py:132:17: error[unresolved-attribute] Attribute `search` is not defined on `str` in union `str | Unknown`
+ openlibrary/catalog/utils/__init__.py:132:17: error[unresolved-attribute] Attribute `search` is not defined on `str` in union `Unknown | str`

prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-redis/prefect_redis/messaging.py:586:29: error[unresolved-attribute] Attribute `total_seconds` is not defined on `str` in union `str | timedelta | @Todo`
+ src/integrations/prefect-redis/prefect_redis/messaging.py:586:29: error[unresolved-attribute] Attribute `total_seconds` is not defined on `str` in union `str | timedelta`
- src/prefect/cli/dev.py:217:21: error[unresolved-attribute] Attribute `aio` is not defined on `(...) -> Any` in union `((...) -> Any) | @Todo`
+ src/prefect/cli/dev.py:217:21: error[unresolved-attribute] Object of type `(...) -> Any` has no attribute `aio`
- src/prefect/cli/dev.py:223:27: error[unresolved-attribute] Attribute `aio` is not defined on `(...) -> Any` in union `((...) -> Any) | @Todo`
+ src/prefect/cli/dev.py:223:27: error[unresolved-attribute] Object of type `(...) -> Any` has no attribute `aio`
- src/prefect/deployments/runner.py:1017:70: error[unresolved-attribute] Attribute `__name__` is not defined on `(...) -> Any` in union `Unknown | ((...) -> Any)`
+ src/prefect/deployments/runner.py:1017:70: error[unresolved-attribute] Attribute `__name__` is not defined on `((...) -> Any) & ((*args: object, **kwargs: object) -> object)` in union `Unknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))`
- src/prefect/flow_engine.py:1004:32: error[invalid-await] `Unknown | R@FlowRunEngine | Coroutine[Any, Any, R@FlowRunEngine]` is not awaitable
- src/prefect/flow_engine.py:1610:24: error[invalid-await] `Unknown | R@AsyncFlowRunEngine | Coroutine[Any, Any, R@AsyncFlowRunEngine]` is not awaitable
- src/prefect/flow_engine.py:1691:43: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Unknown | R@run_generator_flow_sync`
- src/prefect/flow_engine.py:1699:21: error[unresolved-attribute] Attribute `throw` is not defined on `R@run_generator_flow_sync` in union `Unknown | R@run_generator_flow_sync`
- src/prefect/flow_engine.py:1733:44: error[unresolved-attribute] Attribute `__anext__` is not defined on `R@run_generator_flow_async` in union `Unknown | R@run_generator_flow_async`
- src/prefect/flow_engine.py:1740:25: error[unresolved-attribute] Attribute `throw` is not defined on `R@run_generator_flow_async` in union `Unknown | R@run_generator_flow_async`
- src/prefect/flows.py:286:34: error[unresolved-attribute] Object of type `(**P@Flow) -> R@Flow` has no attribute `__name__`
+ src/prefect/flows.py:286:34: error[unresolved-attribute] Object of type `((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)` has no attribute `__name__`
- src/prefect/flows.py:404:68: error[unresolved-attribute] Object of type `(**P@Flow) -> R@Flow` has no attribute `__name__`
+ src/prefect/flows.py:404:68: error[unresolved-attribute] Object of type `((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)` has no attribute `__name__`
- src/prefect/flows.py:1946:21: error[no-matching-overload] No overload of function `run_coro_as_sync` matches arguments
+ src/prefect/flows.py:1886:53: warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- src/prefect/input/run_input.py:672:20: error[invalid-return-type] Return type does not match returned value: expected `T@GetAutomaticInputHandler | AutomaticRunInput[T@GetAutomaticInputHandler]`, found `T@GetAutomaticInputHandler | AutomaticRunInput[T@GetAutomaticInputHandler] | Coroutine[Any, Any, T@GetAutomaticInputHandler | AutomaticRunInput[T@GetAutomaticInputHandler]]`
+ src/prefect/input/run_input.py:672:20: error[invalid-return-type] Return type does not match returned value: expected `T@GetAutomaticInputHandler | AutomaticRunInput[T@GetAutomaticInputHandler]`, found `Unknown | Coroutine[Any, Any, Unknown]`
- src/prefect/server/api/server.py:664:16: error[invalid-argument-type] Method `__getitem__` of type `bound method dict[tuple[Settings, bool], Unknown].__getitem__(key: tuple[Settings, bool], /) -> Unknown` cannot be called with key of type `tuple[str | @Todo, bool, bool]` on object of type `dict[tuple[Settings, bool], Unknown]`
+ src/prefect/server/api/server.py:664:16: error[invalid-argument-type] Method `__getitem__` of type `bound method dict[tuple[Settings, bool], Unknown].__getitem__(key: tuple[Settings, bool], /) -> Unknown` cannot be called with key of type `tuple[str, bool, bool]` on object of type `dict[tuple[Settings, bool], Unknown]`
- src/prefect/server/api/server.py:828:5: error[invalid-assignment] Invalid subscript assignment with key of type `tuple[str | @Todo, bool, bool]` and value of type `Unknown` on object of type `dict[tuple[Settings, bool], Unknown]`
+ src/prefect/server/api/server.py:828:5: error[invalid-assignment] Invalid subscript assignment with key of type `tuple[str, bool, bool]` and value of type `Unknown` on object of type `dict[tuple[Settings, bool], Unknown]`
- Found 5457 diagnostics
+ Found 5451 diagnostics

scipy-stubs (https://github.com/scipy/scipy-stubs)
- tests/integrate/test_ode.pyi:28:1: error[type-assertion-failure] Type `@Todo` does not match asserted type `complex_ode | @Todo`
+ tests/integrate/test_ode.pyi:28:1: error[type-assertion-failure] Type `@Todo` does not match asserted type `complex_ode`

static-frame (https://github.com/static-frame/static-frame)
- static_frame/test/property/test_frame.py:337:29: error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `str | None | @Todo`
+ static_frame/test/property/test_frame.py:337:29: error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `str | None`
+ static_frame/test/unit/test_frame_iter.py:1831:13: error[unresolved-attribute] Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `@Todo | ndarray[Any, Any]`
+ static_frame/test/unit/test_frame_iter.py:1840:13: error[unresolved-attribute] Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `@Todo | ndarray[Any, Any]`
+ static_frame/test/unit/test_frame_iter.py:1846:13: error[unresolved-attribute] Attribute `to_pairs` is not defined on `ndarray[Any, Any]` in union `@Todo | ndarray[Any, Any]`
- static_frame/test/unit/test_index_hierarchy.py:360:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:360:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:363:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:363:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:366:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:366:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:369:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:369:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:375:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:375:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:378:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:378:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:381:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:381:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:483:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:483:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:487:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:487:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:504:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:504:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:531:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:531:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:546:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:546:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:547:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:547:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:548:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:548:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:549:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:549:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:565:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:565:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:581:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:581:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:581:44: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:581:44: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:582:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:582:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:585:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:585:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:585:44: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:585:44: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:586:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:586:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:589:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:589:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:589:44: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:589:44: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:590:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:590:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:598:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:598:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:600:17: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:600:17: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:605:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:605:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:609:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:609:18: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:609:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:609:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:611:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:611:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:726:35: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Any]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:726:35: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Any]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:755:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:755:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- static_frame/test/unit/test_index_hierarchy.py:767:28: error[invalid-assignment] Object of type `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements` is not assignable to `list[int]`
+ static_frame/test/unit/test_index_hierarchy.py:767:28: error[invalid-assignment] Object of type `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements` is not assignable to `list[int]`
- static_frame/test/unit/test_index_hierarchy.py:768:28: error[unresolved-attribute] Attribute `tolist` is not defined on `int`, `list[int]`, `slice[Any, Any, Any]`, `None` in union `int | integer[Any] | ndarray[Any, Any] | ... omitted 4 union elements`
+ static_frame/test/unit/test_index_hierarchy.py:768:28: error[unresolved-attribute] Attribute `tolist` is not defined on `int`, `list[int]`, `slice[Any, Any, Any]`, `None` in union `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`
- Found 1846 diagnostics
+ Found 1849 diagnostics

pip (https://github.com/pypa/pip)
- src/pip/_internal/req/req_uninstall.py:132:42: error[invalid-argument-type] Argument to function `norm_join` is incorrect: Expected `str`, found `Sized | Unknown`
+ src/pip/_internal/req/req_uninstall.py:132:42: error[invalid-argument-type] Argument to function `norm_join` is incorrect: Expected `str`, found `Unknown | Sized`
- src/pip/_internal/req/req_uninstall.py:133:40: error[invalid-argument-type] Argument to function `norm_join` is incorrect: Expected `str`, found `Sized | Unknown`
+ src/pip/_internal/req/req_uninstall.py:133:40: error[invalid-argument-type] Argument to function `norm_join` is incorrect: Expected `str`, found `Unknown | Sized`
- src/pip/_internal/req/req_uninstall.py:139:27: error[unsupported-operator] Operator `+` is not supported between objects of type `Sized | Unknown` and `LiteralString`
+ src/pip/_internal/req/req_uninstall.py:139:27: error[unsupported-operator] Operator `+` is not supported between objects of type `Unknown | Sized` and `LiteralString`

ibis (https://github.com/ibis-project/ibis)
- ibis/backends/athena/__init__.py:546:43: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute | @Todo`
+ ibis/backends/athena/__init__.py:546:43: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute`
- ibis/backends/bigquery/__init__.py:977:18: error[unsupported-operator] Operator `-` is not supported between objects of type `Schema | @Todo` and `Schema`
+ ibis/backends/bigquery/__init__.py:977:18: error[unsupported-operator] Operator `-` is not supported between two objects of type `Schema`
- ibis/backends/bigquery/__init__.py:1006:18: error[unsupported-operator] Operator `-` is not supported between objects of type `Schema | @Todo` and `Schema`
+ ibis/backends/bigquery/__init__.py:1006:18: error[unsupported-operator] Operator `-` is not supported between two objects of type `Schema`
- ibis/backends/bigquery/__init__.py:1060:18: error[unsupported-operator] Operator `-` is not supported between objects of type `Schema | @Todo` and `Schema`
+ ibis/backends/bigquery/__init__.py:1060:18: error[unsupported-operator] Operator `-` is not supported between two objects of type `Schema`
- ibis/backends/clickhouse/__init__.py:399:31: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index[Any] | ... omitted 4 union elements`, found `Attribute | @Todo`
+ ibis/backends/clickhouse/__init__.py:399:31: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index[Any] | ... omitted 4 union elements`, found `Attribute`
- ibis/backends/clickhouse/__init__.py:401:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute | @Todo`
+ ibis/backends/clickhouse/__init__.py:401:31: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute`
- ibis/backends/databricks/__init__.py:217:25: error[unresolved-attribute] Attribute `to_sqlglot_column_defs` is not defined on `None` in union `None | Schema | @Todo`
+ ibis/backends/databricks/__init__.py:217:25: error[unresolved-attribute] Attribute `to_sqlglot_column_defs` is not defined on `None` in union `None | Schema | Unknown`
- ibis/backends/impala/__init__.py:772:24: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute | @Todo`
+ ibis/backends/impala/__init__.py:772:24: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute`
- ibis/backends/impala/__init__.py:772:52: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute | @Todo`
+ ibis/backends/impala/__init__.py:772:52: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute`
- ibis/backends/mssql/__init__.py:791:50: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute | @Todo`
+ ibis/backends/mssql/__init__.py:791:50: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Attribute`
- ibis/backends/postgres/__init__.py:159:46: error[invalid-argument-type] Argument to bound method `from_records` is incorrect: Expected `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index[Any] | ... omitted 4 union elements`, found `Attribute | @Todo`
+ ibis/backends/postgres/__init__.py:159:46: error[invalid-argument-type] Argument to bound method `from_records` is incorrect: Expected `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index[Any] | ... omitted 4 union elements`, found `Attribute`
- ibis/backends/sql/compilers/duckdb.py:133:32: error[not-iterable] Object of type `(Attribute & ~AlwaysFalsy) | (@Todo & ~AlwaysFalsy)` may not be iterable
+ ibis/backends/sql/compilers/duckdb.py:133:32: error[not-iterable] Object of type `Attribute & ~AlwaysFalsy` is not iterable
- ibis/backends/sql/compilers/postgres.py:138:69: error[not-iterable] Object of type `Attribute | @Todo` may not be iterable
+ ibis/backends/sql/compilers/postgres.py:138:69: error[not-iterable] Object of type `Attribute` is not iterable
- ibis/backends/sql/compilers/risingwave.py:67:69: error[not-iterable] Object of type `Attribute | @Todo` may not be iterable
+ ibis/backends/sql/compilers/risingwave.py:67:69: error[not-iterable] Object of type `Attribute` is not iterable
- ibis/backends/tests/sql/test_select_sql.py:368:55: error[invalid-argument-type] Argument to bound method `aggregate` is incorrect: Expected `Sequence[Value] | None`, found `list[Unknown | str]`
+ ibis/backends/tests/sql/test_select_sql.py:368:55: error[invalid-argument-type] Argument to bound method `aggregate` is incorrect: Expected `Sequence[Value] | None`, found `list[str]`
- ibis/backends/tests/sql/test_select_sql.py:369:61: error[invalid-argument-type] Argument to bound method `aggregate` is incorrect: Expected `Sequence[Value] | None`, found `list[Unknown | str]`
+ ibis/backends/tests/sql/test_select_sql.py:369:61: error[invalid-argument-type] Argument to bound method `aggregate` is incorrect: Expected `Sequence[Value] | None`, found `list[str]`
- ibis/backends/tests/sql/test_select_sql.py:370:61: error[invalid-argument-type] Argument to bound method `aggregate` is incorrect: Expected `Sequence[Value] | None`, found `list[Unknown | str]`
+ ibis/backends/tests/sql/test_select_sql.py:370:61: error[invalid-argument-type] Argument to bound method `aggregate` is incorrect: Expected `Sequence[Value] | None`, found `list[str]`
- ibis/common/selectors.py:45:25: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `(Sequence[str | int] | int | slice[Any, Any, Any], /) -> Column | Table | @Todo`, found `(Overload[(what: str | int, /) -> Column, (what: slice[Any, Any, Any] | Sequence[str | int], /) -> Table]) | @Todo`
+ ibis/common/selectors.py:45:25: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `(Sequence[str | int] | int | slice[Any, Any, Any], /) -> Column | Table`, found `Overload[(what: str | int, /) -> Column, (what: slice[Any, Any, Any] | Sequence[str | int], /) -> Table]`
- ibis/expr/tests/test_format.py:213:17: error[invalid-argument-type] Argument to bound method `filter` is incorrect: Expected `BooleanValue | bool | Sequence[BooleanValue | bool] | IfAnyAll | Deferred`, found `list[Unknown | ((t) -> Unknown)]`
+ ibis/expr/tests/test_format.py:213:17: error[invalid-argument-type] Argument to bound method `filter` is incorrect: Expected `BooleanValue | bool | Sequence[BooleanValue | bool] | IfAnyAll | Deferred`, found `list[(t) -> Unknown]`
- ibis/expr/tests/test_format.py:299:24: error[invalid-argument-type] Argument to bound method `fill_null` is incorrect: Expected `Scalar | Mapping[str, Scalar]`, found `dict[Unknown | str, Unknown | int]`
+ ibis/expr/tests/test_format.py:299:24: error[invalid-argument-type] Argument to bound method `fill_null` is incorrect: Expected `Scalar | Mapping[str, Scalar]`, found `dict[str, int]`
- ibis/expr/tests/test_newrels.py:1411:52: error[invalid-argument-type] Argument to bound method `aggregate` is incorrect: Expected `Sequence[Value] | None`, found `list[Unknown | str]`
+ ibis/expr/tests/test_newrels.py:1411:52: error[invalid-argument-type] Argument to bound method `aggregate` is incorrect: Expected `Sequence[Value] | None`, found `list[str]`
+ ibis/expr/types/arrays.py:1384:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Column.__getitem__`
- ibis/expr/types/generic.py:1787:16: error[invalid-return-type] Return type does not match returned value: expected `tuple[SortKey, ...]`, found `tuple[Value | None | @Todo, ...]`
+ ibis/expr/types/generic.py:1787:16: error[invalid-return-type] Return type does not match returned value: expected `tuple[SortKey, ...]`, found `tuple[Value | None, ...]`
- ibis/expr/types/generic.py:1862:19: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:1862:19: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:1903:39: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:1903:39: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:1932:31: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:1932:31: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:1961:30: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:1961:30: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:1990:30: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:1990:30: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2026:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Unknown, Columnar]`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2026:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Unknown, Columnar]`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2027:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2027:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2065:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Unknown, Columnar]`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2065:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Unknown, Columnar]`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2066:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2066:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2124:33: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2124:33: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2197:35: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2197:35: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2197:35: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2197:35: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2227:19: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2227:19: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2378:36: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2378:36: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2412:32: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2412:32: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2527:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2527:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2581:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/generic.py:2581:13: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/generic.py:2770:16: error[invalid-return-type] Return type does not match returned value: expected `Column`, found `Scalar | @Todo`
+ ibis/expr/types/generic.py:2770:16: error[invalid-return-type] Return type does not match returned value: expected `Column`, found `Scalar`
- ibis/expr/types/generic.py:2817:16: error[invalid-return-type] Return type does not match returned value: expected `Column`, found `Scalar | @Todo`
+ ibis/expr/types/generic.py:2817:16: error[invalid-return-type] Return type does not match returned value: expected `Column`, found `Scalar`
- ibis/expr/types/joins.py:385:33: error[invalid-argument-type] Argument to function `unwrap_aliases` is incorrect: Expected `Iterator[Value]`, found `tuple[Value, ...] | @Todo`
+ ibis/expr/types/joins.py:385:33: error[invalid-argument-type] Argument to function `unwrap_aliases` is incorrect: Expected `Iterator[Value]`, found `tuple[Value, ...]`
+ ibis/expr/types/json.py:509:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Column.__getitem__`
- ibis/expr/types/logical.py:419:30: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/logical.py:419:30: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/logical.py:502:16: error[invalid-return-type] Return type does not match returned value: expected `BooleanColumn`, found `BooleanScalar | @Todo`
+ ibis/expr/types/logical.py:502:16: error[invalid-return-type] Return type does not match returned value: expected `BooleanColumn`, found `BooleanScalar`
- ibis/expr/types/logical.py:548:16: error[invalid-return-type] Return type does not match returned value: expected `BooleanColumn`, found `BooleanScalar | @Todo`
+ ibis/expr/types/logical.py:548:16: error[invalid-return-type] Return type does not match returned value: expected `BooleanColumn`, found `BooleanScalar`
+ ibis/expr/types/maps.py:437:9: error[invalid-method-override] Invalid override of method `__getitem__`: Definition is incompatible with `Column.__getitem__`
- ibis/expr/types/numeric.py:824:28: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None | @Todo`
+ ibis/expr/types/numeric.py:824:28: error[invalid-argument-type] Argument is incorrect: Expected `ibis.expr.operations.core.Value[Boolean, Any] | None`, found `ibis.expr.types.generic.Value | None`
- ibis/expr/types/numeric.py:875:28: error[

... (truncated 245 lines) ...

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 12, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-argument-type 0 8 112
invalid-method-override 41 0 0
unresolved-attribute 4 0 32
invalid-return-type 0 3 10
unsupported-operator 0 0 8
invalid-assignment 0 0 7
not-iterable 0 0 4
type-assertion-failure 1 0 2
unused-type-ignore-comment 0 3 0
Total 46 14 175

Full report with detailed diff (timing results)

@AlexWaygood
Copy link
Member

The diagnostics going away on src/aiortc/rtcsctptransport.py are fascinating. On main:

  • There's an unresolved import of pyee.asyncio, because it's not included in the listed dependencies of the project in mypy_primer
  • Which means that AsyncIOEventEmitter is inferred as Unknown in src/aiortc/rtcsctptransport.py
  • Which means that RTCSctpTransport is inferred as inheriting from Unknown
  • Which means that inbound_stream here is inferred as InboundStream | @Todo(instance attributes on class with dynamic base) rather than just InboundStream
  • Which means that message here is inferred as tuple[int, int, bytes] | @Todo(instance attribute on class with dynamic base) rather than tuple[int, int, bytes]
  • Which then means that the heterogeneous tuple unpacking here produces false positives

So, chalk this up as another win for the theory that "the gradual guarantee is really hard, and more precise type inference often actually leads to fewer false positives overall"

@AlexWaygood
Copy link
Member

And similar for the diagnostics going away on src/schemathesis/cli/ext/options.py, I think! Previously I think we inferred the type of calls to fail_on_invalid_options() as NoReturn | @Todo, which of course simplifies to @Todo. But now we just infer the return type as NoReturn, which therefore means that we understand that this function will never implicitly return None

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Love it! You could possibly include some of the examples from #23248 (comment) and #23248 (comment) as tests too, to demonstrate that this stricter type inference also fixes false positives that could otherwise arise 😃

@sharkdp
Copy link
Contributor Author

sharkdp commented Feb 12, 2026

Love it! You could possibly include some of the examples from #23248 (comment) and #23248 (comment) as tests too, to demonstrate that this stricter type inference also fixes false positives that could otherwise arise 😃

Thank you for the analysis. I agree that it's cool to see these diagnostics go away, but both scenarios seem a bit too convoluted to serve as great unit tests, IMO. Merging without these for now.

@sharkdp sharkdp merged commit e22fa4f into main Feb 12, 2026
51 checks passed
@sharkdp sharkdp deleted the david/subclass-any-methods branch February 12, 2026 19:25
carljm added a commit that referenced this pull request Feb 14, 2026
* main: (209 commits)
  [ty] Defer base inference for functional `type(...)` classes (#22792)
  flake8-executable: allow global flags in uv shebangs (EXE003) (#22582)
  [ty] Add `replace-imports-with-any` option (#23122)
  Update html comments in mdtests (#23269)
  Apply ruff formatting to mdtests (#22935)
  [ty] Exclude test-related symbols from non-first-party packages in auto-import completions
  [ty] Refactor `CursorTest` helper to support site-packages
  [ty] Qualify inlay hint edit symbol when possibly referencing another variable (#23265)
  [ty] Avoid `UnionBuilder` overhead when creating a new union from the filtered elements of an existing union (#22352)
  [ty] Refactor TypedDict key assignment validation (#23262)
  [ty] Improve Python environment path documentation (#23256)
  [ty] loop control flow analysis using loop header definitions
  Prepare for 0.15.1 (#23253)
  Remove docker-run-action (#23254)
  [ty] Allow discovering dependencies in system Python environments (#22994)
  Ensure pending suppression diagnostics are reported (#23242)
  [`isort`] support for configurable import section heading comments (#23151)
  [ty] Fix method calls on subclasses of `Any` (#23248)
  [ty] Fix bound method access on `None` (#23246)
  Make range suppression test snapshot actually useful (#23251)
  ...
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.

2 participants

Comments