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

Allow typing members in annotations without imports #85

Draft
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

KotlinIsland
Copy link
Owner

@KotlinIsland KotlinIsland commented Dec 1, 2021

from typing import A, B, C, D, E, F, G, H, ..., AMONGUS, ..., X, Y, X

NO THANKS!

Also a based implicit T

What about implicit basedtyping?

closes #2

@KotlinIsland KotlinIsland added this to the 2.0 milestone Dec 1, 2021
@KotlinIsland
Copy link
Owner Author

what about a based implicit Fn?

@github-actions

This comment has been minimized.

@KotlinIsland KotlinIsland removed this from the 1.4 milestone Jul 21, 2022
@github-actions
Copy link

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

pandera (https://github.com/pandera-dev/pandera)
+ pandera/schemas.py:65: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/KotlinIsland/basedmypy/issues
+ version: 1.5.0+dev.968f86df981feb03a3eb0e1d383b49e22fea8f7b
+ pandera/schemas.py:65: : note: use --pdb to drop into pdb
- pandera/error_formatters.py:10:1: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
- pandera/error_formatters.py:22:9: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:27:1: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
- pandera/error_formatters.py:27:1: error: Argument 4 to "format_vectorized_error_message" becomes "Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/error_formatters.py:43:9: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:43:9: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:48:1: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
- pandera/error_formatters.py:48:1: error: Return type becomes "Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/error_formatters.py:54:12: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:55:9: error: Expression type contains "Any" (has type "dict[str, list[Any (unannotated)]]")  [no-any-expr]
- pandera/error_formatters.py:57:29: error: Expression type contains "Any" (has type "list[Any (unannotated)]")  [no-any-expr]
- pandera/error_formatters.py:57:30: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:62:1: error: Return type becomes "Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/error_formatters.py:62:1: error: Argument 1 to "reshape_failure_cases" becomes "Any (from unimported type) | Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/error_formatters.py:77:9: error: Call to untyped function "is_table" in typed context  [no-untyped-call]
- pandera/error_formatters.py:77:9: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:77:9: error: Expression has type "Any (unannotated)"  [no-any-expr]
- pandera/error_formatters.py:77:30: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:78:12: error: Call to untyped function "is_field" in typed context  [no-untyped-call]
- pandera/error_formatters.py:78:12: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:78:33: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:81:13: error: Expression type contains "Any" (has type "type[Any (from unimported type)]")  [no-any-expr]
- pandera/error_formatters.py:82:21: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:86:9: error: Call to untyped function "is_table" in typed context  [no-untyped-call]
- pandera/error_formatters.py:86:9: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:86:9: error: Expression type contains "Any" (has type "Any (unannotated) | bool")  [no-any-expr]
- pandera/error_formatters.py:86:30: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:87:25: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:87:25: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:88:31: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:88:31: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:90:34: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:91:10: error: Call to untyped function "is_table" in typed context  [no-untyped-call]
- pandera/error_formatters.py:91:10: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:91:10: error: Expression has type "Any (unannotated)"  [no-any-expr]
- pandera/error_formatters.py:91:31: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:91:50: error: Call to untyped function "is_multiindex" in typed context  [no-untyped-call]
- pandera/error_formatters.py:92:9: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:92:9: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:95:13: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:95:13: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:97:23: error: Expression type contains "Any" (has type "(Untyped) -> Any")  [no-any-expr]
- pandera/error_formatters.py:98:21: error: Expression has type "Any"  [no-any-expr]
- pandera/error_formatters.py:106:10: error: Call to untyped function "is_field" in typed context  [no-untyped-call]
- pandera/error_formatters.py:106:10: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:106:10: error: Expression has type "Any (unannotated)"  [no-any-expr]
- pandera/error_formatters.py:106:31: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:106:50: error: Call to untyped function "is_multiindex" in typed context  [no-untyped-call]
- pandera/error_formatters.py:107:9: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:107:9: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:110:13: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:110:13: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:113:23: error: Expression type contains "Any" (has type "(Untyped) -> Any")  [no-any-expr]
- pandera/error_formatters.py:114:21: error: Expression has type "Any"  [no-any-expr]
- pandera/error_formatters.py:119:10: error: Call to untyped function "is_table" in typed context  [no-untyped-call]
- pandera/error_formatters.py:119:10: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:119:31: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:120:34: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:120:34: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:121:9: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:121:42: error: Expression type contains "Any" (has type "list[Any (from unimported type)]")  [no-any-expr]
- pandera/error_formatters.py:122:10: error: Call to untyped function "is_field" in typed context  [no-untyped-call]
- pandera/error_formatters.py:122:10: error: Expression has type "Untyped"  [no-any-expr]
- pandera/error_formatters.py:122:31: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:123:34: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:124:9: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:125:34: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:128:13: error: Expression type contains "Any" (has type "type[Any (from unimported type)]")  [no-any-expr]
- pandera/error_formatters.py:129:21: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:133:9: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/error_formatters.py:133:9: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/error_formatters.py:135:14: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:12:1: error: Return type becomes "Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/engines/utils.py:12:1: error: Argument 1 to "numpy_pandas_coercible" becomes "Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/engines/utils.py:12:1: error: Explicit "Any" is not allowed  [no-any-explicit]
- pandera/engines/utils.py:23:44: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/utils.py:25:5: error: Function is missing a type annotation  [no-untyped-def]
- pandera/engines/utils.py:27:36: error: Expression has type "Untyped"  [no-any-expr]
- pandera/engines/utils.py:32:12: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:32:23: error: Expression type contains "Any" (has type "(Untyped) -> Untyped")  [no-any-expr]
- pandera/engines/utils.py:35:1: error: Return type becomes "Any (from unimported type) | Any (from unimported type) | Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/engines/utils.py:35:1: error: Argument 1 to "numpy_pandas_coerce_failure_cases" becomes "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/engines/utils.py:35:1: error: Explicit "Any" is not allowed  [no-any-explicit]
- pandera/engines/utils.py:46:44: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/utils.py:48:19: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:48:35: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:49:16: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:50:30: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:51:18: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:52:30: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:58:8: error: Call to untyped function "is_index" in typed context  [no-untyped-call]
- pandera/engines/utils.py:58:8: error: Expression has type "Untyped"  [no-any-expr]
- pandera/engines/utils.py:58:29: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:59: error: Unused "type: ignore" comment  [unused-ignore]
- pandera/engines/utils.py:59:26: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:59:26: note: Error code "no-any-expr" not covered by "type: ignore" comment
- pandera/engines/utils.py:61:8: error: Call to untyped function "is_table" in typed context  [no-untyped-call]
- pandera/engines/utils.py:61:8: error: Expression has type "Untyped"  [no-any-expr]
- pandera/engines/utils.py:61:29: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:62: error: Unused "type: ignore" comment  [unused-ignore]
- pandera/engines/utils.py:62:24: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:62:24: note: Error code "no-any-expr" not covered by "type: ignore" comment
- pandera/engines/utils.py:62:24: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:63:13: error: Expression type contains "Any" (has type "(Any (from unimported type), Any) -> Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:66:28: error: Expression type contains "Any" (has type "(Any (from unimported type), Any (from unimported type))")  [no-any-expr]
- pandera/engines/utils.py:66:28: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:67:13: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:68:13: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:71:10: error: Call to untyped function "is_field" in typed context  [no-untyped-call]
- pandera/engines/utils.py:71:10: error: Expression has type "Untyped"  [no-any-expr]
- pandera/engines/utils.py:71:31: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:72:24: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:72:47: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:73:28: error: Expression type contains "Any" (has type "(Any (from unimported type), Any (from unimported type))")  [no-any-expr]
- pandera/engines/utils.py:73:28: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:74:13: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:75:13: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:80:13: error: Expression type contains "Any" (has type "type[Any (from unimported type)]")  [no-any-expr]
- pandera/engines/utils.py:80:44: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/utils.py:83:12: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/utils.py:84:9: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:20:2: error: Call to incomplete function "immutable" in typed context  [no-untyped-call]
- pandera/engines/numpy_engine.py:20:2: note: Type is "def (pandera_dtype_cls: type[Any (from omitted generics)] | None =, **dataclass_kwargs: Any) -> type[Any (from omitted generics)] | def (type[Any (from omitted generics)]) -> type[Any (from omitted generics)]"
- pandera/engines/numpy_engine.py:20:2: error: Expression type contains "Any" (has type "type[Any (from omitted generics)] | (type[Any (from omitted generics)]) -> type[Any (from omitted generics)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:20:2: error: Expression type contains "Any" (has type "type[DataType]")  [no-any-expr]
- pandera/engines/numpy_engine.py:24:5: error: Type of variable becomes "Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/engines/numpy_engine.py:24:22: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:25:17: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:29:5: error: Explicit "Any" is not allowed  [no-any-explicit]
- pandera/engines/numpy_engine.py:30:9: error: Call to untyped function "__init__" of "DataType" in typed context  [no-untyped-call]
- pandera/engines/numpy_engine.py:31:42: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:31:51: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:32:21: error: Expression type contains "Any" (has type "type[Any]")  [no-any-expr]
- pandera/engines/numpy_engine.py:32:21: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:34:13: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:40:5: error: Function is missing a return type annotation  [no-untyped-def]
- pandera/engines/numpy_engine.py:40:5: note: Use "-> None" if function does not return a value
- pandera/engines/numpy_engine.py:43:27: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:46:5: error: Return type becomes "Any (from unimported type) | Any (from unimported type) | Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/engines/numpy_engine.py:46:5: error: Argument 2 to "coerce" becomes "Any (from unimported type) | Any (from unimported type) | Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/engines/numpy_engine.py:48:19: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/numpy_engine.py:48:19: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:49:12: error: Expression type contains "Any" (has type "type[Any (from unimported type)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:49:17: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/numpy_engine.py:51:13: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:52:16: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:54:5: error: Explicit "Any" is not allowed  [no-any-explicit]
- pandera/engines/numpy_engine.py:56:16: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:56:31: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:58:5: error: Return type becomes "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/engines/numpy_engine.py:58:5: error: Argument 2 to "try_coerce" becomes "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)" due to an unfollowed import  [no-any-unimported]
- pandera/engines/numpy_engine.py:62:20: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:62:32: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/numpy_engine.py:64:19: error: Call to untyped function "ParserError" in typed context  [no-untyped-call]
- pandera/engines/numpy_engine.py:65:17: error: Expression type contains "Any" (has type "type[Any (from unimported type)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:65:17: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:65:42: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/numpy_engine.py:67:31: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:68:21: error: Expression type contains "Any" (has type "Any (from unimported type) | Any (from unimported type) | Any (from unimported type) | Any (from unimported type)")  [no-any-expr]
- pandera/engines/numpy_engine.py:68:37: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:73:16: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:85:5: error: Explicit "Any" is not allowed  [no-any-explicit]
- pandera/engines/numpy_engine.py:85:5: error: Type of decorated function contains type "Any" ("(type[Engine], Any) -> DataType")  [no-any-decorated]
- pandera/engines/numpy_engine.py:89:20: error: Expression type contains "Any" (has type "type[Engine]")  [no-any-expr]
- pandera/engines/numpy_engine.py:89:20: error: Call to incomplete function "dtype" of "Engine" in typed context  [no-untyped-call]
- pandera/engines/numpy_engine.py:89:20: note: Type is "def [_DataType <: pandera.dtypes.DataType] (cls: type[Any (from omitted generics)], data_type: Any) -> _DataType"
- pandera/engines/numpy_engine.py:89:45: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:92:28: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:92:37: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:95:21: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:100:24: error: Expression type contains "Any" (has type "type[Engine]")  [no-any-expr]
- pandera/engines/numpy_engine.py:100:24: error: Call to incomplete function "dtype" of "Engine" in typed context  [no-untyped-call]
- pandera/engines/numpy_engine.py:100:24: note: Type is "def [_DataType <: pandera.dtypes.DataType] (cls: type[Any (from omitted generics)], data_type: Any) -> _DataType"
- pandera/engines/numpy_engine.py:100:49: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:102:33: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:110:2: error: Call to incomplete function "register_dtype" of "Engine" in typed context  [no-untyped-call]
- pandera/engines/numpy_engine.py:110:2: note: Type is "def [_DataType <: pandera.dtypes.DataType] (pandera_dtype_cls: type[_DataType] =, *, equivalents: list[Any] | None =) -> def (*Untyped, **Untyped) -> Untyped"
- pandera/engines/numpy_engine.py:110:2: error: Expression type contains "Any" (has type "(...) -> Untyped")  [no-any-expr]
- pandera/engines/numpy_engine.py:110:2: error: Expression type contains "Any" (has type "type[Any (from omitted generics)] | (type[Any (from omitted generics)]) -> type[Any (from omitted generics)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:111:17: error: Expression type contains "Any" (has type "list[Any]")  [no-any-expr]
- pandera/engines/numpy_engine.py:111:32: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:111:55: error: Call to untyped function "Bool" in typed context  [no-untyped-call]
- pandera/engines/numpy_engine.py:113:2: error: Expression type contains "Any" (has type "(type[Any (from omitted generics)] | None, KwArg(Any)) -> type[Any (from omitted generics)] | (type[Any (from omitted generics)]) -> type[Any (from omitted generics)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:113:2: error: Expression type contains "Any" (has type "type[Bool]")  [no-any-expr]
- pandera/engines/numpy_engine.py:115:12: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:118:1: error: Return type becomes "dict[int, list[type | str | Any (from unimported type) | DataType]]" due to an unfollowed import  [no-any-unimported]
- pandera/engines/numpy_engine.py:123:20: error: Expression type contains "Any" (has type "Any | None")  [no-any-expr]
- pandera/engines/numpy_engine.py:124:24: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:125:24: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:127:27: error: Expression type contains "Any" (has type "list[Any (from unimported type)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:129:9: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:131:9: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:133:8: error: Expression type contains "Any" (has type "Any | None")  [no-any-expr]
- pandera/engines/numpy_engine.py:134:9: error: Expression type contains "Any" (has type "list[Any (from unimported type)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:134:36: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:136:12: error: Expression type contains "Any" (has type "dict[int, list[type | str | Any (from unimported type) | DataType]]")  [no-any-expr]
- pandera/engines/numpy_engine.py:137:20: error: Expression type contains "Any" (has type "list[type | str | Any (from unimported type) | DataType]")  [no-any-expr]
- pandera/engines/numpy_engine.py:138:13: error: Expression type contains "Any" (has type "set[Any]")  [no-any-expr]
- pandera/engines/numpy_engine.py:138:13: error: Expression type contains "Any" (has type "set[Any | type | str | DataType]")  [no-any-expr]
- pandera/engines/numpy_engine.py:139:17: error: Expression type contains "Any" (has type "(Any, Any, Any, Any)")  [no-any-expr]
- pandera/engines/numpy_engine.py:141:21: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:141:29: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:143:21: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:144:21: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:146:21: error: Expression has type "Any"  [no-any-expr]
- pandera/engines/numpy_engine.py:149:15: error: Expression type contains "Any" (has type "set[Any (from unimported type)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:149:15: error: Expression type contains "Any" (has type "set[type | str | Any (from unimported type) | DataType]")  [no-any-expr]
- pandera/engines/numpy_engine.py:149:19: error: Expression type contains "Any" (has type "list[Any (from unimported type)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:149:73: error: Expression type contains "Any" (has type "list[type | str | Any (from unimported type) | DataType]")  [no-any-expr]
- pandera/engines/numpy_engine.py:159:20: error: Expression type contains "Any" (has type "dict[int, list[type | str | Any (from unimported type) | DataType]]")  [no-any-expr]
- pandera/engines/numpy_engine.py:164:2: error: Call to incomplete function "register_dtype" of "Engine" in typed context  [no-untyped-call]
- pandera/engines/numpy_engine.py:164:2: note: Type is "def [_DataType <: pandera.dtypes.DataType] (pandera_dtype_cls: type[_DataType] =, *, equivalents: list[Any] | None =) -> def (*Untyped, **Untyped) -> Untyped"
- pandera/engines/numpy_engine.py:164:2: error: Expression type contains "Any" (has type "(...) -> Untyped")  [no-any-expr]
- pandera/engines/numpy_engine.py:164:2: error: Expression type contains "Any" (has type "type[Any (from omitted generics)] | (type[Any (from omitted generics)]) -> type[Any (from omitted generics)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:164:36: error: Expression type contains "Any" (has type "dict[int, list[type | str | Any (from unimported type) | DataType]]")  [no-any-expr]
- pandera/engines/numpy_engine.py:164:36: error: Expression type contains "Any" (has type "list[type | str | Any (from unimported type) | DataType]")  [no-any-expr]
- pandera/engines/numpy_engine.py:165:2: error: Expression type contains "Any" (has type "(type[Any (from omitted generics)] | None, KwArg(Any)) -> type[Any (from omitted generics)] | (type[Any (from omitted generics)]) -> type[Any (from omitted generics)]")  [no-any-expr]
- pandera/engines/numpy_engine.py:165:2: error: Expression type contains "Any" (has type "type[Int64]")  [no-any-expr]
- pandera/engines/numpy_engine.py:168:12: error: Expression has type "Any (from unimported type)"  [no-any-expr]
- pandera/engines/numpy_engine.py:172:2: error: Call to incomplete function "register_dtype" of "Engine" in typed context  [no-untyped-call]
- pandera/engines/numpy_engine.py:172:2: note: Type is "def [_DataType <: pandera.dtypes.DataType] (pande

... (truncated 1107174 lines) ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p-2 normal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow usage of all typing members in annotations
3 participants