Ecosystem report

Old: main (merge base) 0f18a08a New: 22088/merge 32d7f247
Lint Rule Removed Added Changed
Total 22 27 41
invalid-argument-type 8 2 16
invalid-assignment 0 8 8
invalid-return-type 5 2 7
unsupported-operator 2 11 1
unused-ignore-comment 6 1 0
invalid-await 0 0 6
possibly-missing-attribute 1 2 3
unresolved-attribute 0 1 0
Project Removed Added Changed
Total 22 27 41
colour 12 5 2
prefect 0 1 17
sympy 0 12 0
psycopg 0 0 10
xarray 5 0 0
core 1 2 0
dd-trace-py 0 0 3
python-htmlgen 0 3 0
pwndbg 0 0 2
rich 0 0 2
static-frame 1 0 1
Tanjun 0 0 1
aiohttp 0 1 0
apprise 0 0 1
archinstall 1 0 0
bidict 0 1 0
hydpy 1 0 0
pandas-stubs 0 1 0
setuptools 0 0 1
spack 0 1 0

Tanjun (https://github.com/FasterSpeeding/Tanjun)

tanjun/dependencies/data.py

[error] invalid-return-type - :347 -
Old: Return type does not match returned value: expected `_T@cached_inject`, found `Coroutine[Any, Any, _T@cached_inject | Coroutine[Any, Any, _T@cached_inject]] | _T@cached_inject`
New: Return type does not match returned value: expected `_T@cached_inject`, found `_T@cached_inject | Coroutine[Any, Any, _T@cached_inject | Coroutine[Any, Any, _T@cached_inject]]`

aiohttp (https://github.com/aio-libs/aiohttp)

aiohttp/web_response.py

[error] invalid-argument-type - :647:34 - Argument to bound method `encode` is incorrect: Expected `str`, found `str | None`

apprise (https://github.com/caronc/apprise)

apprise/attachment/base.py

[error] invalid-argument-type - :248 -
Old: Argument to function `guess_type` is incorrect: Expected `str | PathLike[str]`, found `Unknown | str | None`
New: Argument to function `guess_type` is incorrect: Expected `str | PathLike[str]`, found `Unknown | None | str`

archinstall (https://github.com/archlinux/archinstall)

archinstall/lib/profile/profiles_handler.py

[error] invalid-return-type - :144:10 - Return type does not match returned value: expected `list[Profile]`, found `Unknown | Divergent | list[Profile] | None`

bidict (https://github.com/jab/bidict)

bidict/_base.py

[error] invalid-assignment - :200:9 - Object of type `ReferenceType[BidictBase[VT@BidictBase, KT@BidictBase] | Self@inverse]` is not assignable to attribute `_invweak` of type `ReferenceType[BidictBase[VT@BidictBase, KT@BidictBase]] | None`

colour (https://github.com/colour-science/colour)

colour/colorimetry/tristimulus_values.py

[error] invalid-argument-type - :1070:23 - Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]] | property`
[error] invalid-argument-type - :1077:31 - Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]] | property`

colour/colorimetry/spectrum.py

[error] invalid-return-type - :815:16 - Return type does not match returned value: expected `ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]`, found `Unknown | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]] | property`
[error] invalid-return-type - :839:16 - Return type does not match returned value: expected `ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]`, found `Unknown | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]] | property`
[error] unsupported-operator - :1603:43 - Operator `>=` is not supported between objects of type `Unknown | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]] | property` and `Unknown | int | float`
[error] unsupported-operator - :1603:65 - Operator `<=` is not supported between objects of type `Unknown | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]] | property` and `Unknown | int | float`

colour/colorimetry/tests/test_spectrum.py

[error] invalid-argument-type - :1681:13 - Argument to bound method `__init__` is incorrect: Expected `_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | ... omitted 8 union elements`, found `Unknown | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]] | property`
[error] invalid-argument-type - :1691:13 - Argument to bound method `__init__` is incorrect: Expected `_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | ... omitted 8 union elements`, found `Unknown | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]] | property`

colour/io/tm2714.py

[error] invalid-argument-type - :1638:36 - Argument to function `tstack` is incorrect: Expected `_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | ... omitted 5 union elements`, found `list[Unknown | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]] | property]`

colour/utilities/network.py

[error] invalid-assignment - :249:9 - Object of type `Self@parent | None` is not assignable to attribute `_parent` of type `Self@__init__ | None`
[error] invalid-assignment - :290:9 - Object of type `list[Self@children]` is not assignable to attribute `_children` of type `list[Self@__init__]`
[error] invalid-assignment - :1719:9 - Object of type `Self@add_node` is not assignable to attribute `_parent` of type `Self@__init__ | None`
[error] invalid-return-type - :232 -
Old: Return type does not match returned value: expected `Self@parent | None`, found `Unknown | Self@parent | None | Self@__init__`
New: Return type does not match returned value: expected `Self@parent | None`, found `Self@__init__ | None`
[error] invalid-return-type - :267 -
Old: Return type does not match returned value: expected `list[Self@children]`, found `Unknown | list[Self@children] | list[Self@__init__]`
New: Return type does not match returned value: expected `list[Self@children]`, found `list[Self@__init__]`
[error] invalid-argument-type - :1718:31 - Argument to bound method `append` is incorrect: Expected `Self@children`, found `PortNode`
[error] invalid-argument-type - :1772:31 - Argument to bound method `remove` is incorrect: Expected `Self@children`, found `PortNode`
[warning] possibly-missing-attribute - :1814:41 - Attribute `edges` may be missing on object of type `Unknown | Self@children | Self@__init__`
[error] unresolved-attribute - :1814:41 - Object of type `Self@__init__` has no attribute `edges`

colour/utilities/tests/test_network.py

[error] invalid-assignment - :1080:9 - Object of type `PortGraph` is not assignable to attribute `_parent` of type `Self@__init__ | None`

core (https://github.com/home-assistant/core)

homeassistant/components/manual_mqtt/alarm_control_panel.py

[error] invalid-return-type - :321:24 - Return type does not match returned value: expected `AlarmControlPanelState`, found `Unknown | str`
[error] invalid-return-type - :328:16 - Return type does not match returned value: expected `AlarmControlPanelState`, found `Unknown | str`

homeassistant/util/variance.py

[error] invalid-return-type - :47:12 - Return type does not match returned value: expected `(**_P@ignore_variance) -> _R@ignore_variance`, found `_Wrapped[_P@ignore_variance, _R@ignore_variance | int | float | datetime, _P@ignore_variance, _R@ignore_variance | int | float | datetime]`

dd-trace-py (https://github.com/DataDog/dd-trace-py)

tests/ci_visibility/api/fake_runner_efd_all_pass.py

[error] invalid-assignment - :26 -
Old: Object of type `Unknown | int` is not assignable to attribute `start_ns` on type `Span | None`
New: Object of type `int` is not assignable to attribute `start_ns` on type `Span | None`

tests/ci_visibility/api/fake_runner_efd_mix_fail.py

[error] invalid-assignment - :26 -
Old: Object of type `Unknown | int` is not assignable to attribute `start_ns` on type `Span | None`
New: Object of type `int` is not assignable to attribute `start_ns` on type `Span | None`

tests/ci_visibility/api/fake_runner_efd_mix_pass.py

[error] invalid-assignment - :26 -
Old: Object of type `Unknown | int` is not assignable to attribute `start_ns` on type `Span | None`
New: Object of type `int` is not assignable to attribute `start_ns` on type `Span | None`

hydpy (https://github.com/hydpy-dev/hydpy)

hydpy/auxs/calibtools.py

[error] invalid-argument-type - :982:25 - Argument to function `log` is incorrect: Expected `SupportsFloat | SupportsIndex`, found `Unknown | int | float | property`

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)

pandas-stubs/_typing.pyi

[warning] unused-ignore-comment - :1223:16 - Unused blanket `type: ignore` directive

prefect (https://github.com/PrefectHQ/prefect)

src/integrations/prefect-dask/tests/test_task_runners.py

[warning] possibly-missing-attribute - :352:24 - Attribute `_adapt_called` may be missing on object of type `Unknown | None`

src/integrations/prefect-dbt/prefect_dbt/cli/commands.py

[error] invalid-await - :461 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :535 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :610 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :685 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :760 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :835 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable

src/integrations/prefect-dbt/prefect_dbt/core/settings.py

[error] invalid-assignment - :94 -
Old: Object of type `dict[str, Any] | T@resolve_block_document_references` is not assignable to `dict[str, Any]`
New: Object of type `dict[str, Any] | T@resolve_block_document_references | str | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
[error] invalid-assignment - :99 -
Old: Object of type `dict[str, Any] | T@resolve_variables` is not assignable to `dict[str, Any]`
New: Object of type `dict[str, Any] | T@resolve_variables | str | ... omitted 4 union elements` is not assignable to `dict[str, Any]`

src/prefect/cli/deploy/_core.py

[error] invalid-assignment - :86 -
Old: Object of type `T@resolve_block_document_references | dict[str, Any]` is not assignable to `dict[str, Any]`
New: Object of type `T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
[error] invalid-assignment - :87 -
Old: Object of type `T@resolve_variables` is not assignable to `dict[str, Any]`
New: Object of type `T@resolve_variables | str | int | ... omitted 4 union elements` is not assignable to `dict[str, Any]`

src/prefect/deployments/steps/core.py

[error] invalid-argument-type - :137 -
Old: Argument is incorrect: Expected `T@resolve_variables`, found `T@resolve_block_document_references | dict[str, Any]`
New: Argument is incorrect: Expected `T@resolve_variables`, found `T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements`

src/prefect/utilities/templating.py

[error] invalid-assignment - :320 -
Old: Invalid subscript assignment with key of type `object` and value of type `T@resolve_block_document_references | dict[str, Any]` on object of type `dict[str, Any]`
New: Invalid subscript assignment with key of type `object` and value of type `T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements` on object of type `dict[str, Any]`
[error] invalid-return-type - :323 -
Old: Return type does not match returned value: expected `T@resolve_block_document_references | dict[str, Any]`, found `list[T@resolve_block_document_references | dict[str, Any] | Unknown]`
New: Return type does not match returned value: expected `T@resolve_block_document_references | dict[str, Any]`, found `list[T@resolve_block_document_references | dict[str, Any] | str | ... omitted 5 union elements]`
[error] invalid-return-type - :437 -
Old: Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, T@resolve_variables | Unknown]`
New: Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, T@resolve_variables | str | int | ... omitted 5 union elements]`
[error] invalid-return-type - :442 -
Old: Return type does not match returned value: expected `T@resolve_variables`, found `list[T@resolve_variables | Unknown]`
New: Return type does not match returned value: expected `T@resolve_variables`, found `list[T@resolve_variables | str | int | ... omitted 5 union elements]`

src/prefect/workers/base.py

[error] invalid-argument-type - :228 -
Old: Argument is incorrect: Expected `T@resolve_variables`, found `T@resolve_block_document_references | dict[str, Any]`
New: Argument is incorrect: Expected `T@resolve_variables`, found `T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements`
[error] invalid-argument-type - :230 -
Old: Argument expression after ** must be a mapping type: Found `T@resolve_variables`
New: Argument expression after ** must be a mapping type: Found `T@resolve_variables | str | int | ... omitted 4 union elements`

psycopg (https://github.com/psycopg/psycopg)

psycopg/psycopg/cursor.py

[error] invalid-argument-type - :176 -
Old: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@Cursor]`
New: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@Cursor]`
[error] invalid-argument-type - :250 -
Old: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@Cursor]`
New: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@Cursor]`
[error] invalid-argument-type - :269 -
Old: Argument to bound method `load_rows` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@Cursor]`
New: Argument to bound method `load_rows` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@Cursor]`
[error] invalid-argument-type - :282 -
Old: Argument to bound method `load_rows` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@Cursor]`
New: Argument to bound method `load_rows` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@Cursor]`
[error] invalid-argument-type - :293 -
Old: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@Cursor]`
New: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@Cursor]`

psycopg/psycopg/cursor_async.py

[error] invalid-argument-type - :176 -
Old: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@AsyncCursor]`
New: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@AsyncCursor]`
[error] invalid-argument-type - :252 -
Old: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@AsyncCursor]`
New: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@AsyncCursor]`
[error] invalid-argument-type - :271 -
Old: Argument to bound method `load_rows` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@AsyncCursor]`
New: Argument to bound method `load_rows` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@AsyncCursor]`
[error] invalid-argument-type - :284 -
Old: Argument to bound method `load_rows` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@AsyncCursor]`
New: Argument to bound method `load_rows` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@AsyncCursor]`
[error] invalid-argument-type - :295 -
Old: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `Unknown | RowMaker[Row@AsyncCursor]`
New: Argument to bound method `load_row` is incorrect: Expected `RowMaker[tuple[Any, ...]]`, found `RowMaker[Row@AsyncCursor]`

pwndbg (https://github.com/pwndbg/pwndbg)

pwndbg/aglib/heap/ptmalloc.py

[error] invalid-argument-type - :1895 -
Old: Argument to bound method `__init__` is incorrect: Expected `int`, found `Unknown | int | None`
New: Argument to bound method `__init__` is incorrect: Expected `int`, found `int | None | Unknown`

pwndbg/aglib/kernel/paging.py

[error] unsupported-operator - :628 -
Old: Operator `-` is not supported between objects of type `Unknown | int | None` and `Literal[33554432]`
New: Operator `-` is not supported between objects of type `Unknown | None | int` and `Literal[33554432]`

python-htmlgen (https://github.com/srittau/python-htmlgen)

htmlgen/form.py

[error] invalid-assignment - :206:9 - Invalid assignment to data descriptor attribute `value` on type `Self@date` with custom `__set__` method
[error] invalid-assignment - :356:9 - Invalid assignment to data descriptor attribute `value` on type `Self@__init__` with custom `__set__` method
[error] invalid-assignment - :364:9 - Invalid assignment to data descriptor attribute `value` on type `Self@label` with custom `__set__` method

rich (https://github.com/Textualize/rich)

tests/test_text.py

[warning] possibly-missing-attribute - :247 -
Old: Attribute `link` may be missing on object of type `Unknown | str | Style`
New: Attribute `link` may be missing on object of type `str | Style`
[warning] possibly-missing-attribute - :261 -
Old: Attribute `link` may be missing on object of type `Unknown | str | Style`
New: Attribute `link` may be missing on object of type `str | Style`

setuptools (https://github.com/pypa/setuptools)

setuptools/_vendor/backports/tarfile/__init__.py

[warning] possibly-missing-attribute - :999 -
Old: Attribute `endswith` may be missing on object of type `Unknown | None | int | bytes | str`
New: Attribute `endswith` may be missing on object of type `Unknown | str | None | int | bytes`

spack (https://github.com/spack/spack)

lib/spack/spack/spec.py

[error] invalid-argument-type - :1587:48 - Argument to function `path_to_os_path` is incorrect: Expected `str`, found `Unknown | None`

static-frame (https://github.com/static-frame/static-frame)

static_frame/core/yarn.py

[error] invalid-return-type - :418 -
Old: Return type does not match returned value: expected `InterGetItemILocReduces[Yarn[Any], object_]`, found `InterGetItemILocReduces[Yarn[Any] | TypeBlocks | Batch | ... omitted 7 union elements, generic[object]]`
New: Return type does not match returned value: expected `InterGetItemILocReduces[Yarn[Any], object_]`, found `InterGetItemILocReduces[Yarn[Any] | Top[Index[Any]] | TypeBlocks | ... omitted 7 union elements, generic[object]]`

static_frame/test/unit/test_frame.py

[warning] unused-ignore-comment - :14674:40 - Unused blanket `type: ignore` directive

sympy (https://github.com/sympy/sympy)

sympy/physics/continuum_mechanics/arch.py

[error] unsupported-operator - :685:40 - Operator `*` is not supported between objects of type `Unknown | None` and `float`
[error] unsupported-operator - :747:51 - Operator `*` is not supported between objects of type `Unknown | None` and `float`
[error] unsupported-operator - :748:51 - Operator `*` is not supported between objects of type `Unknown | None` and `float`
[error] unsupported-operator - :763:39 - Operator `*` is not supported between objects of type `float` and `Unknown | None`
[error] unsupported-operator - :766:24 - Operator `*` is not supported between objects of type `float` and `Unknown | None`
[error] unsupported-operator - :858:39 - Operator `*` is not supported between objects of type `float` and `Unknown | None`
[error] unsupported-operator - :861:24 - Operator `*` is not supported between objects of type `float` and `Unknown | None`
[error] unsupported-operator - :923:39 - Operator `*` is not supported between objects of type `float` and `Unknown | None`
[error] unsupported-operator - :926:24 - Operator `*` is not supported between objects of type `float` and `Unknown | None`
[error] unsupported-operator - :1008:39 - Operator `*` is not supported between objects of type `float` and `Unknown | None`
[error] unsupported-operator - :1011:24 - Operator `*` is not supported between objects of type `float` and `Unknown | None`

sympy/physics/mechanics/system.py

[warning] possibly-missing-attribute - :1480:19 - Attribute `LUsolve` may be missing on object of type `Unknown | None`

tornado (https://github.com/tornadoweb/tornado)

tornado/gen.py

[error] invalid-argument-type - :255 -
Old: Argument to bound method `__init__` is incorrect: Expected `None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown]`, found `_T@next | _T@next | _VT@next`
New: Argument to bound method `__init__` is incorrect: Expected `None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown]`, found `_T@next | _VT@next | _T@next`

werkzeug (https://github.com/pallets/werkzeug)

src/werkzeug/datastructures/auth.py

[error] invalid-return-type - :201:16 - Return type does not match returned value: expected `dict[str, str | None]`, found `Unknown | CallbackDict[str, str] | dict[str, str | None]`

xarray (https://github.com/pydata/xarray)

xarray/tests/test_coordinate_transform.py

[warning] unused-ignore-comment - :114:43 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :120:45 - Unused blanket `type: ignore` directive

xarray/tests/test_variable.py

[warning] unused-ignore-comment - :1416:50 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :1420:49 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :2943:69 - Unused blanket `type: ignore` directive