Skip to content

[ty] eliminate negative intersection elements in promotion#23750

Merged
carljm merged 1 commit intomainfrom
cjm/remove-negative-intersections
Mar 6, 2026
Merged

[ty] eliminate negative intersection elements in promotion#23750
carljm merged 1 commit intomainfrom
cjm/remove-negative-intersections

Conversation

@carljm
Copy link
Contributor

@carljm carljm commented Mar 5, 2026

Summary

Avoid inferring invariant container types like list[int & ~AlwaysFalsy], preferring list[int] instead.

Also generally rename "literal promotion" to just "promotion" -- it already promoted e.g. float to int | float, so it wasn't restricted to literal types. Now it includes even more non-literal cases.

Test Plan

Added an mdtest.

Removes ~200 ecosystem hits from #23718

@carljm carljm added the ty Multi-file analysis & type inference label Mar 5, 2026
@astral-sh-bot
Copy link

astral-sh-bot bot commented Mar 5, 2026

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 87.07%. The percentage of expected errors that received a diagnostic held steady at 77.62%.

@astral-sh-bot
Copy link

astral-sh-bot bot commented Mar 5, 2026

Memory usage report

Summary

Project Old New Diff Outcome
flake8 47.91MB 47.91MB -0.00% (408.00B) ⬇️
trio 118.05MB 118.04MB -0.01% (13.88kB) ⬇️
sphinx 265.50MB 265.38MB -0.05% (129.04kB) ⬇️
prefect 693.85MB 693.42MB -0.06% (434.18kB) ⬇️

Significant changes

Click to expand detailed breakdown

flake8

Name Old New Diff Outcome
StaticClassLiteral<'db>::try_mro_ 335.35kB 335.14kB -0.06% (212.00B) ⬇️
Specialization 164.62kB 164.52kB -0.07% (112.00B) ⬇️
GenericAlias 73.41kB 73.34kB -0.10% (72.00B) ⬇️
StaticClassLiteral<'db>::try_mro_::interned_arguments 76.01kB 75.94kB -0.09% (72.00B) ⬇️
infer_scope_types_impl 1002.59kB 1002.64kB +0.01% (60.00B) ⬇️

trio

Name Old New Diff Outcome
StaticClassLiteral<'db>::try_mro_ 866.66kB 862.82kB -0.44% (3.83kB) ⬇️
Specialization 475.92kB 474.61kB -0.28% (1.31kB) ⬇️
infer_definition_types 7.59MB 7.59MB -0.01% (1.09kB) ⬇️
GenericAlias 201.80kB 201.02kB -0.38% (792.00B) ⬇️
StaticClassLiteral<'db>::try_mro_::interned_arguments 201.66kB 200.88kB -0.38% (792.00B) ⬇️
Type<'db>::apply_specialization_ 737.92kB 737.39kB -0.07% (540.00B) ⬇️
Type<'db>::try_call_dunder_get_ 1.38MB 1.38MB -0.04% (532.00B) ⬇️
is_redundant_with_impl 489.71kB 489.20kB -0.11% (528.00B) ⬇️
IntersectionType 240.65kB 240.16kB -0.20% (504.00B) ⬇️
Type<'db>::apply_specialization_::interned_arguments 645.86kB 645.39kB -0.07% (480.00B) ⬇️
Type<'db>::class_member_with_policy_ 2.00MB 2.00MB -0.02% (464.00B) ⬇️
is_redundant_with_impl::interned_arguments 556.62kB 556.27kB -0.06% (352.00B) ⬇️
infer_expression_types_impl 7.06MB 7.06MB -0.00% (348.00B) ⬇️
infer_expression_type_impl 1.44MB 1.44MB -0.02% (336.00B) ⬇️
loop_header_reachability 140.55kB 140.22kB -0.23% (336.00B) ⬇️
... 11 more

sphinx

Name Old New Diff Outcome
StaticClassLiteral<'db>::try_mro_ 2.12MB 2.11MB -0.71% (15.40kB) ⬇️
Type<'db>::apply_specialization_ 1.67MB 1.65MB -0.69% (11.72kB) ⬇️
Type<'db>::apply_specialization_::interned_arguments 1.46MB 1.45MB -0.74% (11.02kB) ⬇️
Type<'db>::try_call_dunder_get_ 4.95MB 4.94MB -0.19% (9.77kB) ⬇️
FunctionType 3.13MB 3.12MB -0.30% (9.71kB) ⬇️
Type<'db>::class_member_with_policy_ 7.56MB 7.55MB -0.12% (9.12kB) ⬇️
Specialization 1.03MB 1.02MB -0.75% (7.84kB) ⬇️
Type<'db>::class_member_with_policy_::interned_arguments 4.00MB 3.99MB -0.16% (6.40kB) ⬇️
FunctionType<'db>::signature_ 2.28MB 2.28MB -0.25% (5.82kB) ⬇️
Type<'db>::member_lookup_with_policy_ 6.12MB 6.11MB -0.06% (3.94kB) ⬇️
CallableType 1.07MB 1.07MB -0.33% (3.66kB) ⬇️
GenericAlias 455.27kB 451.83kB -0.76% (3.45kB) ⬇️
check_file_impl 5.05MB 5.05MB -0.06% (3.27kB) ⬇️
StaticClassLiteral<'db>::try_mro_::interned_arguments 489.38kB 486.35kB -0.62% (3.02kB) ⬇️
is_redundant_with_impl::interned_arguments 2.08MB 2.08MB -0.12% (2.49kB) ⬇️
... 24 more

prefect

Name Old New Diff Outcome
StaticClassLiteral<'db>::try_mro_ 6.07MB 6.00MB -1.17% (72.54kB) ⬇️
Specialization 2.52MB 2.48MB -1.25% (32.30kB) ⬇️
Type<'db>::apply_specialization_ 3.57MB 3.54MB -0.85% (31.07kB) ⬇️
Type<'db>::try_call_dunder_get_ 10.31MB 10.29MB -0.25% (26.90kB) ⬇️
Type<'db>::class_member_with_policy_ 17.12MB 17.10MB -0.15% (26.50kB) ⬇️
Type<'db>::apply_specialization_::interned_arguments 2.86MB 2.83MB -0.78% (22.73kB) ⬇️
FunctionType 8.36MB 8.34MB -0.26% (22.52kB) ⬇️
Type<'db>::class_member_with_policy_::interned_arguments 9.21MB 9.19MB -0.21% (19.70kB) ⬇️
is_redundant_with_impl 5.55MB 5.54MB -0.30% (16.79kB) ⬇️
GenericAlias 1.17MB 1.16MB -1.36% (16.38kB) ⬇️
StaticClassLiteral<'db>::try_mro_::interned_arguments 1.40MB 1.39MB -1.00% (14.34kB) ⬇️
is_redundant_with_impl::interned_arguments 5.37MB 5.36MB -0.24% (13.23kB) ⬇️
check_file_impl 17.26MB 17.25MB -0.07% (13.12kB) ⬇️
FunctionType<'db>::signature_ 3.84MB 3.83MB -0.33% (12.92kB) ⬇️
Type<'db>::member_lookup_with_policy_ 15.27MB 15.26MB -0.07% (11.22kB) ⬇️
... 31 more

@astral-sh-bot
Copy link

astral-sh-bot bot commented Mar 5, 2026

mypy_primer results

Changes were detected when running on open source projects
spack (https://github.com/spack/spack)
- lib/spack/spack/cmd/mirror.py:380:59: error[invalid-argument-type] Argument to function `comma_or` is incorrect: Expected `Sequence[str]`, found `list[Unknown & ~AlwaysFalsy] | reversed[str]`
+ lib/spack/spack/cmd/mirror.py:380:59: error[invalid-argument-type] Argument to function `comma_or` is incorrect: Expected `Sequence[str]`, found `list[Unknown] | reversed[str]`
- lib/spack/spack/concretize.py:119:10: error[no-matching-overload] No overload of bound method `get` matches arguments
- lib/spack/spack/fetch_strategy.py:1562:17: error[no-matching-overload] No overload of bound method `setdefault` matches arguments
- lib/spack/spack/repo.py:717:13: error[invalid-argument-type] Argument to function `from_descriptors` is incorrect: Expected `dict[str, Any] | None`, found `dict[str & ~Literal["all"], Any]`
- lib/spack/spack/solver/asp.py:3353:12: error[invalid-return-type] Return type does not match returned value: expected `list[str]`, found `list[str & ~AlwaysFalsy]`
- lib/spack/spack/test/cmd/env.py:1754:17: error[invalid-argument-type] Argument to bound method `extend` is incorrect: Expected `Iterable[Unknown & ~AlwaysFalsy]`, found `list[str]`
- Found 4421 diagnostics
+ Found 4416 diagnostics

pip (https://github.com/pypa/pip)
- src/pip/_internal/req/req_file.py:270:39: error[invalid-argument-type] Argument to bound method `update_index_urls` is incorrect: Expected `list[str]`, found `list[str] | list[Unknown] | list[Any & ~AlwaysFalsy]`
- src/pip/_internal/req/req_file.py:274:13: error[invalid-argument-type] Argument is incorrect: Expected `list[str]`, found `list[str] | list[Unknown] | list[Any & ~AlwaysFalsy]`
- src/pip/_vendor/rich/table.py:552:25: error[invalid-assignment] Invalid subscript assignment with key of type `int` and value of type `int | Unknown` on object of type `list[int & ~AlwaysFalsy]`
- src/pip/_vendor/rich/table.py:557:17: error[invalid-argument-type] Argument to bound method `_collapse_widths` is incorrect: Expected `list[int]`, found `list[int & ~AlwaysFalsy]`
- src/pip/_vendor/rich/table.py:582:69: error[invalid-argument-type] Argument to function `ratio_distribute` is incorrect: Expected `list[int]`, found `list[int & ~AlwaysFalsy] | list[int]`
- src/pip/_vendor/rich/table.py:585:16: error[invalid-return-type] Return type does not match returned value: expected `list[int]`, found `list[int & ~AlwaysFalsy] | list[int] | list[Unknown]`
- Found 643 diagnostics
+ Found 637 diagnostics

werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/security.py:199:22: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `str & ~AlwaysFalsy`, found `str & ~Literal[".."]`
- Found 388 diagnostics
+ Found 387 diagnostics

scrapy (https://github.com/scrapy/scrapy)
- scrapy/utils/python.py:266:16: error[invalid-return-type] Return type does not match returned value: expected `Iterable[_KT@without_none_values]`, found `dict[object, ~None]`
+ scrapy/utils/python.py:266:16: error[invalid-return-type] Return type does not match returned value: expected `Iterable[_KT@without_none_values]`, found `dict[object, object]`

isort (https://github.com/pycqa/isort)
- isort/main.py:935:9: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["order_by_type"]` and value of type `Literal[False]` on object of type `dict[str, Any & ~AlwaysFalsy]`
- isort/main.py:938:9: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["follow_links"]` and value of type `Literal[False]` on object of type `dict[str, Any & ~AlwaysFalsy]`
- isort/main.py:945:13: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["float_to_top"]` and value of type `Literal[False]` on object of type `dict[str, Any & ~AlwaysFalsy]`
- Found 36 diagnostics
+ Found 33 diagnostics

alerta (https://github.com/alerta/alerta)
- alerta/database/backends/mongodb/base.py:384:13: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["customer"]` and value of type `dict[str, Unknown & ~AlwaysFalsy]` on object of type `dict[str, list[dict[str, dict[str, Unknown]]]]`
+ alerta/database/backends/mongodb/base.py:384:13: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["customer"]` and value of type `dict[str, Unknown]` on object of type `dict[str, list[dict[str, dict[str, Unknown]]]]`
- alerta/database/backends/mongodb/base.py:384:13: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["customer"]` and value of type `dict[str, Unknown & ~AlwaysFalsy]` on object of type `dict[str, list[dict[str, Unknown]]]`
+ alerta/database/backends/mongodb/base.py:384:13: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["customer"]` and value of type `dict[str, Unknown]` on object of type `dict[str, list[dict[str, Unknown]]]`

pylint (https://github.com/pycqa/pylint)
- pylint/checkers/classes/class_checker.py:120:32: error[invalid-argument-type] Argument is incorrect: Expected `list[str]`, found `list[Unknown & ~Literal["self"]]`
- Found 221 diagnostics
+ Found 220 diagnostics

rich (https://github.com/Textualize/rich)
- rich/table.py:553:25: error[invalid-assignment] Invalid subscript assignment with key of type `int` and value of type `int | Unknown` on object of type `list[int & ~AlwaysFalsy]`
- rich/table.py:558:17: error[invalid-argument-type] Argument to bound method `_collapse_widths` is incorrect: Expected `list[int]`, found `list[int & ~AlwaysFalsy]`
- rich/table.py:583:69: error[invalid-argument-type] Argument to function `ratio_distribute` is incorrect: Expected `list[int]`, found `list[int & ~AlwaysFalsy] | list[int]`
- rich/table.py:586:16: error[invalid-return-type] Return type does not match returned value: expected `list[int]`, found `list[int & ~AlwaysFalsy] | list[int] | list[Unknown]`
- Found 360 diagnostics
+ Found 356 diagnostics

dulwich (https://github.com/dulwich/dulwich)
- dulwich/porcelain/__init__.py:3644:41: error[invalid-argument-type] Argument to function `_make_branch_ref` is incorrect: Expected `str | bytes`, found `(Sequence[str | bytes] & ~Top[list[Unknown]] & ~tuple[object, ...]) | bytes`
+ dulwich/porcelain/__init__.py:3644:41: error[invalid-argument-type] Argument to function `_make_branch_ref` is incorrect: Expected `str | bytes`, found `Sequence[str | bytes] | bytes`
- dulwich/subtree.py:248:44: error[invalid-argument-type] Argument to function `build_tree_recursive` is incorrect: Expected `list[bytes]`, found `list[bytes & ~AlwaysFalsy] & ~AlwaysFalsy`
- Found 232 diagnostics
+ Found 231 diagnostics

PyGithub (https://github.com/PyGithub/PyGithub)
- github/GithubObject.py:620:85: error[invalid-argument-type] Argument to bound method `requestJsonAndCheck` is incorrect: Expected `dict[str, str] | None`, found `Unknown | dict[str, str & ~AlwaysFalsy] | None`
- Found 327 diagnostics
+ Found 326 diagnostics

mkosi (https://github.com/systemd/mkosi)
- mkosi/config.py:4695:13: error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str & ~AlwaysFalsy, ConfigSetting[Any]].__getitem__(key: str & ~AlwaysFalsy, /) -> ConfigSetting[Any]` cannot be called with key of type `str` on object of type `dict[str & ~AlwaysFalsy, ConfigSetting[Any]]`
- mkosi/config.py:4740:66: error[invalid-argument-type] Argument to bound method `get` is incorrect: Expected `str & ~AlwaysFalsy`, found `str & ~Literal["%"]`
- Found 46 diagnostics
+ Found 44 diagnostics

poetry (https://github.com/python-poetry/poetry)
- tests/mixology/version_solver/test_basic_graph.py:132:41: error[invalid-argument-type] Argument to function `check_solver_result` is incorrect: Expected `dict[str, str] | None`, found `None | dict[str, str & ~Literal["error"]]`
- Found 988 diagnostics
+ Found 987 diagnostics

schemathesis (https://github.com/schemathesis/schemathesis)
- src/schemathesis/core/jsonschema/bundler.py:125:29: error[no-matching-overload] No overload of bound method `update` matches arguments
- src/schemathesis/core/jsonschema/bundler.py:126:36: error[invalid-return-type] Return type does not match returned value: expected `dict[str, Any] | bool | list[dict[str, Any] | bool]`, found `dict[str & ~Literal["$ref"], dict[str, Any] | bool | list[dict[str, Any] | bool]]`
- src/schemathesis/core/jsonschema/bundler.py:180:27: error[invalid-argument-type] Argument is incorrect: Expected `dict[str, Any] | bool`, found `dict[str & ~Literal["$ref"], Any]`
- src/schemathesis/specs/openapi/stateful/dependencies/naming.py:80:42: error[invalid-argument-type] Argument to bound method `index` is incorrect: Expected `str & ~AlwaysFalsy`, found `str`
- Found 341 diagnostics
+ Found 337 diagnostics

nox (https://github.com/wntrblm/nox)
- nox/manifest.py:182:25: error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[(Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)]`, found `Unknown | Sequence[str]`
- Found 24 diagnostics
+ Found 23 diagnostics

urllib3 (https://github.com/urllib3/urllib3)
- src/urllib3/util/response.py:88:34: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[MessageDefect]`, found `list[MessageDefect & ~StartBoundaryNotFoundDefect & ~MultipartInvariantViolationDefect]`
- Found 280 diagnostics
+ Found 279 diagnostics

pydantic (https://github.com/pydantic/pydantic)
- pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | ((dict[str, Divergent], type[Any], /) -> None)` on TypedDict `CoreMetadata`: value of type `dict[object, object]`
+ pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | ((dict[str, int | float | str | ... omitted 3 union elements], type[Any], /) -> None)` on TypedDict `CoreMetadata`: value of type `dict[object, object]`
- pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`, found `dict[str, Divergent] | dict[Never, Never] | (((dict[str, Divergent], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None`
+ pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`, found `dict[str, int | float | str | ... omitted 3 union elements] | dict[Never, Never] | (((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None`

pandera (https://github.com/pandera-dev/pandera)
- pandera/io/pandas_io.py:268:17: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["options"]` and value of type `dict[Unknown, Unknown]` on object of type `dict[str, Unknown & ~Top[dict[Unknown, Unknown]]]`
- pandera/io/pandas_io.py:341:17: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["options"]` and value of type `dict[Unknown, Unknown]` on object of type `dict[str, Unknown & ~Top[dict[Unknown, Unknown]]]`
- Found 1646 diagnostics
+ Found 1644 diagnostics

schema_salad (https://github.com/common-workflow-language/schema_salad)
- schema_salad/dlang_codegen.py:218:25: error[unsupported-operator] Operator `+=` is not supported between objects of type `list[str & ~Literal["None"]]` and `list[str]`
- schema_salad/metaschema.py:1001:25: error[invalid-assignment] Invalid subscript assignment with key of type `str` and value of type `Any` on object of type `dict[str & ~AlwaysFalsy, Any & ~CommentedMap & ~Top[MutableMapping[Unknown, Unknown]]]`
- schema_salad/python_codegen_support.py:998:25: error[invalid-assignment] Invalid subscript assignment with key of type `str` and value of type `Any` on object of type `dict[str & ~AlwaysFalsy, Any & ~CommentedMap & ~Top[MutableMapping[Unknown, Unknown]]]`
- Found 373 diagnostics
+ Found 370 diagnostics

psycopg (https://github.com/psycopg/psycopg)
- psycopg/psycopg/sql.py:341:23: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `Any & ~Template`, found `Self@join`
- tests/pq/test_pgconn.py:694:5: error[no-matching-overload] No overload of bound method `update` matches arguments
- Found 671 diagnostics
+ Found 669 diagnostics

vision (https://github.com/pytorch/vision)
- torchvision/utils.py:763:14: error[invalid-assignment] Object of type `list[str | tuple[int, int, int] | tuple[int, int, int, int] | (Unknown & ~str)]` is not assignable to `None | str | tuple[int, int, int] | list[str | tuple[int, int, int]]`
+ torchvision/utils.py:763:14: error[invalid-assignment] Object of type `list[str | tuple[int, int, int] | tuple[int, int, int, int] | Unknown]` is not assignable to `None | str | tuple[int, int, int] | list[str | tuple[int, int, int]]`

optuna (https://github.com/optuna/optuna)
- tests/gp_tests/test_search_space.py:158:9: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `dict[str, BaseDistribution]`, found `dict[str, (FloatDistribution & ~CategoricalDistribution) | (IntDistribution & ~CategoricalDistribution)]`
+ tests/gp_tests/test_search_space.py:158:9: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `dict[str, BaseDistribution]`, found `dict[str, FloatDistribution | IntDistribution]`
- tests/test_cli.py:156:9: error[no-matching-overload] No overload of function `check_output` matches arguments
- tests/test_cli.py:276:9: error[no-matching-overload] No overload of function `check_output` matches arguments
- tests/test_cli.py:368:9: error[no-matching-overload] No overload of function `check_output` matches arguments
- tests/test_cli.py:1116:17: error[invalid-argument-type] Argument to function `check_call` is incorrect: Expected `Mapping[bytes, str | bytes | PathLike[str] | PathLike[bytes]] | Mapping[str, str | bytes | PathLike[str] | PathLike[bytes]] | None`, found `dict[str & ~Literal["OPTUNA_STORAGE"], str]`
- Found 611 diagnostics
+ Found 607 diagnostics

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/server_selectors.py:79:46: error[invalid-argument-type] Argument to bound method `with_server_descriptions` is incorrect: Expected `list[ServerDescription]`, found `list[(Unknown & ~AlwaysFalsy) | (ServerDescription & ~AlwaysFalsy)] | list[Unknown]`
- Found 431 diagnostics
+ Found 430 diagnostics

mypy (https://github.com/python/mypy)
- mypy/checker.py:4479:37: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[Type]`, found `list[(Type & ~AlwaysFalsy) | UninhabitedType]`
- mypy/checker.py:6206:20: error[invalid-return-type] Return type does not match returned value: expected `tuple[list[Type], list[Type]]`, found `tuple[list[Type], list[TypeVarType & ~NoneType] | list[Unknown]]`
+ mypy/checker.py:6206:20: error[invalid-return-type] Return type does not match returned value: expected `tuple[list[Type], list[Type]]`, found `tuple[list[Type], list[TypeVarType] | list[Unknown]]`
- mypy/checker.py:6551:20: error[invalid-return-type] Return type does not match returned value: expected `tuple[dict[Expression, Type], dict[Expression, Type]]`, found `tuple[dict[Expression & ~ComparisonExpr & ~AssignmentExpr, ProperType], dict[Expression & ~ComparisonExpr & ~AssignmentExpr, ProperType]]`
+ mypy/checker.py:6551:20: error[invalid-return-type] Return type does not match returned value: expected `tuple[dict[Expression, Type], dict[Expression, Type]]`, found `tuple[dict[Expression, ProperType], dict[Expression, ProperType]]`
- mypy/checker.py:6564:16: error[invalid-return-type] Return type does not match returned value: expected `tuple[dict[Expression, Type], dict[Expression, Type]]`, found `tuple[dict[Expression & ~ComparisonExpr & ~AssignmentExpr, ProperType], dict[Expression & ~ComparisonExpr & ~AssignmentExpr, ProperType]]`
+ mypy/checker.py:6564:16: error[invalid-return-type] Return type does not match returned value: expected `tuple[dict[Expression, Type], dict[Expression, Type]]`, found `tuple[dict[Expression, ProperType], dict[Expression, ProperType]]`
- mypy/checker.py:8460:9: error[invalid-assignment] Invalid subscript assignment with key of type `int` and value of type `ProperType | Unknown` on object of type `list[ProperType & ~UnionType]`
- mypy/dmypy_server.py:902:42: error[invalid-argument-type] Argument to bound method `add_explicitly_new` is incorrect: Expected `list[tuple[str, str]]`, found `list[tuple[Unknown | (str & ~AlwaysFalsy), (Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)]]`
- mypy/dmypy_server.py:913:16: error[invalid-return-type] Return type does not match returned value: expected `tuple[list[tuple[str, str]], list[tuple[str, str]]]`, found `tuple[list[tuple[Unknown | (str & ~AlwaysFalsy), (Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)]], list[Unknown]]`
- mypy/fastparse.py:1181:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[tuple[str, Expression]] | None`, found `list[tuple[str & ~AlwaysFalsy, Any]]`
- mypy/nativeparse.py:726:9: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[tuple[str, Expression]] | None`, found `list[tuple[Unknown & ~Literal["metaclass"], Unknown]] | None`
- mypy/semanal_typeargs.py:205:31: error[invalid-argument-type] Argument to bound method `check_type_var_values` is incorrect: Expected `list[Type]`, found `(Unknown & list[Type] & ~AlwaysFalsy) | list[Unknown & ~TypeVarType]`
- mypyc/codegen/emitmodule.py:305:33: error[invalid-argument-type] Argument to function `load_scc_from_cache` is incorrect: Expected `list[MypyFile]`, found `list[(Unknown & ~AlwaysFalsy) | (MypyFile & ~AlwaysFalsy)] & ~AlwaysFalsy`
- mypyc/codegen/emitmodule.py:307:40: error[invalid-argument-type] Argument to function `compile_scc_to_ir` is incorrect: Expected `list[MypyFile]`, found `list[(Unknown & ~AlwaysFalsy) | (MypyFile & ~AlwaysFalsy)] & ~AlwaysFalsy`
- mypyc/irbuild/ll_builder.py:1703:56: error[invalid-argument-type] Argument to bound method `gen_method_call` is incorrect: Expected `list[Value]`, found `list[Value & ~AlwaysFalsy] | list[Unknown]`
- mypyc/transform/spill.py:31:44: error[invalid-argument-type] Argument to function `spill_regs` is incorrect: Expected `set[Value]`, found `set[(Unknown & ~Register) | (Value & ~Register)]`
- Found 1774 diagnostics
+ Found 1763 diagnostics

meson (https://github.com/mesonbuild/meson)
- mesonbuild/compilers/mixins/visualstudio.py:186:16: error[invalid-return-type] Return type does not match returned value: expected `list[str]`, found `list[str] | list[str & ~Literal["/Gw"]]`
- mesonbuild/dependencies/detect.py:190:16: error[invalid-return-type] Return type does not match returned value: expected `list[DependencyCandidate[ExternalDependency]]`, found `list[DependencyCandidate[Unknown]] | list[(((Environment, DependencyObjectKWs, /) -> list[DependencyCandidate[ExternalDependency]]) & DependencyCandidate[object] & ~type) | (DependencyCandidate[Unknown] & ~type)] | list[DependencyCandidate[ExternalDependency]]`
+ mesonbuild/dependencies/detect.py:190:16: error[invalid-return-type] Return type does not match returned value: expected `list[DependencyCandidate[ExternalDependency]]`, found `list[DependencyCandidate[Unknown]] | list[(((Environment, DependencyObjectKWs, /) -> list[DependencyCandidate[ExternalDependency]]) & DependencyCandidate[object]) | DependencyCandidate[Unknown]] | list[DependencyCandidate[ExternalDependency]]`
- mesonbuild/dependencies/mpi.py:72:31: error[invalid-argument-type] Argument to bound method `extend` is incorrect: Expected `Iterable[str & ~AlwaysFalsy]`, found `list[str]`
- mesonbuild/dependencies/mpi.py:74:31: error[invalid-argument-type] Argument to bound method `extend` is incorrect: Expected `Iterable[str & ~AlwaysFalsy]`, found `list[str]`
- mesonbuild/dependencies/mpi.py:76:27: error[invalid-assignment] Invalid assignment to key "tools" with declared type `list[str]` on TypedDict `DependencyObjectKWs`: value of type `list[str & ~AlwaysFalsy]`
- mesonbuild/dependencies/python.py:488:75: error[invalid-argument-type] Argument to function `__init__` is incorrect: Expected `list[str] | None`, found `list[(Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)] | list[Unknown]`
- mesonbuild/interpreter/interpreter.py:1798:46: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[str]`, found `list[str & ~AlwaysFalsy]`
- mesonbuild/interpreter/interpreter.py:3482:19: error[no-matching-overload] No overload of bound method `source_strings_to_files` matches arguments
- mesonbuild/mdevenv.py:247:25: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `str & ~AlwaysFalsy`, found `str`
- mesonbuild/mdevenv.py:259:29: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `str & ~AlwaysFalsy`, found `str`
- mesonbuild/mdevenv.py:285:33: error[invalid-argument-type] Argument to function `execvpe` is incorrect: Expected `tuple[str | bytes | PathLike[str] | PathLike[bytes], ...] | list[bytes] | list[str] | ... omitted 5 union elements`, found `(Any & ~AlwaysFalsy) | list[str & ~AlwaysFalsy] | list[str]`
- mesonbuild/scripts/env2mfile.py:350:13: error[invalid-assignment] Invalid subscript assignment with key of type `str` and value of type `list[str & ~AlwaysFalsy] | list[str]` on object of type `dict[str, list[str]]`
- mesonbuild/scripts/symbolextractor.py:198:23: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `str & ~AlwaysFalsy`, found `str`
- Found 2371 diagnostics
+ Found 2359 diagnostics

cibuildwheel (https://github.com/pypa/cibuildwheel)
- cibuildwheel/options.py:903:17: error[invalid-argument-type] Argument is incorrect: Expected `list[str]`, found `list[(Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)]`
- Found 28 diagnostics
+ Found 27 diagnostics

apprise (https://github.com/caronc/apprise)
- apprise/plugins/discord.py:417:40: error[invalid-argument-type] Argument to bound method `_send` is incorrect: Expected `dict[str, str] | None`, found `dict[str, (Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)] | None`
- apprise/plugins/discord.py:456:44: error[invalid-argument-type] Argument to bound method `_send` is incorrect: Expected `dict[str, str] | None`, found `dict[str, (Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)] | None`
- apprise/plugins/fluxer.py:496:40: error[invalid-argument-type] Argument to bound method `_send` is incorrect: Expected `dict[str, str] | None`, found `dict[str, (Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)] | None`
- apprise/plugins/fluxer.py:507:48: error[invalid-argument-type] Argument to bound method `_send` is incorrect: Expected `dict[str, str] | None`, found `dict[str, (Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)] | None`
- apprise/plugins/fluxer.py:535:44: error[invalid-argument-type] Argument to bound method `_send` is incorrect: Expected `dict[str, str] | None`, found `dict[str, (Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy)] | None`
- apprise/plugins/fortysixelks.py:161:23: error[invalid-assignment] Object of type `list[(LiteralString & ~Literal[""]) | None]` is not assignable to `Iterable[str] | None`
+ apprise/plugins/fortysixelks.py:161:23: error[invalid-assignment] Object of type `list[LiteralString | None]` is not assignable to `Iterable[str] | None`
- Found 3583 diagnostics
+ Found 3578 diagnostics

cloud-init (https://github.com/canonical/cloud-init)
- cloudinit/config/cc_disk_setup.py:1429:27: error[invalid-argument-type] Argument to bound method `extend` is incorrect: Expected `Iterable[str & ~AlwaysFalsy]`, found `list[str | (Unknown & ~AlwaysFalsy)]`
- cloudinit/config/cc_disk_setup.py:1445:19: error[invalid-argument-type] Argument to function `subp` is incorrect: Expected `str | bytes | list[str] | list[bytes]`, found `Unknown | list[str & ~AlwaysFalsy]`
- cloudinit/net/network_state.py:967:5: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["routes"]` and value of type `list[Unknown]` on object of type `dict[Unknown, Unknown & ~AlwaysFalsy]`
- cloudinit/util.py:2594:38: error[invalid-assignment] Object of type `list[Unknown & ~AlwaysFalsy]` is not assignable to `list[str] | None`
- cloudinit/util.py:2702:38: error[invalid-assignment] Object of type `list[(str & ~AlwaysFalsy) | (Any & ~AlwaysFalsy)]` is not assignable to `list[str] | None`
- Found 1315 diagnostics
+ Found 1310 diagnostics

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/ext/napoleon/docstring.py:154:12: error[invalid-return-type] Return type does not match returned value: expected `list[str]`, found `list[str & ~AlwaysFalsy]`
- Found 406 diagnostics
+ Found 405 diagnostics

freqtrade (https://github.com/freqtrade/freqtrade)
- freqtrade/rpc/rpc.py:1631:49: error[invalid-argument-type] Argument to bound method `_ws_all_analysed_dataframes` is incorrect: Expected `list[str]`, found `list[str & ~AlwaysFalsy] | list[str]`
- Found 669 diagnostics
+ Found 668 diagnostics

prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-aws/prefect_aws/credentials.py:207:17: error[invalid-assignment] Invalid subscript assignment with key of type `Literal["RoleSessionName"]` and value of type `str` on object of type `dict[str, str & ~AlwaysFalsy]`
- src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py:1126:13: error[invalid-argument-type] Argument to function `_get_container` is incorrect: Expected `list[dict[str, Any]]`, found `list[Any & ~AlwaysFalsy]`
- src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py:1141:64: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `Any & ~AlwaysFalsy`, found `dict[str, Any]`
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:62:21: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `str & ~Literal["dbt"]`, found `Path | str`
+ src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:62:21: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `str`, found `Path | str`
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:66:25: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `str & ~Literal["dbt"]`, found `Path`
+ src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:66:25: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `str`, found `Path`
- src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:70:29: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `str & ~Literal["dbt"]`, found `str`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `PrefectDbtSettings | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `PrefectDbtSettings | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DbtExecutor | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DbtExecutor | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `ExecutionMode`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `ExecutionMode`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str | int | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str | int | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `type | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `type | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `CacheConfig | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `CacheConfig | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `TestStrategy`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `TestStrategy`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_per_node.py:123:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `PrefectDbtSettings | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `PrefectDbtSettings | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DbtExecutor | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DbtExecutor | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `ExecutionMode`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `ExecutionMode`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str | int | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str | int | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `type | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `type | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `CacheConfig | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `CacheConfig | None`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `TestStrategy`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `TestStrategy`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:109:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode | <class 'ThreadPoolTaskRunner'>`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `PrefectDbtSettings | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `PrefectDbtSettings | None`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DbtExecutor | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DbtExecutor | None`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int | None`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Path | None`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `ExecutionMode`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `ExecutionMode`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str | int | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str | int | None`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `type | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `type | None`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `CacheConfig | None`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `CacheConfig | None`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `TestStrategy`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `TestStrategy`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | (Unknown & ~None) | ExecutionMode`
+ src/integrations/prefect-dbt/tests/core/test_orchestrator_test_strategies.py:129:39: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `MagicMock | Path | Unknown | ExecutionMode`
- src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/credentials.py:150:13: error[invalid-argument-type] Argument to bound method `create` is incorrect: Expected `str`, found `str | (Any & ~None) | int | dict[str, str]`
+ src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/credentials.py:150:13: error[invalid-argument-type] Argument to bound method `create` is incorrect: Expected `str`, found `str | Any | int | dict[str, str]`
- src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/credentials.py:150:13: error[invalid-argument-type] Argument to bound method `create` is incorrect: Expected `str | None`, found `str | (Any & ~None) | int | dict[str, str]`
+ src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/credentials.py:150:13: error[invalid-argument-type] Argument to bound method `create` is incorrect: Expected `str | None`, found `str | Any | int | dict[str, str]`
- src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/credentials.py:150:13: error[invalid-argument-type] Argument to bound method `create` is incorrect: Expected `str | None`, fou

... (truncated 317 lines) ...

@astral-sh-bot
Copy link

astral-sh-bot bot commented Mar 5, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-argument-type 0 132 68
invalid-assignment 0 44 9
invalid-return-type 0 19 11
unresolved-attribute 0 1 12
no-matching-overload 0 9 0
unsupported-operator 0 2 5
Total 0 207 105

Full report with detailed diff (timing results)

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 5, 2026

Merging this PR will not alter performance

✅ 26 untouched benchmarks
⏩ 30 skipped benchmarks1


Comparing cjm/remove-negative-intersections (2daa04c) with main (7d8c642)

Open in CodSpeed

Footnotes

  1. 30 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.

Base automatically changed from cjm/remove-container-literal-unknown to main March 5, 2026 23:40
@carljm carljm force-pushed the cjm/remove-negative-intersections branch from 620bdc3 to 2daa04c Compare March 5, 2026 23:47
@carljm carljm marked this pull request as ready for review March 6, 2026 00:00
@astral-sh-bot astral-sh-bot bot requested a review from oconnor663 March 6, 2026 00:00
@charliermarsh
Copy link
Member

I think you could plausibly split the rename into its own PR, but defer to you.

@carljm
Copy link
Contributor Author

carljm commented Mar 6, 2026

I think you could plausibly split the rename into its own PR, but defer to you.

Yeah, probably should have for ease of review. But I didn't, doesn't seem to make sense to do it now.

@carljm carljm merged commit 94c0a20 into main Mar 6, 2026
51 checks passed
@carljm carljm deleted the cjm/remove-negative-intersections branch March 6, 2026 00:16
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.

4 participants