Ecosystem report

Old: main (merge base) 25dadb19 → New: 26338/merge 16ca7133
Lint Rule Removed Added Changed
Total 18 28 15
unsupported-base 0 22 0
unresolved-attribute 10 0 10
invalid-type-form 2 5 0
invalid-argument-type 4 0 2
invalid-assignment 2 1 1
not-iterable 0 0 2
Project Removed Added Changed
Total 18 28 15
scrapy 10 22 1
spack 0 0 9
sympy 2 5 2
werkzeug 4 0 0
mitmproxy 0 0 3
artigraph 2 0 0
pydantic 0 1 0

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

src/arti/types/python.py

[error] invalid-type-form - Function calls are not allowed in type expressions
[error] invalid-type-form - Function calls are not allowed in type expressions

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

examples/contrib/jsondump.py

[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | <class 'dict'>] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((t) -> int)] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((addr) -> dict[str, Unknown])] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((ms) -> list[dict[str, Unknown | bytes | int]])]`, found `dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((s: Buffer, altchars: Buffer | None = None) -> bytes)]`
[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | type[dict[Unknown, Unknown]]] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((t) -> int)] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((addr) -> dict[str, Unknown])] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((ms) -> list[dict[str, Unknown | bytes | int]])]`, found `dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((s: Buffer, altchars: Buffer | None = None) -> bytes)]`
[error] not-iterable - Object of type `None | list[dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | <class 'dict'>] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((t) -> int)] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((addr) -> dict[str, Unknown])] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((ms) -> list[dict[str, Unknown | bytes | int]])]]` may not be iterable
[error] not-iterable - Object of type `None | list[dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | type[dict[Unknown, Unknown]]] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((t) -> int)] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((addr) -> dict[str, Unknown])] | dict[str, tuple[tuple[str, str], ...] | tuple[tuple[str]] | ((ms) -> list[dict[str, Unknown | bytes | int]])]]` may not be iterable
[error] not-iterable - Object of type `tuple[tuple[str, str], ...] | tuple[tuple[str]] | <class 'dict'> | ... omitted 3 union elements` may not be iterable
[error] not-iterable - Object of type `tuple[tuple[str, str], ...] | tuple[tuple[str]] | type[dict[Unknown, Unknown]] | ... omitted 3 union elements` may not be iterable

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

pydantic/v1/generics.py

[error] invalid-assignment - Object of type `type[BaseConfig]` is not assignable to attribute `Config` of type `<class 'BaseConfig'>`

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

tests/test_http_request.py

[warning] unsupported-base - Unsupported class base with type `type[Request]`

tests/test_http_response.py

[warning] unsupported-base - Unsupported class base with type `type[Response]`

tests/test_logformatter.py

[error] invalid-assignment - Invalid subscript assignment with key of type `Literal["LOG_FORMATTER"]` and value of type `<class 'SkipMessagesLogFormatter'>` on object of type `dict[str, str | dict[<class 'DropSomeItemsPipeline'>, int]]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Literal["LOG_FORMATTER"]` and value of type `<class 'SkipMessagesLogFormatter'>` on object of type `dict[str, str | dict[type[DropSomeItemsPipeline], int]]`

tests/test_spider.py

[warning] unsupported-base - Unsupported class base with type `type[Spider]`
[warning] unsupported-base - Unsupported class base with type `type[Spider]`
[warning] unsupported-base - Unsupported class base with type `type[XMLFeedSpider]`
[warning] unsupported-base - Unsupported class base with type `type[CSVFeedSpider]`

tests/test_spider_crawl.py

[warning] unsupported-base - Unsupported class base with type `type[CrawlSpider]`
[warning] unsupported-base - Unsupported class base with type `type[CrawlSpider]`
[warning] unsupported-base - Unsupported class base with type `type[CrawlSpider]`
[warning] unsupported-base - Unsupported class base with type `type[CrawlSpider]`
[warning] unsupported-base - Unsupported class base with type `type[CrawlSpider]`
[warning] unsupported-base - Unsupported class base with type `type[CrawlSpider]`
[warning] unsupported-base - Unsupported class base with type `type[CrawlSpider]`
[warning] unsupported-base - Unsupported class base with type `type[CrawlSpider]`
[error] unresolved-attribute - Attribute `url` is not defined on `None` in union `Request | None`
[error] unresolved-attribute - Attribute `url` is not defined on `None` in union `Request | None`
[error] unresolved-attribute - Attribute `url` is not defined on `None` in union `Request | None`
[error] unresolved-attribute - Attribute `url` is not defined on `None` in union `Request | None`
[error] unresolved-attribute - Attribute `url` is not defined on `None` in union `Request | None`
[error] unresolved-attribute - Attribute `url` is not defined on `None` in union `Request | None`
[error] unresolved-attribute - Attribute `meta` is not defined on `None` in union `Request | None`
[error] unresolved-attribute - Attribute `url` is not defined on `None` in union `Request | None`
[error] unresolved-attribute - Attribute `url` is not defined on `None` in union `Request | None`
[error] unresolved-attribute - Attribute `meta` is not defined on `None` in union `Request | None`

tests/test_spider_sitemap.py

[warning] unsupported-base - Unsupported class base with type `type[SitemapSpider]`
[warning] unsupported-base - Unsupported class base with type `type[SitemapSpider]`
[warning] unsupported-base - Unsupported class base with type `type[SitemapSpider]`
[warning] unsupported-base - Unsupported class base with type `type[SitemapSpider]`
[warning] unsupported-base - Unsupported class base with type `type[SitemapSpider]`
[warning] unsupported-base - Unsupported class base with type `type[SitemapSpider]`
[warning] unsupported-base - Unsupported class base with type `type[SitemapSpider]`
[warning] unsupported-base - Unsupported class base with type `type[SitemapSpider]`

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

lib/spack/spack/spec_parser.py

[error] unresolved-attribute - Attribute `kind` is not defined on `<class 'Token'> & ~AlwaysFalsy` in union `(Token & ~AlwaysFalsy) | (Unknown & ~AlwaysFalsy) | (<class 'Token'> & ~AlwaysFalsy)`
[error] unresolved-attribute - Attribute `kind` is not defined on `type[Token] & ~AlwaysFalsy` in union `(Token & ~AlwaysFalsy) | (Unknown & ~AlwaysFalsy) | (type[Token] & ~AlwaysFalsy)`
[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `Token`, found `None | Token | Unknown | <class 'Token'>`
[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `Token`, found `None | Token | Unknown | type[Token]`
[error] unresolved-attribute - Attribute `kind` is not defined on `<class 'Token'> & ~AlwaysFalsy` in union `(Token & ~AlwaysFalsy) | (Unknown & ~AlwaysFalsy) | (<class 'Token'> & ~AlwaysFalsy)`
[error] unresolved-attribute - Attribute `kind` is not defined on `type[Token] & ~AlwaysFalsy` in union `(Token & ~AlwaysFalsy) | (Unknown & ~AlwaysFalsy) | (type[Token] & ~AlwaysFalsy)`
[error] unresolved-attribute - Attribute `subvalues` is not defined on `<class 'Token'>` in union `Token | (Unknown & ~None) | <class 'Token'>`
[error] unresolved-attribute - Attribute `subvalues` is not defined on `type[Token]` in union `Token | (Unknown & ~None) | type[Token]`
[error] unresolved-attribute - Attribute `value` is not defined on `<class 'Token'>` in union `Token | (Unknown & ~None) | <class 'Token'>`
[error] unresolved-attribute - Attribute `value` is not defined on `type[Token]` in union `Token | (Unknown & ~None) | type[Token]`
[error] unresolved-attribute - Attribute `value` is not defined on `None`, `<class 'Token'>` in union `None | Token | Unknown | <class 'Token'>`
[error] unresolved-attribute - Attribute `value` is not defined on `None`, `type[Token]` in union `None | Token | Unknown | type[Token]`
[error] unresolved-attribute - Attribute `value` is not defined on `None`, `<class 'Token'>` in union `None | Token | Unknown | <class 'Token'>`
[error] unresolved-attribute - Attribute `value` is not defined on `None`, `type[Token]` in union `None | Token | Unknown | type[Token]`
[error] unresolved-attribute - Attribute `start` is not defined on `<class 'Token'> & ~AlwaysFalsy` in union `(Token & ~AlwaysFalsy) | (Unknown & ~AlwaysFalsy) | (<class 'Token'> & ~AlwaysFalsy)`
[error] unresolved-attribute - Attribute `start` is not defined on `type[Token] & ~AlwaysFalsy` in union `(Token & ~AlwaysFalsy) | (Unknown & ~AlwaysFalsy) | (type[Token] & ~AlwaysFalsy)`
[error] unresolved-attribute - Attribute `value` is not defined on `<class 'Token'> & ~AlwaysFalsy` in union `(Token & ~AlwaysFalsy) | (Unknown & ~AlwaysFalsy) | (<class 'Token'> & ~AlwaysFalsy)`
[error] unresolved-attribute - Attribute `value` is not defined on `type[Token] & ~AlwaysFalsy` in union `(Token & ~AlwaysFalsy) | (Unknown & ~AlwaysFalsy) | (type[Token] & ~AlwaysFalsy)`

steam.py (https://github.com/Gobot1234/steam.py)

steam/chat.py

flaky
(2/10)
[warning] possibly-missing-attribute - Attribute `reactions` may be missing on object of type `ChatMessageT@Chat`

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

sympy/core/evalf.py

[error] invalid-type-form - Variable of type `type[mpc]` is not allowed in a return type annotation
[error] invalid-type-form - Variable of type `type[mpf]` is not allowed in a return type annotation
[error] invalid-type-form - Variable of type `type[mpc]` is not allowed in a return type annotation
[error] invalid-type-form - Variable of type `type[mpf]` is not allowed in a return type annotation
[error] invalid-type-form - Variable of type `type[mpf]` is not allowed in a return type annotation
[error] invalid-argument-type - Argument to function `fastlog` is incorrect: Expected `tuple[int, int, int, int] | None`, found `mpf`
[error] invalid-argument-type - Argument to function `fastlog` is incorrect: Expected `tuple[int, int, int, int] | None`, found `mpf`

sympy/polys/domains/old_fractionfield.py

[error] unresolved-attribute - Attribute `zero` is not defined on `(...) -> Unknown` in union `<class 'DMF'> | type[Unknown] | ((...) -> Unknown)`
[error] unresolved-attribute - Attribute `zero` is not defined on `(...) -> Unknown` in union `type[DMF | Unknown] | ((...) -> Unknown)`
[error] unresolved-attribute - Attribute `one` is not defined on `(...) -> Unknown` in union `<class 'DMF'> | type[Unknown] | ((...) -> Unknown)`
[error] unresolved-attribute - Attribute `one` is not defined on `(...) -> Unknown` in union `type[DMF | Unknown] | ((...) -> Unknown)`

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

tests/test_datastructures.py

[error] invalid-argument-type - Argument to bound method `TypeConversionDict.get` is incorrect: Expected `(str | None, /) -> Literal[-1]`, found `<class 'int'>`
[error] invalid-argument-type - Argument to bound method `TypeConversionDict.get` is incorrect: Expected `(str | None, /) -> Literal[-1]`, found `<class 'int'>`
[error] invalid-assignment - Invalid subscript assignment with key of type `Literal["z"]` and value of type `Literal[123]` on object of type `CallbackDict[str, str]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Literal["z"]` and value of type `Literal[123]` on object of type `CallbackDict[str, str]`