Ecosystem report

Old: zsol/ty-call-argument-refactor (merge base) 7becc3c5 → New: 28821/merge a7691980
Lint Rule Removed Added Changed
Total 33 7 7
invalid-argument-type 32 6 7
call-non-callable 0 1 0
missing-argument 1 0 0
Project Removed Added Changed
Total 33 7 7
scikit-learn strict 14 0 0
apprise non-strict 13 0 0
prefect strict 0 6 6
pywin32 non-strict 6 0 1
spark strict 0 1 0

apprise non-strict (https://github.com/caronc/apprise)

tests/test_api.py

[error] invalid-argument-type - Argument to bound method `Apprise.add` is incorrect: Expected `AppriseAsset | None`, found `str`

tests/test_config_base.py

[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `bool`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `int`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `int`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `bool`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `int`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `int`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `bool`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `int`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `int`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `bool`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `int`, found `str`
[error] invalid-argument-type - Argument to `ConfigBase.__init__` is incorrect: Expected `int`, found `str`

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

src/integrations/prefect-databricks/tests/test_rest.py

[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `None | Unknown`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `None`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `None`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `str | None`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `None`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `Literal[""]`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `str`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `Literal["abc"]`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `Literal["def"]`

src/integrations/prefect-github/tests/test_utils.py

[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `None | Unknown`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `None`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `None`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `str | None`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `None`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `Literal[""]`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `str`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `Literal["abc"]`
[error] invalid-argument-type - Argument to function `strip_kwargs` is incorrect: Expected `dict[Unknown, Unknown]`, found `Literal["def"]`

pywin32 non-strict (https://github.com/mhammond/pywin32)

setup.py

[error] invalid-argument-type - Argument to bound method `Executor.submit` is incorrect: Expected `(obj: str | PathLike[str], src: str | PathLike[str], ext: str, cc_args: list[str], extra_postargs: list[str], pp_opts: object)`, found `str | list[str]`
[error] invalid-argument-type - Argument to bound method `Executor.submit` is incorrect: Expected `list[str]`, found `str | list[str]`
[error] missing-argument - No arguments provided for required parameters `obj`, `src`, `ext`, `cc_args`, `extra_postargs`, `pp_opts` of bound method `Executor.submit`
[error] invalid-argument-type - Argument to bound method `Executor.submit` is incorrect: Expected `(obj: str | PathLike[str], src: str | PathLike[str], ext: str, cc_args: list[str], extra_postargs: list[str], pp_opts: object)`, found `list[str]`
[error] invalid-argument-type - Argument to bound method `Executor.submit` is incorrect: Expected `(obj: str | PathLike[str], src: str | PathLike[str], ext: str, cc_args: list[str], extra_postargs: list[str], pp_opts: object)`, found `list[str]`
[error] invalid-argument-type - Argument to bound method `Executor.submit` is incorrect: Expected `(obj: str | PathLike[str], src: str | PathLike[str], ext: str, cc_args: list[str], extra_postargs: list[str], pp_opts: object)`, found `str`
[error] invalid-argument-type - Argument to bound method `Executor.submit` is incorrect: Expected `(obj: str | PathLike[str], src: str | PathLike[str], ext: str, cc_args: list[str], extra_postargs: list[str], pp_opts: object)`, found `str`
[error] invalid-argument-type - Argument to bound method `Executor.submit` is incorrect: Expected `(obj: str | PathLike[str], src: str | PathLike[str], ext: str, cc_args: list[str], extra_postargs: list[str], pp_opts: object)`, found `str`

scikit-learn strict (https://github.com/scikit-learn/scikit-learn)

sklearn/ensemble/tests/test_iforest.py

[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `NonCallableMock | None`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `NonCallableMock | None`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `bool | None`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `bool`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `bool`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `str | None`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `str`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `NonCallableMock | None`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `NonCallableMock | None`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `bool | None`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `bool`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `bool`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `str | None`, found `int`
[error] invalid-argument-type - Argument to constructor `NonCallableMock.__new__` is incorrect: Expected `str`, found `int`

spark strict (https://github.com/apache/spark)

python/pyspark/sql/tests/test_functions.py

[error] call-non-callable - Object of type `float*` is not callable

steam.py non-strict (https://github.com/Gobot1234/steam.py)

steam/chat.py

flaky
(1/10)
[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive
flaky
(1/10)
[error] invalid-generic-class - Variance of type variable `MemberT` is incompatible with method `mentions`
flaky
(1/10)
[warning] unsound-return-statement - Unsound return statement: `list[ClanMember | PartialMember] | list[GroupMember | PartialMember]` is not a subtype of `list[MemberT@ChatMessage | PartialMember]`
flaky
(1/10)
[error] invalid-generic-class - Variance of type variable `MemberT` is incompatible with method `_maybe_members`
flaky
(1/10)
[error] invalid-generic-class - Variance of type variable `MemberT` is incompatible with method `officers`
flaky
(1/10)
[error] invalid-generic-class - Variance of type variable `MemberT` is incompatible with method `mods`

steam/client.py

flaky
(1/10)
[warning] unsound-return-statement - Unsound return statement: `PublishedFile[User | PartialUser] | None` is not a subtype of `PublishedFile[PartialUser] | None`
flaky
(1/10)
[warning] unsound-return-statement - Unsound return statement: `list[PublishedFile[User | PartialUser] | None]` is not a subtype of `list[PublishedFile[PartialUser] | None]`

steam/event.py

flaky
(1/10)
[warning] truthiness-test-of-none-union - Boolean test on `User | PartialUser | None` does not distinguish `None` from other falsy values: Both `None` and non-`None` values can be falsy

steam/ext/commands/converters.py

flaky
(1/10)
[warning] unsound-return-statement - Unsound return statement: `(ClanMember & Member[Unknown, Unknown]) | (PartialMember & Member[Unknown, Unknown]) | (GroupMember & Member[Unknown, Unknown])` is not a subtype of `Member[Clan | None, Group | None]`

steam/ext/csgo/models.py

flaky
(1/10)
[warning] truthiness-test-of-none-union - Boolean test on `MatchPlayer | None` does not distinguish `None` from other falsy values: Both `None` and non-`None` values can be falsy

steam/ext/csgo/state.py

flaky
(1/10)
[error] missing-argument - No argument provided for required parameter `id` of `PartialUser.__init__`
flaky
(1/10)
[error] unknown-argument - Argument `proto` does not match any known parameter of `PartialUser.__init__`

steam/leaderboard.py

flaky
(1/10)
[error] call-non-callable - Cannot instantiate `LeaderboardUser` with unimplemented abstract methods `_send_message` and `_send_media`

steam/published_file.py

flaky
(1/10)
[warning] unsound-return-statement - Unsound return statement: `PublishedFile[User | PartialUser] & ~AlwaysFalsy` is not a subtype of `PublishedFile[PartialUser]`

steam/review.py

flaky
(1/10)
[warning] unsound-assignment - Unsound assignment: `Unknown` is not a subtype of `bool | None`

steam/state.py

flaky
(1/10)
[error] call-non-callable - Cannot instantiate `Friend` with unimplemented abstract methods `_send_message` and `_send_media`
(1/10)
[error] call-non-callable - Cannot instantiate `Friend` with unimplemented abstract methods `_send_message` and `_send_media`
flaky
(1/10)
[error] call-non-callable - Cannot instantiate `Friend` with unimplemented abstract methods `_send_message` and `_send_media`
flaky
(1/10)
[warning] disjoint-cast - Cast from `ID[Type]` to disjoint type `User`

steam/user.py

flaky
(1/10)
[warning] unsupported-base - Unsupported class base with type `<class 'Messageable[UserMessage[User | Friend | ClientUser]]'> | <class 'Messageable[UserMessage[User | ClientUser]]'>`
flaky
(1/10)
[warning] unsound-assignment - Unsound assignment: `Unknown` is not a subtype of `GetRecentMessagesResponseFriendMessage | None`
flaky
(1/10)
[error] invalid-argument-type - Argument to function `ID.__init__` is incorrect: Expected `Never`, found `Self@__init__`