Summary

Comparing branches/commits:
Old: main (merge base) 537ec5f0
New: 20776/merge 2e370cf7
Lint Rule Removed Added Changed
Total 79 0 1
invalid-argument-type 66 0 1
invalid-assignment 13 0 0

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

colour/notation/munsell.py

[error] invalid-assignment - :2037:5 - Object of type `dict[Unknown | int, Unknown | None | str]` is not assignable to `dict[int, Literal["Linear", "Radial"] | None]`

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

homeassistant/components/recorder/statistics.py

[error] invalid-argument-type - :1913:9 - Argument to function `_statistics_at_time` is incorrect: Expected `set[Literal["last_reset", "max", "mean", "min", "state", "sum"]]`, found `set[Unknown | str]`

homeassistant/components/sensor/recorder.py

[error] invalid-argument-type - :584:34 - Argument to function `get_latest_short_term_statistics_with_session` is incorrect: Expected `set[Literal["last_reset", "max", "mean", "min", "state", "sum"]]`, found `set[Unknown | str]`

discord.py (https://github.com/Rapptz/discord.py)

discord/ui/select.py

[error] invalid-assignment - :1227:13 - Object of type `dict[Unknown | <class 'UserSelect'> | <class 'RoleSelect'> | <class 'MentionableSelect'> | <class 'ChannelSelect'>, Unknown | ComponentType]` is not assignable to `dict[type[BaseSelect[Unknown]], Literal[ComponentType.user_select, ComponentType.channel_select, ComponentType.role_select, ComponentType.mentionable_select]]`

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

freqtrade/exchange/binance.py

[error] invalid-argument-type - :54:37 - Invalid argument to key "order_props_in_contracts" with declared type `list[Literal["amount", "cost", "filled", "remaining"]]` on TypedDict `FtHas`: value of type `list[str]`

freqtrade/exchange/exchange.py

[error] invalid-argument-type - :161:37 - Invalid argument to key "order_props_in_contracts" with declared type `list[Literal["amount", "cost", "filled", "remaining"]]` on TypedDict `FtHas`: value of type `list[str]`

materialize (https://github.com/MaterializeInc/materialize)

ci/deploy/pypi.py

[error] invalid-assignment - :23:1 - Object of type `dict[Unknown | str, Unknown | str]` is not assignable to `dict[str, Literal["setup.py", "pyproject.toml"]]`

meson (https://github.com/mesonbuild/meson)

mesonbuild/modules/_qt.py

[error] invalid-assignment - :941:9 - Object of type `list[Unknown | bool]` is not assignable to `list[str | Literal[False]]`

openlibrary (https://github.com/internetarchive/openlibrary)

openlibrary/book_providers.py

[error] invalid-argument-type - :747:9 - Argument to function `multisort_best` is incorrect: Expected `list[tuple[Literal["min", "max"], (@Todo, /) -> int | float]]`, found `list[Unknown | tuple[str, (rec) -> Unknown]]`

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

pandas/core/frame.py

[error] invalid-assignment - :14046:5 - Object of type `list[Unknown | str]` is not assignable to `list[Literal["index", "columns"]]`

pandas/core/generic.py

[error] invalid-assignment - :5417:9 - Object of type `dict[Unknown | str, Unknown | None]` is not assignable to `dict[Literal["index", "columns"], Any]`

porcupine (https://github.com/Akuli/porcupine)

porcupine/plugins/longlinemarker.py

[error] invalid-assignment - :56:17 - Object of type `list[Unknown | str]` is not assignable to `list[Literal["bgcolor", "color", "border"]]`

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

src/integrations/prefect-aws/prefect_aws/observers/ecs.py

[error] invalid-assignment - :44:1 - Object of type `dict[Unknown | str, Unknown | str]` is not assignable to `dict[str, Literal["task", "container-instance", "deployment"]]`

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

pwndbg/lib/zig.py

[error] invalid-assignment - :17:1 - Object of type `dict[Unknown | tuple[str, str, int], Unknown | str]` is not assignable to `dict[tuple[@Todo, Literal["little", "big"], int], str]`

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

pydantic/_internal/_generate_schema.py

[error] invalid-assignment - :1967:9 - Object of type `dict[Unknown | _ParameterKind, Unknown | str]` is not assignable to `dict[_ParameterKind, Literal["positional_only", "positional_or_keyword", "keyword_only"]]`
[error] invalid-assignment - :2041:9 - Object of type `dict[Unknown | _ParameterKind, Unknown | str]` is not assignable to `dict[_ParameterKind, Literal["positional_only", "positional_or_keyword", "var_args", "keyword_only"]]`

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

pyodide-build/pyodide_build/recipe/skeleton.py

[error] invalid-argument-type - :359:47 - Argument to function `_find_dist` is incorrect: Expected `list[Literal["wheel", "sdist"]]`, found `list[Unknown | str]`

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

rotkehlchen/chain/evm/decoding/balancer/constants.py

[error] invalid-assignment - :27:1 - Object of type `dict[Unknown | str, Unknown | int]` is not assignable to `dict[str, Literal[1, 2, 3]]`

rotkehlchen/tests/utils/xpubs.py

[error] invalid-argument-type - :34:13 - Argument to function `insert_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`
[error] invalid-argument-type - :52:13 - Argument to function `insert_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`

rotkehlchen/chain/bitcoin/xpub.py

[error] invalid-argument-type - :217:25 - Argument to function `replace_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`
[error] invalid-argument-type - :223:25 - Argument to function `replace_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`

rotkehlchen/db/dbhandler.py

[error] invalid-argument-type - :1315:75 - Argument to function `insert_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1370:13 - Argument to function `replace_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1731:67 - Argument to function `insert_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1765:68 - Argument to function `replace_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`
[error] invalid-argument-type - :3213:17 - Argument to function `replace_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`
[error] invalid-argument-type - :3222:17 - Argument to function `replace_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`

rotkehlchen/rotkehlchen.py

[error] invalid-argument-type - :939:17 - Argument to function `replace_tag_mappings` is incorrect: Expected `list[Literal["identifier", "chain", "address", "xpub.xpub", "derivation_path"]]`, found `list[Unknown | str]`

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

scipy/stats/_qmc.py

[error] invalid-argument-type - :2609:26 -
Old: Method `__getitem__` of type `bound method dict[str, ((...) -> Unknown) | ((best_sample: ndarray[@Todo, Unknown], n_iters: int, n_nochange: int, rng: GeneratorType@_random_cd, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown]) | ((sample: @Todo, *, tol: @Todo = float, maxiter: @Todo = int, qhull_options: str | None = None, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown])].__getitem__(key: str, /) -> ((...) -> Unknown) | ((best_sample: ndarray[@Todo, Unknown], n_iters: int, n_nochange: int, rng: GeneratorType@_random_cd, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown]) | ((sample: @Todo, *, tol: @Todo = float, maxiter: @Todo = int, qhull_options: str | None = None, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown])` cannot be called with key of type `Literal["random-cd", "lloyd"] | None` on object of type `dict[str, ((...) -> Unknown) | ((best_sample: ndarray[@Todo, Unknown], n_iters: int, n_nochange: int, rng: GeneratorType@_random_cd, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown]) | ((sample: @Todo, *, tol: @Todo = float, maxiter: @Todo = int, qhull_options: str | None = None, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown])]`
New: Method `__getitem__` of type `bound method dict[str, ((...) -> Unknown) | ((best_sample: ndarray[@Todo, Unknown], n_iters: int, n_nochange: int, rng: GeneratorType@_random_cd, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown]) | ((sample: @Todo, *, tol: @Todo = float, maxiter: @Todo = Literal[10], qhull_options: str | None = None, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown])].__getitem__(key: str, /) -> ((...) -> Unknown) | ((best_sample: ndarray[@Todo, Unknown], n_iters: int, n_nochange: int, rng: GeneratorType@_random_cd, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown]) | ((sample: @Todo, *, tol: @Todo = float, maxiter: @Todo = Literal[10], qhull_options: str | None = None, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown])` cannot be called with key of type `Literal["random-cd", "lloyd"] | None` on object of type `dict[str, ((...) -> Unknown) | ((best_sample: ndarray[@Todo, Unknown], n_iters: int, n_nochange: int, rng: GeneratorType@_random_cd, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown]) | ((sample: @Todo, *, tol: @Todo = float, maxiter: @Todo = Literal[10], qhull_options: str | None = None, **kwargs: dict[Unknown, Unknown]) -> ndarray[@Todo, Unknown])]`

sphinx (https://github.com/sphinx-doc/sphinx)

sphinx/environment/__init__.py

[error] invalid-assignment - :94:1 - Object of type `dict[Unknown | str, Unknown | bool | ((node: Node) -> bool)]` is not assignable to `dict[str, Literal[False] | ((Node, /) -> bool)]`

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

lib/streamlit/config.py

[error] invalid-argument-type - :1189:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1205:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1220:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1235:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1250:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1265:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1287:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1309:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1331:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1353:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1375:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1396:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1418:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1439:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1460:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1481:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1502:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1523:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1544:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1565:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1586:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1607:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1628:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1649:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1670:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1691:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1712:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1727:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1743:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1763:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1778:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1807:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1838:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1852:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1866:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1893:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1932:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1969:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :1994:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2014:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2036:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2062:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2090:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2105:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2122:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2143:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2159:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2170:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`
[error] invalid-argument-type - :2213:5 - Argument to function `_create_theme_options` is incorrect: Expected `list[Literal["theme"] | CustomThemeCategories]`, found `list[Unknown | str]`