Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demote float and int #781

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

demote float and int #781

wants to merge 1 commit into from

Conversation

KotlinIsland
Copy link
Owner

@KotlinIsland KotlinIsland commented Oct 27, 2024

who asked?

resolves #167

Copy link

Diff from mypy_primer, showing the effect of this PR on open source code:

scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/tree/tests/test_tree.py:612:5: error: Expression type contains "Any" (has type "(int | None, Any (from omitted generics))")  [no-any-expr]
+ sklearn/tree/tests/test_tree.py:612:5: error: Expression type contains "Any" (has type "(None | int, Any (from omitted generics))")  [no-any-expr]
- sklearn/tree/tests/test_tree.py:612:33: error: Expression type contains "Any" (has type "product[(int | None, Any (from omitted generics))]")  [no-any-expr]
+ sklearn/tree/tests/test_tree.py:612:33: error: Expression type contains "Any" (has type "product[(None | int, Any (from omitted generics))]")  [no-any-expr]
- sklearn/neighbors/tests/test_neighbors.py:87:5: error: Expression type contains "Any" (has type "set[Any (from unimported type) | str]")  [no-any-expr]
+ sklearn/neighbors/tests/test_neighbors.py:87:5: error: Expression type contains "Any" (has type "set[str | Any (from unimported type)]")  [no-any-expr]
- sklearn/neighbors/tests/test_neighbors.py:87:23: error: Expression type contains "Any" (has type "map[set[Any (from unimported type) | str]]")  [no-any-expr]
+ sklearn/neighbors/tests/test_neighbors.py:87:23: error: Expression type contains "Any" (has type "map[set[str | Any (from unimported type)]]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:320:22: error: Expression type contains "Any" (has type "product[(list[list[int]] | list[list[str]] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[float] | list[int | float], list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | Any (from error) | list[list[int]] | _NotAnArray | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[list[str]] | list[float] | list[int | float])]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "(list[list[int]] | list[list[str]] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[float] | list[int | float], list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | Any (from error) | list[list[int]] | _NotAnArray | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[list[str]] | list[float] | list[int | float])")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:320:22: error: Expression type contains "Any" (has type "product[(list[int] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | Any (from error) | list[list[int]] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[str]], list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | Any (from error) | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | list[str])]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "(list[int] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | Any (from error) | list[list[int]] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[str]], list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | Any (from error) | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | list[str])")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "list[list[int]] | list[list[str]] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[float] | list[int | float]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "list[int] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | Any (from error) | list[list[int]] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[str]]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | Any (from error) | list[list[int]] | _NotAnArray | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[list[str]] | list[float] | list[int | float]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:39: error: Expression type contains "Any" (has type "product[(list[list[int]] | list[list[str]] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[float] | list[int | float], list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | Any (from error) | list[list[int]] | _NotAnArray | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[list[str]] | list[float] | list[int | float])]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | Any (from error) | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | list[str]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:324:39: error: Expression type contains "Any" (has type "product[(list[int] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | Any (from error) | list[list[int]] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[str]], list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | Any (from error) | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | list[str])]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:326:27: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | Any (from error) | list[list[int]] | _NotAnArray | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[list[str]] | list[float] | list[int | float]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:326:27: error: Expression type contains "Any" (has type "list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | Any (from error) | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | list[str]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:326:41: error: Expression type contains "Any" (has type "list[list[int]] | list[list[str]] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[float] | list[int | float]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:326:41: error: Expression type contains "Any" (has type "list[int] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | Any (from error) | list[list[int]] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[str]]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:328:27: error: Expression type contains "Any" (has type "list[list[int]] | list[list[str]] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | Any (from error) | _NotAnArray | list[int] | list[str] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[float] | list[int | float]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:328:27: error: Expression type contains "Any" (has type "list[int] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | Any (from error) | list[list[int]] | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[list[str]]")  [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:328:41: error: Expression type contains "Any" (has type "list[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | Any (from error) | list[list[int]] | _NotAnArray | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[list[str]] | list[float] | list[int | float]")  [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:328:41: error: Expression type contains "Any" (has type "list[float] | list[int | float] | ndarray[Any, dtype[Any]] | ndarray[Any, dtype[floating[_32Bit]]] | list[list[int]] | list[list[str]] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | Any (from error) | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | list[str]")  [no-any-expr]

altair (https://github.com/vega/altair)
- version: 2.7.0+dev.4c2c2e5000d53f89d59fa0b208be793b71e9c2fe
+ version: 2.7.0+dev.96db12d10084baa919993a3995bfa4e2445fe569

sympy (https://github.com/sympy/sympy)
- sympy/solvers/solvers.py:3636:38: error: Expression type contains "Any" (has type "dict[Dummy | Any, Any]")  [no-any-expr]
+ sympy/solvers/solvers.py:3636:38: error: Expression type contains "Any" (has type "dict[Any | Dummy, Any]")  [no-any-expr]
- sympy/solvers/solvers.py:3636:43: error: Expression type contains "Any" (has type "zip[(Dummy | Any, Any)]")  [no-any-expr]
+ sympy/solvers/solvers.py:3636:43: error: Expression type contains "Any" (has type "zip[(Any | Dummy, Any)]")  [no-any-expr]
- sympy/geometry/tests/test_point.py:389:9: error: Incompatible types in assignment (expression has type "((int, int) | Point | list[int], (int, int) | Point | list[int])", variable has type "(int, int) | list[int] | Point")  [assignment]
+ sympy/geometry/tests/test_point.py:389:9: error: Incompatible types in assignment (expression has type "(Point | (int, int) | list[int], Point | (int, int) | list[int])", variable has type "(int, int) | list[int] | Point")  [assignment]
- sympy/core/tests/test_arit.py:2448:5: error: Expression type contains "Any" (has type "tuple[AccumulationBounds | Any | None, ...]")  [no-any-expr]
+ sympy/core/tests/test_arit.py:2448:5: error: Expression type contains "Any" (has type "tuple[AccumulationBounds | Any (unannotated) | None, ...]")  [no-any-expr]
- sympy/core/tests/test_arit.py:2448:17: error: Expression type contains "Any" (has type "permutations[tuple[AccumulationBounds | Any | None, ...]]")  [no-any-expr]
+ sympy/core/tests/test_arit.py:2448:17: error: Expression type contains "Any" (has type "permutations[tuple[AccumulationBounds | Any (unannotated) | None, ...]]")  [no-any-expr]
- sympy/core/tests/test_arit.py:2449:18: error: Expression type contains "Any" (has type "tuple[AccumulationBounds | Any | None, ...]")  [no-any-expr]
+ sympy/core/tests/test_arit.py:2449:18: error: Expression type contains "Any" (has type "tuple[AccumulationBounds | Any (unannotated) | None, ...]")  [no-any-expr]

pyjwt (https://github.com/jpadilla/pyjwt): 21889.71x slower (0.0s -> 41.0s in a single noisy sample)

openlibrary (https://github.com/internetarchive/openlibrary)
- openlibrary/plugins/upstream/addbook.py:88:17: error: Expression type contains "Any" (has type "(Untyped | str, Untyped | str)")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:88:17: error: Expression type contains "Any" (has type "(str | Untyped, str | Untyped)")  [no-any-expr]
- openlibrary/plugins/upstream/addbook.py:88:17: error: Expression type contains "Any" (has type "Untyped | str")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:88:17: error: Expression type contains "Any" (has type "str | Untyped")  [no-any-expr]
- openlibrary/plugins/upstream/addbook.py:89:21: error: Expression type contains "Any" (has type "Untyped | str")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:89:21: error: Expression type contains "Any" (has type "str | Untyped")  [no-any-expr]
- openlibrary/plugins/upstream/addbook.py:89:26: error: Expression type contains "Any" (has type "Untyped | str")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:89:26: error: Expression type contains "Any" (has type "str | Untyped")  [no-any-expr]
- openlibrary/plugins/upstream/addbook.py:90:26: error: Expression type contains "Any" (has type "zip[(Untyped | str, Untyped | str)]")  [no-any-expr]
+ openlibrary/plugins/upstream/addbook.py:90:26: error: Expression type contains "Any" (has type "zip[(str | Untyped, str | Untyped)]")  [no-any-expr]

mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/tests/config/config_tests.py:215:9: error: Expression type contains "Any" (has type "(dict[str, str] | dict[str, dict[str, str]] | dict[str, dict[str, None | Untyped]] | dict[str, dict[str, str | Untyped]] | dict[str, dict[str, str | list[str] | bool]], dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]])")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:215:9: error: Expression type contains "Any" (has type "(dict[str, str] | dict[str, dict[str, str]] | dict[str, dict[str, None | Untyped]] | dict[str, dict[str, str | Untyped]] | dict[str, dict[str, str | list[str] | bool]], dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]])")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:215:9: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:215:9: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:215:40: error: Expression type contains "Any" (has type "zip[(dict[str, str] | dict[str, dict[str, str]] | dict[str, dict[str, None | Untyped]] | dict[str, dict[str, str | Untyped]] | dict[str, dict[str, str | list[str] | bool]], dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]])]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:215:40: error: Expression type contains "Any" (has type "zip[(dict[str, str] | dict[str, dict[str, str]] | dict[str, dict[str, None | Untyped]] | dict[str, dict[str, str | Untyped]] | dict[str, dict[str, str | list[str] | bool]], dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]])]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, None | Locale] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "list[Untyped | str] | list[str] | dict[str, None | Locale] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:223:70: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:223:70: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:223:70: error: Expression type contains "Any" (has type "list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, None | Locale] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:223:70: error: Expression type contains "Any" (has type "list[Untyped | str] | list[str] | dict[str, None | Locale] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:224:55: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:224:55: error: Expression type contains "Any" (has type "dict[str, list[Untyped | str] | list[str] | dict[str, None | Locale]] | dict[str, list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]] | dict[str, list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]] | dict[str, list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None]]")  [no-any-expr]
- mkdocs/tests/config/config_tests.py:224:55: error: Expression type contains "Any" (has type "list[Untyped | str] | list[str] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, None | Locale] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]")  [no-any-expr]
+ mkdocs/tests/config/config_tests.py:224:55: error: Expression type contains "Any" (has type "list[Untyped | str] | list[str] | dict[str, None | Locale] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]]")  [no-any-expr]

scipy (https://github.com/scipy/scipy)
- scipy/fft/tests/test_backend.py:56:49: error: Expression type contains "Any" (has type "zip[(partial[Any (from error)] | None, partial[None] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], s: None | Sequence[int]=..., axes: None | Sequence[int]=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], s: None | Sequence[int]=..., axes: None | Sequence[int]=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]]=...) -> ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]]=...) -> ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]] | def (x: Untyped, s: Untyped=..., axes: Untyped=..., norm: Untyped=..., overwrite_x: bool=..., workers: Untyped=..., *, plan: Untyped = ...) -> None | def (a: _SupportsArray[dtype[numpy.bool] | dtype[number[Any]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool] | dtype[number[Any]]]] | bool | int | float | complex | _NestedSequence[bool | int | float | complex], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | partial[Any (from error)] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]], _MockFunction)]")  [no-any-expr]
+ scipy/fft/tests/test_backend.py:56:49: error: Expression type contains "Any" (has type "zip[(partial[Any (from error)] | None, def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], s: None | Sequence[int]=..., axes: None | Sequence[int]=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], s: None | Sequence[int]=..., axes: None | Sequence[int]=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]]=...) -> ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]] | def (x: Untyped, s: Untyped=..., axes: Untyped=..., norm: Untyped=..., overwrite_x: bool=..., workers: Untyped=..., *, plan: Untyped = ...) -> None | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | def (a: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]]=...) -> ndarray[Any, dtype[complexfloating[_64Bit, _64Bit]]] | def (a: _SupportsArray[dtype[numpy.bool] | dtype[number[Any]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool] | dtype[number[Any]]]] | bool | int | float | complex | _NestedSequence[bool | int | float | complex], n: None | int=..., axis: int=..., norm: None | 'backward' | 'ortho' | 'forward'=..., out: None | ndarray[Any, dtype[floating[_64Bit]]]=...) -> ndarray[Any, dtype[floating[_64Bit]]] | partial[Any (from error)] | partial[None], _MockFunction)]")  [no-any-expr]
- scipy/signal/tests/test_filter_design.py:658:9: error: Expression type contains "Any" (has type "(list[float | int] | Any, list[float | int], list[float] | list[complex])")  [no-any-expr]
+ scipy/signal/tests/test_filter_design.py:658:9: error: Expression type contains "Any" (has type "(Any | list[float | int], list[float | int], list[float] | list[complex])")  [no-any-expr]
- scipy/signal/tests/test_filter_design.py:658:9: error: Expression type contains "Any" (has type "list[float | int] | Any")  [no-any-expr]
+ scipy/signal/tests/test_filter_design.py:658:9: error: Expression type contains "Any" (has type "Any | list[float | int]")  [no-any-expr]
- scipy/signal/tests/test_filter_design.py:658:30: error: Expression type contains "Any" (has type "zip[(list[float | int] | Any, list[float | int], list[float] | list[complex])]")  [no-any-expr]
+ scipy/signal/tests/test_filter_design.py:658:30: error: Expression type contains "Any" (has type "zip[(Any | list[float | int], list[float | int], list[float] | list[complex])]")  [no-any-expr]
- scipy/signal/tests/test_filter_design.py:662:26: error: Expression type contains "Any" (has type "list[float | int] | Any")  [no-any-expr]
+ scipy/signal/tests/test_filter_design.py:662:26: error: Expression type contains "Any" (has type "Any | list[float | int]")  [no-any-expr]
- scipy/signal/tests/test_filter_design.py:667:26: error: Expression type contains "Any" (has type "list[float | int] | Any")  [no-any-expr]
+ scipy/signal/tests/test_filter_design.py:667:26: error: Expression type contains "Any" (has type "Any | list[float | int]")  [no-any-expr]
- scipy/signal/tests/test_filter_design.py:670:26: error: Expression type contains "Any" (has type "list[float | int] | Any")  [no-any-expr]
+ scipy/signal/tests/test_filter_design.py:670:26: error: Expression type contains "Any" (has type "Any | list[float | int]")  [no-any-expr]

@KotlinIsland KotlinIsland marked this pull request as draft October 31, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disable promotions
1 participant