-
Notifications
You must be signed in to change notification settings - Fork 8
stub mode for TYPE_CHECKING
and introducing BASEDMYPY_TYPE_CHECKING
#702
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment has been minimized.
This comment has been minimized.
DetachHead
reviewed
Jul 7, 2024
2330aa5
to
168374f
Compare
This comment has been minimized.
This comment has been minimized.
DetachHead
approved these changes
Jul 8, 2024
82d60b1
to
76fc4f0
Compare
This comment has been minimized.
This comment has been minimized.
76fc4f0
to
7bcd9e8
Compare
This comment has been minimized.
This comment has been minimized.
7bcd9e8
to
c99af2b
Compare
This comment has been minimized.
This comment has been minimized.
8d4c1b4
to
19238c5
Compare
This comment has been minimized.
This comment has been minimized.
b185beb
to
fbe2d7a
Compare
This comment has been minimized.
This comment has been minimized.
fbe2d7a
to
b1ef751
Compare
Diff from mypy_primer, showing the effect of this PR on open source code: pydantic (https://github.com/pydantic/pydantic)
- pydantic/v1/config.py: note: In member "__call__" of class "SchemaExtraCallable":
- pydantic/v1/config.py:21:9: error: Type of decorated function contains type "Any" ("def (self: SchemaExtraCallable, schema: dict[str, Any]) -> None") [no-any-decorated]
- pydantic/v1/config.py: note: In function "__call__":
- pydantic/v1/config.py: note: In member "__call__" of class "SchemaExtraCallable":
- pydantic/v1/config.py:25:9: error: Type of decorated function contains type "Any" ("def (self: SchemaExtraCallable, schema: dict[str, Any], model_class: type[BaseModel]) -> None") [no-any-decorated]
- pydantic/v1/types.py: note: At top level:
- pydantic/v1/types.py:837:12: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/v1/types.py:837:22: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/v1/main.py: note: In member "<lambda>" of class "BaseModel":
- pydantic/v1/main.py:320:70: error: Expression has type "Any" [no-any-expr]
- pydantic/v1/dataclasses.py: note: In class "Dataclass":
- pydantic/v1/dataclasses.py:88:9: error: Type of decorated function contains type "Any" ("def [DataclassT: Dataclass] (cls: type[DataclassT], v: Any) -> DataclassT") [no-any-decorated]
- pydantic/__init__.py:56:23: error: Expression has type "Any (from unimported type)" [no-any-expr]
- pydantic/_internal/_utils.py: note: In member "__contains__" of class "SafeGetItemProxy":
- pydantic/_internal/_utils.py:362:20: error: Expression type contains "Any" (has type "Mapping[str, Any]") [no-any-expr]
- pydantic/json_schema.py: note: At top level:
- pydantic/json_schema.py:2442:22: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/json_schema.py:2442:32: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/types.py: note: At top level:
- pydantic/types.py:882:20: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/types.py:882:30: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/types.py: note: At top level:
- pydantic/types.py:1346:12: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/types.py:1346:22: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/networks.py: note: At top level:
- pydantic/networks.py:659:21: error: Expression has type "Any" [no-any-expr]
- pydantic/root_model.py: note: In class "_RootModelMetaclass":
- pydantic/root_model.py:25:66: error: Expression type contains "Any" (has type "(def (default: Any=..., *, default_factory: () -> Any | None = ..., alias: str | None = ..., alias_priority: int | None = ..., validation_alias: str | AliasPath | AliasChoices | None = ..., serialization_alias: str | None = ..., title: str | None = ..., field_title_generator: (str, FieldInfo) -> str | None = ..., description: str | None = ..., examples: list[Any] | None = ..., exclude: bool | None = ..., discriminator: str | Discriminator | None = ..., deprecated: deprecated | str | bool | None = ..., json_schema_extra: JsonDict | (JsonDict) -> None | None = ..., frozen: bool | None = ..., validate_default: bool | None = ..., repr: bool = ..., init: bool | None = ..., init_var: bool | None = ..., kw_only: bool | None = ..., pattern: str | Pattern[str] | None = ..., strict: bool | None = ..., coerce_numbers_to_str: bool | None = ..., gt: Any (from unimported type) | None = ..., ge: Any (from unimported type) | None = ..., lt: Any (from unimported type) | None = ..., le: Any (from unimported type) | None = ..., multiple_of: float | None = ..., allow_inf_nan: bool | None = ..., max_digits: int | None = ..., decimal_places: int | None = ..., min_length: int | None = ..., max_length: int | None = ..., union_mode: 'smart' | 'left_to_right' = ..., fail_fast: bool | None = ..., **extra: _EmptyKwargs) -> Any, def (default: Any=..., *, default_factory: () -> Any | None = ..., init: False = ...) -> Any)") [no-any-expr]
- pydantic/root_model.py:25:67: error: Expression type contains "Any" (has type "def (default: Any=..., *, default_factory: () -> Any | None = ..., alias: str | None = ..., alias_priority: int | None = ..., validation_alias: str | AliasPath | AliasChoices | None = ..., serialization_alias: str | None = ..., title: str | None = ..., field_title_generator: (str, FieldInfo) -> str | None = ..., description: str | None = ..., examples: list[Any] | None = ..., exclude: bool | None = ..., discriminator: str | Discriminator | None = ..., deprecated: deprecated | str | bool | None = ..., json_schema_extra: JsonDict | (JsonDict) -> None | None = ..., frozen: bool | None = ..., validate_default: bool | None = ..., repr: bool = ..., init: bool | None = ..., init_var: bool | None = ..., kw_only: bool | None = ..., pattern: str | Pattern[str] | None = ..., strict: bool | None = ..., coerce_numbers_to_str: bool | None = ..., gt: Any (from unimported type) | None = ..., ge: Any (from unimported type) | None = ..., lt: Any (from unimported type) | None = ..., le: Any (from unimported type) | None = ..., multiple_of: float | None = ..., allow_inf_nan: bool | None = ..., max_digits: int | None = ..., decimal_places: int | None = ..., min_length: int | None = ..., max_length: int | None = ..., union_mode: 'smart' | 'left_to_right' = ..., fail_fast: bool | None = ..., **extra: _EmptyKwargs) -> Any") [no-any-expr]
- pydantic/root_model.py:25:87: error: Expression type contains "Any" (has type "def (default: Any=..., *, default_factory: () -> Any | None = ..., init: False = ...) -> Any") [no-any-expr]
- pydantic/functional_validators.py: note: At top level:
- pydantic/functional_validators.py:601:18: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/functional_validators.py:601:28: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/functional_validators.py:667:22: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/functional_validators.py:667:32: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/functional_serializers.py:369:22: error: Expression has type "Any (from omitted generics)" [no-any-expr]
- pydantic/functional_serializers.py:369:32: error: Expression has type "Any (from omitted generics)" [no-any-expr]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- File "/tmp/mypy_primer/old_mypy/venv/bin/mypy", line 8, in <module>
+ File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/__main__.py", line 15, in console_entry
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/__main__.py", line 15, in console_entry
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/main.py", line 103, in main
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/main.py", line 103, in main
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/main.py", line 210, in run_build
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/main.py", line 210, in run_build
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 197, in build
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 197, in build
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 274, in _build
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 274, in _build
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 3084, in dispatch
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 3084, in dispatch
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 3484, in process_graph
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 3484, in process_graph
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 3608, in process_stale_scc
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/build.py", line 3608, in process_stale_scc
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/errors.py", line 1019, in file_messages
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/errors.py", line 1019, in file_messages
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/errors.py", line 950, in format_messages
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/errors.py", line 950, in format_messages
- File "/tmp/mypy_primer/old_mypy/venv/lib/python3.10/site-packages/mypy/errors.py", line 1204, in render_messages
+ File "/tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/errors.py", line 1204, in render_messages
pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/ops/invalid.py:19: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/array_algos/masked_accumulations.py:15: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslib.pyi:5: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/sparse.pyi:5: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/reshape.pyi:3: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/parsers.pyi:8: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/ops.pyi:12: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/lib.pyi:17: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/join.pyi:3: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/hashtable.pyi:10: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/hashing.pyi:3: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/groupby.pyi:5: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/algos.pyi:5: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/window/indexers.pyi:3: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/window/aggregations.pyi:9: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslibs/tzconversion.pyi:9: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslibs/strptime.pyi:3: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslibs/parsing.pyi:5: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslibs/np_datetime.pyi:3: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslibs/fields.pyi:3: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/_numba/kernels/min_max_.py:18: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslibs/vectorized.pyi:8: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/_numba/kernels/var_.py:18: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/_numba/kernels/sum_.py:22: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslibs/timedeltas.pyi:16: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslibs/period.pyi:10: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/tslibs/offsets.pyi:17: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/_ranges.py:22: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/_numba/kernels/mean_.py:21: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/ops/mask_ops.py:17: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/dtypes/base.py:29: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/dtypes/dtypes.py:77: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/util/hashing.py:31: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/dtypes/missing.py:51: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/nanops.py:22: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/array_algos/replace.py:25: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/array_algos/quantile.py:13: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/array_algos/masked_reductions.py:20: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/timedeltas.py:67: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/period.py:82: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/dtypes/cast.py:94: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/missing.py:23: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/_utils.py:17: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/sorting.py:39: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/array_algos/take.py:27: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/algorithms.py:26: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/tseries/frequencies.py:48: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/base.py:86: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/masked.py:82: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/datetimes.py:81: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/_mixins.py:17: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/numpy_.py:32: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/numeric.py:37: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/boolean.py:31: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/string_.py:57: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/arrow/array.py:182: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/datetimelike.py:54: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/string_arrow.py:60: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/base.py:21: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/interval.py:26: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/categorical.py:100: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/sparse/array.py:106: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/tools/numeric.py:35: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/strings/accessor.py:16: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/array_algos/putmask.py:22: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/io/pytables.py:117: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/series.py:162: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexing.py:82: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/generic.py:36: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/frame.py:203: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/apply.py:19: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/window/rolling.py:99: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/window/ewm.py:58: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/reshape/merge.py:31: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/methods/describe.py:20: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/internals/managers.py:97: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/internals/construction.py:83: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/internals/blocks.py:27: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexes/range.py:55: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexes/period.py:49: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexes/multi.py:31: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexes/interval.py:94: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexes/extension.py:24: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexes/datetimes.py:53: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexes/datetimelike.py:74: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexes/category.py:43: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/indexes/base.py:43: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/groupby/grouper.py:49: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/groupby/groupby.py:46: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/computation/pytables.py:45: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/internals.pyi:11: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/groupby/ops.py:26: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/_libs/index.pyi:3: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/resample.py:99: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/io/formats/csvs.py:40: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/reshape/reshape.py:58: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/core/arrays/sparse/scipy_sparse.py:25: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/plotting/_matplotlib/converter.py:31: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
+ pandas/plotting/_matplotlib/core.py:89: error: Module "pandas._typing" does not explicitly export attribute "npt" [attr-defined]
beartype (https://github.com/beartype/beartype)
- beartype/_decor/decormain.py:109:16: error: Expression type contains "Any" (has type "BeartypeableT@beartype") [no-any-expr]
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]
comtypes (https://github.com/enthought/comtypes)
- comtypes/_post_coinit/misc.py:155:6: error: An overloaded function outside a stub file must have an implementation [no-overload-impl]
- comtypes/_post_coinit/misc.py:155:6: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-overload-impl for more info
discord.py (https://github.com/Rapptz/discord.py)
- version: 2.6.0+dev.49af71298dbb5d1d23a121893e8013512a65972a
+ version: 2.6.0+dev.6f3b4f307aef16c488347932bfd8d70754a5eb08
- File "/nodes.py", line 789, in accept
+ File "/nodes.py", line 791, in accept
- File "/nodes.py", line 1225, in accept
+ File "/nodes.py", line 1227, in accept
- File "/nodes.py", line 1312, in accept
+ File "/nodes.py", line 1314, in accept
sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/util/i18n.py:250:55: error: Expression type contains "Any" (has type "def (date: date | None=..., format: 'full' | 'long' | 'medium' | 'short' | str=..., locale: Locale | str | None=...) -> str | DateFormatter & def (datetime: Any (from unimported type)=..., format: 'full' | 'long' | 'medium' | 'short' | str=..., tzinfo: tzinfo | None=..., locale: Locale | str | None=...) -> str | def (time: time | datetime | float | None=..., format: 'full' | 'long' | 'medium' | 'short' | str=..., tzinfo: tzinfo | None=..., locale: Locale | str | None=...) -> str | TimeFormatter & def (datetime: Any (from unimported type)=..., format: 'full' | 'long' | 'medium' | 'short' | str=..., tzinfo: tzinfo | None=..., locale: Locale | str | None=...) -> str") [no-any-expr]
scipy (https://github.com/scipy/scipy)
- scipy/linalg/tests/test_procrustes.py:71:9: error: Expression type contains "Any" (has type "(Any | None | ndarray[Any, dtype[floating[_64Bit]]], Any | ndarray[Any, dtype[floating[_64Bit]]] | None)") [no-any-expr]
+ scipy/linalg/tests/test_procrustes.py:71:9: error: Expression type contains "Any" (has type "(Any | None | ndarray[Any, dtype[floating[_64Bit]]], Any | None | ndarray[Any, dtype[floating[_64Bit]]])") [no-any-expr]
- scipy/linalg/tests/test_procrustes.py:71:9: error: Expression type contains "Any" (has type "Any | ndarray[Any, dtype[floating[_64Bit]]] | None") [no-any-expr]
- scipy/linalg/tests/test_procrustes.py:71:21: error: Expression type contains "Any" (has type "product[(Any | None | ndarray[Any, dtype[floating[_64Bit]]], Any | ndarray[Any, dtype[floating[_64Bit]]] | None)]") [no-any-expr]
+ scipy/linalg/tests/test_procrustes.py:71:21: error: Expression type contains "Any" (has type "product[(Any | None | ndarray[Any, dtype[floating[_64Bit]]], Any | None | ndarray[Any, dtype[floating[_64Bit]]])]") [no-any-expr]
- scipy/linalg/tests/test_procrustes.py:72:45: error: Expression type contains "Any" (has type "Any | ndarray[Any, dtype[floating[_64Bit]]] | None") [no-any-expr]
+ scipy/linalg/tests/test_procrustes.py:72:45: error: Expression type contains "Any" (has type "Any | None | ndarray[Any, dtype[floating[_64Bit]]]") [no-any-expr]
- scipy/fft/tests/test_backend.py:56:49: error: Expression type contains "Any" (has type "zip[(None | 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], 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]]] | partial[Any (from error)] | partial[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], 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[numpy.bool | number[Any]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool | 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]]] | def (x: Untyped, s: Untyped=..., axes: Untyped=..., norm: Untyped=..., overwrite_x: bool=..., workers: Untyped=..., *, plan: Untyped = ...) -> None, _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 (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 | number[Any]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool | 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]]] | def (x: Untyped, s: Untyped=..., axes: Untyped=..., norm: Untyped=..., overwrite_x: bool=..., workers: Untyped=..., *, plan: Untyped = ...) -> None | 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]]] | partial[None], _MockFunction)]") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:416:5: error: Expression type contains "Any" (has type "tuple[None | int | Any | str, ...]") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:416:5: error: Expression type contains "Any" (has type "tuple[Any | None | str | int, ...]") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:416:5: error: Expression type contains "Any" (has type "None | int | Any | str") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:416:5: error: Expression type contains "Any" (has type "Any | None | str | int") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:416:46: error: Expression type contains "Any" (has type "product[tuple[None | int | Any | str, ...]]") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:416:46: error: Expression type contains "Any" (has type "product[tuple[Any | None | str | int, ...]]") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:417:12: error: Expression type contains "Any" (has type "None | int | Any | str") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:417:12: error: Expression type contains "Any" (has type "Any | None | str | int") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:417:12: error: Expression type contains "Any" (has type "bool | Any") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:417:38: error: Expression type contains "Any" (has type "None | int | Any | str") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:417:38: error: Expression type contains "Any" (has type "Any | None | str | int") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:419:51: error: Expression type contains "Any" (has type "None | int | Any | str") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:419:51: error: Expression type contains "Any" (has type "Any | None | str | int") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:419:51: error: Argument "fft_mode" to "ShortTimeFFT" has incompatible type "None | int | Any | str"; expected "'twosided' | 'centered' | 'onesided' | 'onesided2X'" [arg-type]
+ scipy/signal/tests/test_short_time_fft.py:419:51: error: Argument "fft_mode" to "ShortTimeFFT" has incompatible type "Any | None | str | int"; expected "'twosided' | 'centered' | 'onesided' | 'onesided2X'" [arg-type]
- scipy/signal/tests/test_short_time_fft.py:419:63: error: Expression type contains "Any" (has type "None | int | Any | str") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:419:63: error: Expression type contains "Any" (has type "Any | None | str | int") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:419:63: error: Argument "mfft" to "ShortTimeFFT" has incompatible type "None | int | Any | str"; expected "int | None" [arg-type]
+ scipy/signal/tests/test_short_time_fft.py:419:63: error: Argument "mfft" to "ShortTimeFFT" has incompatible type "Any | None | str | int"; expected "int | None" [arg-type]
- scipy/signal/tests/test_short_time_fft.py:420:37: error: Expression type contains "Any" (has type "None | int | Any | str") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:420:37: error: Expression type contains "Any" (has type "Any | None | str | int") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:420:37: error: Argument "scale_to" to "ShortTimeFFT" has incompatible type "None | int | Any | str"; expected "'magnitude' | 'psd' | None" [arg-type]
+ scipy/signal/tests/test_short_time_fft.py:420:37: error: Argument "scale_to" to "ShortTimeFFT" has incompatible type "Any | None | str | int"; expected "'magnitude' | 'psd' | None" [arg-type]
- scipy/signal/tests/test_short_time_fft.py:420:58: error: Expression type contains "Any" (has type "None | int | Any | str") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:420:58: error: Expression type contains "Any" (has type "Any | None | str | int") [no-any-expr]
- scipy/signal/tests/test_short_time_fft.py:420:58: error: Argument "phase_shift" to "ShortTimeFFT" has incompatible type "None | int | Any | str"; expected "int | None" [arg-type]
+ scipy/signal/tests/test_short_time_fft.py:420:58: error: Argument "phase_shift" to "ShortTimeFFT" has incompatible type "Any | None | str | int"; expected "int | None" [arg-type]
- scipy/signal/tests/test_short_time_fft.py:424:25: error: Expression type contains "Any" (has type "None | int | Any | str") [no-any-expr]
+ scipy/signal/tests/test_short_time_fft.py:424:25: error: Expression type contains "Any" (has type "Any | None | str | int") [no-any-expr]
pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/config/__init__.py:365:34: error: Expression has type "Any" [no-any-expr]
+ src/_pytest/mark/structures.py: note: At top level:
+ src/_pytest/mark/structures.py:433: error: Unused "type: ignore[no-overload-impl]" comment [unused-ignore]
- src/_pytest/mark/structures.py: note: In member "__call__" of class "_SkipMarkDecorator":
- src/_pytest/mark/structures.py:434:9: error: Type of decorated function contains type "Any" ("def [Markable: (...) -> object | type] (self: _SkipMarkDecorator, arg: Markable) -> Markable") [no-any-decorated]
+ src/_pytest/mark/structures.py: note: At top level:
+ src/_pytest/mark/structures.py:448: error: Unused "type: ignore[no-overload-impl]" comment [unused-ignore]
- src/_pytest/mark/structures.py: note: In member "__call__" of class "_XfailMarkDecorator":
- src/_pytest/mark/structures.py:449:9: error: Type of decorated function contains type "Any" ("def [Markable: (...) -> object | type] (self: _XfailMarkDecorator, arg: Markable) -> Markable") [no-any-decorated]
steam.py (https://github.com/Gobot1234/steam.py)
- steam/reaction.py: note: In member "__init__" of class "PartialMessageReaction":
- steam/reaction.py:143:10: error: An overloaded function outside a stub file must have an implementation [no-overload-impl]
- steam/reaction.py:143:10: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-overload-impl for more info
- steam/reaction.py:144: error: "type: ignore" comment without error code (consider "type: ignore[no-any-decorated, no-any-unimported]" instead) [ignore-without-code]
+ steam/reaction.py:144: error: "type: ignore" comment without error code (consider "type: ignore[no-any-unimported]" instead) [ignore-without-code]
- steam/reaction.py: note: In member "__init__" of class "PartialMessageReaction":
- steam/reaction.py:148:9: error: Type of decorated function contains type "Any" ("def (self: PartialMessageReaction, _state: ConnectionState, message: Any (from unimported type), emoticon: None, sticker: Sticker) -> None") [no-any-decorated]
- steam/reaction.py: note: In member "__init__" of class "MessageReaction":
- steam/reaction.py:169:10: error: An overloaded function outside a stub file must have an implementation [no-overload-impl]
- steam/reaction.py:170: error: "type: ignore" comment without error code (consider "type: ignore[no-any-decorated, no-any-unimported]" instead) [ignore-without-code]
+ steam/reaction.py:170: error: "type: ignore" comment without error code (consider "type: ignore[no-any-unimported]" instead) [ignore-without-code]
- steam/reaction.py: note: In member "__init__" of class "MessageReaction":
- steam/reaction.py:182:9: error: Type of decorated function contains type "Any" ("def (self: MessageReaction, _state: ConnectionState, message: Any (from unimported type), emoticon: None, sticker: Sticker, user: Any (from unimported type) | ClientUser | PartialUser, created_at: datetime | None=..., ordinal: int | None=...) -> None") [no-any-decorated]
- steam/ext/csgo/models.py:178:10: error: An overloaded function outside a stub file must have an implementation [no-overload-impl]
- steam/ext/csgo/models.py:179: error: "type: ignore" comment without error code (consider "type: ignore[no-any-decorated, valid-type]" instead) [ignore-without-code]
+ steam/ext/csgo/models.py:179: error: "type: ignore" comment without error code (consider "type: ignore[valid-type]" instead) [ignore-without-code]
- steam/ext/tf2/client.py:36:10: error: An overloaded function outside a stub file must have an implementation [no-overload-impl]
scrapy (https://github.com/scrapy/scrapy)
- scrapy/core/scraper.py:61:29: error: Expression has type "Any (from unimported type)" [no-any-expr]
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- bson/codec_options.py: note: In class "CodecOptions":
- bson/codec_options.py:271:9: error: Type of decorated function contains type "Any" ("def (cls: type[CodecOptions[_DocumentType@CodecOptions]], obj: Iterable[Any]) -> CodecOptions[_DocumentType@CodecOptions]") [no-any-decorated]
kornia (https://github.com/kornia/kornia)
- kornia/nerf/data_utils.py:170:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
trio (https://github.com/python-trio/trio)
+ src/trio/_subprocess.py: note: At top level:
+ src/trio/_subprocess.py:1072: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_subprocess.py:1106: error: Unused "type: ignore" comment [unused-ignore]
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[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]] | 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]])") [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[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, 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]]])") [no-any-expr]
- mkdocs/tests/config/config_tests.py:215:9: error: Expression type contains "Any" (has type "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]] | 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]]") [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[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]] | 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]])]") [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[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, 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]]]") [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[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, 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]]])]") [no-any-expr]
- mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "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]] | 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]]") [no-any-expr]
- mkdocs/tests/config/config_tests.py:222:54: error: Expression type contains "Any" (has type "list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | list[Untyped | str] | dict[str, None | Locale]") [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[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, 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]]]") [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[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]] | 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]]") [no-any-expr]
- mkdocs/tests/config/config_tests.py:223:70: error: Expression type contains "Any" (has type "list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | list[Untyped | str] | dict[str, None | Locale]") [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[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, 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]]]") [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[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]] | 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]]") [no-any-expr]
- mkdocs/tests/config/config_tests.py:224:55: error: Expression type contains "Any" (has type "list[str] | dict[str, str | bool | Locale | dict[str, None] | list[Any (from error)] | int | dict[str, int]] | dict[str, str | Locale | bool | dict[str, bool | None] | list[Any (from error)] | int | None] | list[Untyped | str] | dict[str, None | Locale]") [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[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, 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]]]") [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]
pandera (https://github.com/pandera-dev/pandera)
- pandera/engines/engine.py: note: In class "Dispatch":
- pandera/engines/engine.py:50:9: error: Type of decorated function contains type "Any" ("(data_type: Any, func: (Any) -> DataType) -> (Any) -> DataType") [no-any-decorated]
optuna (https://github.com/optuna/optuna)
- tests/samplers_tests/tpe_tests/test_parzen_estimator.py:25:9: error: Expression type contains "Any" (has type "(ndarray[Untyped, Untyped] | float, ndarray[Untyped, Untyped] | float)") [no-any-expr]
+ tests/samplers_tests/tpe_tests/test_parzen_estimator.py:25:9: error: Expression type contains "Any" (has type "(float | ndarray[Untyped, Untyped], float | ndarray[Untyped, Untyped])") [no-any-expr]
- tests/samplers_tests/tpe_tests/test_parzen_estimator.py:25:9: error: Expression type contains "Any" (has type "ndarray[Untyped, Untyped] | float") [no-any-expr]
+ tests/samplers_tests/tpe_tests/test_parzen_estimator.py:25:9: error: Expression type contains "Any" (has type "float | ndarray[Untyped, Untyped]") [no-any-expr]
- tests/samplers_tests/tpe_tests/test_parzen_estimator.py:25:31: error: Expression type contains "Any" (has type "zip[(ndarray[Untyped, Untyped] | float, ndarray[Untyped, Untyped] | float)]") [no-any-expr]
+ tests/samplers_tests/tpe_tests/test_parzen_estimator.py:25:31: error: Expression type contains "Any" (has type "zip[(float | ndarray[Untyped, Untyped], float | ndarray[Untyped, Untyped])]") [no-any-expr]
- tests/samplers_tests/tpe_tests/test_parzen_estimator.py:26:53: error: Expression type contains "Any" (has type "ndarray[Untyped, Untyped] | float") [no-any-expr]
+ tests/samplers_tests/tpe_tests/test_parzen_estimator.py:26:53: error: Expression type contains "Any" (has type "float | ndarray[Untyped, Untyped]") [no-any-expr]
- tests/samplers_tests/tpe_tests/test_parzen_estimator.py:26:71: error: Expression type contains "Any" (has type "ndarray[Untyped, Untyped] | float") [no-any-expr]
+ tests/samplers_tests/tpe_tests/test_parzen_estimator.py:26:71: error: Expression type contains "Any" (has type "float | ndarray[Untyped, Untyped]") [no-any-expr]
ibis (https://github.com/ibis-project/ibis)
- ibis/backends/tests/test_numeric.py:1036:17: error: Expression type contains "Any" (has type "list[Any | int]") [no-any-expr]
+ ibis/backends/tests/test_numeric.py:1036:17: error: Expression type contains "Any" (has type "list[int | Any]") [no-any-expr]
- ibis/backends/tests/test_numeric.py:1036:22: error: Expression type contains "Any" (has type "map[Any | int]") [no-any-expr]
+ ibis/backends/tests/test_numeric.py:1036:22: error: Expression type contains "Any" (has type "map[int | Any]") [no-any-expr]
- ibis/backends/tests/test_numeric.py:1054:17: error: Expression type contains "Any" (has type "list[Any | int]") [no-any-expr]
+ ibis/backends/tests/test_numeric.py:1054:17: error: Expression type contains "Any" (has type "list[int | Any]") [no-any-expr]
- ibis/backends/tests/test_numeric.py:1054:22: error: Expression type contains "Any" (has type "map[Any | int]") [no-any-expr]
+ ibis/backends/tests/test_numeric.py:1054:22: error: Expression type contains "Any" (has type "map[int | Any]") [no-any-expr]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
- suggestionbox/checks.py: note: In function "has_active_box":
- suggestionbox/checks.py:28:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- suggestionbox/checks.py: note: In function "check":
- suggestionbox/checks.py:28:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:987:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:987:34: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:987:35: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:987:41: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:988:24: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:988:43: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:989:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:989:29: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:990:21: error: Expression type contains "Any" (has type "dict[Any (from unimported type), int]") [no-any-expr]
- rolemanagement/core.py:990:26: error: Expression has type "Any (from unimported type)" [no-any-expr]
- rolemanagement/core.py:990:34: error: Expression has type "Any (from unimported type)" [no-any-expr]
pyodide (https://github.com/pyodide/pyodide)
- pyodide-build/pyodide_build/out_of_tree/pypi.py: note: At top level:
- pyodide-build/pyodide_build/out_of_tree/pypi.py:170:14: error: Expression has type "Any (from unimported type)" [no-any-expr]
arviz (https://github.com/arviz-devs/arviz)
- arviz/data/inference_data.py:708:28: error: Expression type contains "Any" (has type "map[reversed[Any | int]]") [no-any-expr]
+ arviz/data/inference_data.py:708:28: error: Expression type contains "Any" (has type "map[reversed[int | Any]]") [no-any-expr]
- arviz/data/inference_data.py:708:28: error: Argument 1 to "dict" has incompatible type "map[reversed[Any | int]]"; expected "Iterable[(Never, Never)]" [arg-type]
+ arviz/data/inference_data.py:708:28: error: Argument 1 to "dict" has incompatible type "map[reversed[int | Any]]"; expected "Iterable[(Never, Never)]" [arg-type]
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/metrics/tests/test_pairwise_distances_reduction.py:1266:5: error: Expression type contains "Any" (has type "(Untyped | ndarray[Any, dtype[signedinteger[Any]]], Untyped | ndarray[Any, dtype[signedinteger[Any]]])") [no-any-expr]
+ sklearn/metrics/tests/test_pairwise_distances_reduction.py:1266:5: error: Expression type contains "Any" (has type "(ndarray[Any, dtype[signedinteger[Any]]] | Untyped, ndarray[Any, dtype[signedinteger[Any]]] | Untyped)") [no-any-expr]
- sklearn/metrics/tests/test_pairwise_distances_reduction.py:1266:5: error: Expression type contains "Any" (has type "Untyped | ndarray[Any, dtype[signedinteger[Any]]]") [no-any-expr]
+ sklearn/metrics/tests/test_pairwise_distances_reduction.py:1266:5: error: Expression type contains "Any" (has type "ndarray[Any, dtype[signedinteger[Any]]] | Untyped") [no-any-expr]
- sklearn/metrics/tests/test_pairwise_distances_reduction.py:1266:19: error: Expression type contains "Any" (has type "product[(Untyped | ndarray[Any, dtype[signedinteger[Any]]], Untyped | ndarray[Any, dtype[signedinteger[Any]]])]") [no-any-expr]
+ sklearn/metrics/tests/test_pairwise_distances_reduction.py:1266:19: error: Expression type contains "Any" (has type "product[(ndarray[Any, dtype[signedinteger[Any]]] | Untyped, ndarray[Any, dtype[signedinteger[Any]]] | Untyped)]") [no-any-expr]
- sklearn/metrics/tests/test_pairwise_distances_reduction.py:1267:12: error: Expression type contains "Any" (has type "Untyped | ndarray[Any, dtype[signedinteger[Any]]]") [no-any-expr]
+ sklearn/metrics/tests/test_pairwise_distances_reduction.py:1267:12: error: Expression type contains "Any" (has type "ndarray[Any, dtype[signedinteger[Any]]] | Untyped") [no-any-expr]
- sklearn/metrics/tests/test_pairwise_distances_reduction.py:1267:24: error: Expression type contains "Any" (has type "Untyped | ndarray[Any, dtype[signedinteger[Any]]]") [no-any-expr]
+ sklearn/metrics/tests/test_pairwise_distances_reduction.py:1267:24: error: Expression type contains "Any" (has type "ndarray[Any, dtype[signedinteger[Any]]] | Untyped") [no-any-expr]
- sklearn/metrics/tests/test_pairwise_distances_reduction.py:1270:13: error: Expression type contains "Any" (has type "Untyped | ndarray[Any, dtype[signedinteger[Any]]]") [no-any-expr]
+ sklearn/metrics/tests/test_pairwise_distances_reduction.py:1270:13: error: Expression type contains "Any" (has type "ndarray[Any, dtype[signedinteger[Any]]] | Untyped") [no-any-expr]
- sklearn/metrics/tests/test_pairwise_distances_reduction.py:1271:13: error: Expression type contains "Any" (has type "Untyped | ndarray[Any, dtype[signedinteger[Any]]]") [no-any-expr]
+ sklearn/metrics/tests/test_pairwise_distances_reduction.py:1271:13: error: Expression type contains "Any" (has type "ndarray[Any, dtype[signedinteger[Any]]] | Untyped") [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:320:22: error: Expression type contains "Any" (has type "product[(Any (from error) | list[list[int]] | ndarray[Any, dtype[Any]] | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[float] | list[int | float] | list[list[str]], 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[list[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]], 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]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | list[list[int]] | list[list[str]] | Any (from error))]") [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "(Any (from error) | list[list[int]] | ndarray[Any, dtype[Any]] | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[float] | list[int | float] | list[list[str]], 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[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]], 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]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | list[list[int]] | list[list[str]] | Any (from error))") [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]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]]") [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:324:5: error: Expression type contains "Any" (has type "Any (from error) | list[list[int]] | ndarray[Any, dtype[Any]] | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[float] | list[int | float] | 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]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | list[list[int]] | list[list[str]] | Any (from error)") [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[(Any (from error) | list[list[int]] | ndarray[Any, dtype[Any]] | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[float] | list[int | float] | list[list[str]], 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[Any (from error)]] | ndarray[Any, dtype[Any]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]], 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]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | list[list[int]] | list[list[str]] | Any (from error))]") [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:41: error: Expression type contains "Any" (has type "Any (from error) | list[list[int]] | ndarray[Any, dtype[Any]] | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[float] | list[int | float] | list[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]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | list[list[int]] | list[list[str]] | Any (from error)") [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:326: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]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]]") [no-any-expr]
+ sklearn/utils/tests/test_multiclass.py:328: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]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | Any (from error) | list[list[int]] | list[float] | list[int | float] | list[list[str]]") [no-any-expr]
- sklearn/utils/tests/test_multiclass.py:328:27: error: Expression type contains "Any" (has type "Any (from error) | list[list[int]] | ndarray[Any, dtype[Any]] | _NotAnArray | list[list[Any (from error)]] | list[()] | list[ndarray[Any, dtype[Any]]] | list[set[int]] | list[frozenset[int]] | list[dict[int, str]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | list[str] | list[float] | list[int | float] | 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]] | list[int] | ndarray[Any, dtype[signedinteger[_8Bit]]] | ndarray[Any, dtype[unsignedinteger[_8Bit]]] | ndarray[Any, dtype[floating[_32Bit]]] | _NotAnArray | list[str] | list[float] | list[int | float] | list[list[int]] | list[list[str]] | Any (from error)") [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/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/tree/tests/test_tree.py:643:5: error: Expression type contains "Any" (has type "(int | None, Any (from omitted generics))") [no-any-expr]
+ sklearn/tree/tests/test_tree.py:643:5: error: Expression type contains "Any" (has type "(None | int, Any (from omitted generics))") [no-any-expr]
- sklearn/tree/tests/test_tree.py:643:33: error: Expression type contains "Any" (has type "product[(int | None, Any (from omitted generics))]") [no-any-expr]
+ sklearn/tree/tests/test_tree.py:643:33: error: Expression type contains "Any" (has type "product[(None | int, Any (from omitted generics))]") [no-any-expr]
- sklearn/tree/tests/test_tree.py:822:5: error: Expression type contains "Any" (has type "(int | None, Any (from omitted generics))") [no-any-expr]
+ sklearn/tree/tests/test_tree.py:822:5: error: Expression type contains "Any" (has type "(None | int, Any (from omitted generics))") [no-any-expr]
- sklearn/tree/tests/test_tree.py:822:33: error: Expression type contains "Any" (has type "product[(int | None, Any (from omitted generics))]") [no-any-expr]
+ sklearn/tree/tests/test_tree.py:822:33: error: Expression type contains "Any" (has type "product[(None | int, Any (from omitted generics))]") [no-any-expr]
jax (https://github.com/google/jax)
- jax/_src/util.py:54:3: error: Type of decorated function contains type "Any" ("def (Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], /, *args: Untyped) -> list[tuple[Any, ...]]") [no-any-decorated]
- jax/_src/util.py:57:12: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:57:17: error: Expression type contains "Any" (has type "map[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:57:27: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- jax/_src/util.py:58:13: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:58:13: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- jax/_src/util.py:59:5: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- jax/_src/util.py:59:16: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:60:18: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- jax/_src/util.py:60:63: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:61:12: error: Expression type contains "Any" (has type "list[tuple[Any, ...]]") [no-any-expr]
- jax/_src/util.py:61:17: error: Expression type contains "Any" (has type "zip[tuple[Any, ...]]") [no-any-expr]
- jax/_src/util.py:61:22: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:81:3: error: Type of decorated function contains type "Any" ("def [T] (f: (...) -> T, Iterable[Any], Iterable[Any], Iterable[Any], Iterable[Any], /, *args: Untyped) -> list[T]") [no-any-decorated]
- jax/_src/util.py:84:12: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:84:17: error: Expression type contains "Any" (has type "map[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:84:27: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- jax/_src/util.py:85:13: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:85:13: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- jax/_src/util.py:86:5: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- jax/_src/util.py:86:16: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:87:18: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- jax/_src/util.py:87:63: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/_src/util.py:88:21: error: Expression type contains "Any" (has type "(T1@safe_map) -> T@safe_map | (T1@safe_map, T2@safe_map) -> T@safe_map | (T1@safe_map, T2@safe_map, T3@safe_map) -> T@safe_map | (...) -> T@safe_map") [no-any-expr]
- jax/_src/util.py:88:25: error: Expression type contains "Any" (has type "list[list[Any (unannotated)]]") [no-any-expr]
- jax/core.py:197:13: error: Expression type contains "Any" (has type "def (eqns: Untyped, context: JaxprPpContext, settings: JaxprPpSettings) -> Doc") [no-any-expr]
- jax/core.py:200:23: error: Expression type contains "Any" (has type "def (jaxpr: Untyped, eqns_fn: Untyped, context: JaxprPpContext, settings: JaxprPpSettings) -> Doc") [no-any-expr]
- jax/core.py:201:15: error: Expression type contains "Any" (has type "def (jaxprs: Untyped, context: JaxprPpContext, settings: JaxprPpSettings) -> Doc") [no-any-expr]
- jax/core.py:202:16: error: Expression type contains "Any" (has type "def (k: str, v: Any, context: JaxprPpContext, settings: JaxprPpSettings) -> Doc") [no-any-expr]
- jax/core.py:203:17: error: Expression type contains "Any" (has type "def (kv_pairs: Untyped, context: JaxprPpContext, settings: JaxprPpSettings) -> Doc") [no-any-expr]
- jax/core.py:205:13: error: Expression type contains "Any" (has type "def (vs: Sequence[Any], context: JaxprPpContext, *, separator: str = ..., print_shapes: bool = ...) -> Doc") [no-any-expr]
- jax/interpreters/xla.py:89:8: error: Expression has type "Any (from unimported type)" [no-any-expr]
- jax/interpreters/xla.py:90:8: error: Expression has type "Any (from unimported type)" [no-any-expr]
- jax/random.py:237:13: error: Expression type contains "Any" (has type "def (key: Array | ndarray[Untyped, Untyped] | numpy.bool | number[Untyped] | bool | int | float | complex, x: Array | ndarray[Untyped, Untyped] | numpy.bool | number[Untyped] | bool | int | float | complex, axis: int=...) -> Array") [no-any-expr]
- jax/experimental/host_callback.py:2009:12: error: Expression type contains "Any" (has type "def (tap_func: Untyped, arg: Untyped, *, result: Untyped = ..., tap_with_device: bool = ..., device_index: int = ..., callback_flavor: Untyped = ..., **kwargs: Untyped) -> None") [no-any-expr]
- jax/experimental/host_callback.py:2010:14: error: Expression type contains "Any" (has type "def (arg: Untyped, *, result: Untyped = ..., tap_with_device: bool = ..., device_index: int = ..., output_stream: Untyped = ..., threshold: Untyped = ..., callback_flavor: Untyped = ..., **kwargs: Untyped) -> None") [no-any-expr]
- jax/experimental/host_callback.py:2011:10: error: Expression type contains "Any" (has type "def (callback_func: (...) -> Untyped, arg: Untyped, *, result_shape: Untyped = ..., call_with_device: bool = ..., device_index: int = ..., callback_flavor: Untyped = ...) -> None") [no-any-expr]
- jax/experimental/export/__init__.py:54:12: error: Expression type contains "Any" (has type "def (fun_jax: (...) -> Untyped, *, lowering_platforms: Sequence[str] | None = ..., disabled_checks: Sequence[DisabledSafetyCheck] = ..., _device_assignment_for_internal_jax2tf_use_only: Untyped = ...) -> (...) -> Exported") [no-any-expr]
- jax/experimental/export/__init__.py:55:10: error: Expression type contains "Any" (has type "def (exported: Exported) -> (...) -> Array") [no-any-expr]
- jax/experimental/export/__init__.py:56:19: error: Expression type contains "Any" (has type "def (exported: Exported) -> (...) -> Array") [no-any-expr]
- jax/experimental/export/__init__.py:65:25: error: Expression type contains "Any" (has type "def (args: Untyped, shapes_specs: Untyped, constraints: Sequence[str]=..., scope: SymbolicScope | None=..., symbolic_constraints: Sequence[str]=..., symbolic_scope: SymbolicScope | None=...) -> None") [no-any-expr]
sympy (https://github.com/sympy/sympy)
- sympy/solvers/solvers.py:3633:38: error: Expression type contains "Any" (has type "dict[Dummy | Any, Any]") [no-any-expr]
+ sympy/solvers/solvers.py:3633:38: error: Expression type contains "Any" (has type "dict[Any | Dummy, Any]") [no-any-expr]
- sympy/solvers/solvers.py:3633:43: error: Expression type contains "Any" (has type "zip[(Dummy | Any, Any)]") [no-any-expr]
+ sympy/solvers/solvers.py:3633:43: error: Expression type contains "Any" (has type "zip[(Any | Dummy, Any)]") [no-any-expr]
- sympy/series/tests/test_limits.py:455:5: error: Expression type contains "Any" (has type "(int, (Any, Any (unannotated) | None | int))") [no-any-expr]
+ sympy/series/tests/test_limits.py:455:5: error: Expression type contains "Any" (has type "(int, (Any, int | Any (unannotated) | None))") [no-any-expr]
- sympy/series/tests/test_limits.py:455:5: error: Expression type contains "Any" (has type "(Any, Any (unannotated) | None | int)") [no-any-expr]
+ sympy/series/tests/test_limits.py:455:5: error: Expression type contains "Any" (has type "(Any, int | Any (unannotated) | None)") [no-any-expr]
- sympy/series/tests/test_limits.py:455:5: error: Expression type contains "Any" (has type "Any (unannotated) | None | int") [no-any-expr]
+ sympy/series/tests/test_limits.py:455:5: error: Expression type contains "Any" (has type "int | Any (unannotated) | None") [no-any-expr]
- sympy/series/tests/test_limits.py:455:27: error: Expression type contains "Any" (has type "enumerate[(Any, Any (unannotated) | None | int)]") [no-any-expr]
+ sympy/series/tests/test_limits.py:455:27: error: Expression type contains "Any" (has type "enumerate[(Any, int | Any (unannotated) | None)]") [no-any-expr]
- sympy/series/tests/test_limits.py:455:37: error: Expression type contains "Any" (has type "zip[(Any, Any (unannotated) | None | int)]") [no-any-expr]
+ sympy/series/tests/test_limits.py:455:37: error: Expression type contains "Any" (has type "zip[(Any, int | Any (unannotated) | None)]") [no-any-expr]
- sympy/series/tests/test_limits.py:459:20: error: Expression type contains "Any" (has type "Any (unannotated) | bool") [no-any-expr]
+ sympy/series/tests/test_limits.py:459:20: error: Expression type contains "Any" (has type "bool | Any (unannotated)") [no-any-expr]
- sympy/series/tests/test_limits.py:459:46: error: Expression type contains "Any" (has type "Any (unannotated) | None | int") [no-any-expr]
+ sympy/series/tests/test_limits.py:459:46: error: Expression type contains "Any" (has type "int | Any (unannotated) | None") [no-any-expr]
- sympy/geometry/tests/test_point.py:389:9: error: Incompatible types in assignment (expression has type "(Point | list[int] | (int, int), Point | list[int] | (int, 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 "((int, int) | Point | list[int], (int, int) | Point | list[int])", variable has type "(int, int) | list[int] | Point") [assignment]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TYPE_CHECKING
blocks #656BASEDMYPY_TYPE_CHECKING
variable #524FunctionType
with generics is treated as if it's not evaluated at runtime #693