Draft
Conversation
|
Diff from mypy_primer, showing the effect of this PR on open source code: spark (https://github.com/apache/spark)
+ python/pyspark/core/rdd.py:2307: error: List comprehension has incompatible type List[int]; expected List[S] [misc]
+ python/pyspark/core/rdd.py:2307: error: Unsupported operand types for + ("int" and "S") [operator]
+ python/pyspark/pandas/sql_formatter.py:286: error: Argument 1 to "append" of "list" has incompatible type "tuple[Series[Any] | DataFrame[Any] | Index, str]"; expected "tuple[DataFrame[Any], str]" [arg-type]
+ python/pyspark/sql/connect/expressions.py:476: error: Argument 1 to "bytes" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "Iterable[SupportsIndex] | SupportsIndex | SupportsBytes | Buffer" [arg-type]
+ python/pyspark/sql/connect/expressions.py:480: error: Argument 1 to "int" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:482: error: Argument 1 to "int" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:484: error: Argument 1 to "int" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:486: error: Argument 1 to "int" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:488: error: Argument 1 to "float" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsFloat | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:490: error: Argument 1 to "float" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsFloat | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:498: error: Argument 1 to "int" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:501: error: Argument 1 to "int" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:503: error: Argument 1 to "int" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:505: error: Argument 1 to "int" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:507: error: Argument 1 to "int" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ python/pyspark/sql/connect/expressions.py:511: error: Item "int" of "bytes | bytearray | int | float | Decimal | str | list[Any]" has no attribute "__iter__" (not iterable) [union-attr]
+ python/pyspark/sql/connect/expressions.py:511: error: Item "float" of "bytes | bytearray | int | float | Decimal | str | list[Any]" has no attribute "__iter__" (not iterable) [union-attr]
+ python/pyspark/sql/connect/expressions.py:511: error: Item "Decimal" of "bytes | bytearray | int | float | Decimal | str | list[Any]" has no attribute "__iter__" (not iterable) [union-attr]
+ python/pyspark/sql/connect/expressions.py:527: error: Argument 1 to "fromInternal" of "DateType" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "int" [arg-type]
+ python/pyspark/sql/connect/expressions.py:531: error: Argument 1 to "fromInternal" of "TimeType" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "int" [arg-type]
+ python/pyspark/sql/connect/expressions.py:535: error: Argument 1 to "fromInternal" of "TimestampType" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "int" [arg-type]
+ python/pyspark/sql/connect/expressions.py:539: error: Argument 1 to "fromInternal" of "TimestampNTZType" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "int" [arg-type]
+ python/pyspark/sql/connect/expressions.py:543: error: Argument 1 to "fromInternal" of "DayTimeIntervalType" has incompatible type "bytes | bytearray | int | float | Decimal | str | list[Any]"; expected "int" [arg-type]
+ python/pyspark/sql/connect/expressions.py:553: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe]
+ python/pyspark/ml/linalg/__init__.py:784: error: Incompatible return value type (got "float | Any", expected "float64") [return-value]
+ python/pyspark/mllib/linalg/__init__.py:890: error: Incompatible return value type (got "float | Any", expected "float64") [return-value]
+ python/pyspark/mllib/recommendation.py:250: error: Incompatible return value type (got "RDD[Any] | RDD[Row] | Any", expected "RDD[Rating]") [return-value]
strawberry (https://github.com/strawberry-graphql/strawberry)
+ strawberry/federation/schema.py:410: error: Item "StrawberryType" of "Any | StrawberryType | type" has no attribute "__strawberry_definition__" [union-attr]
+ strawberry/federation/schema.py:410: error: Item "type" of "Any | StrawberryType | type" has no attribute "__strawberry_definition__" [union-attr]
aiohttp (https://github.com/aio-libs/aiohttp)
+ aiohttp/client_reqrep.py:1168:33: error: Argument 1 to "FormData" has incompatible type "Any | Payload"; expected "Iterable[Any]" [arg-type]
colour (https://github.com/colour-science/colour)
- colour/appearance/scam.py:461: error: Unused "type: ignore" comment [unused-ignore]
aioredis (https://github.com/aio-libs/aioredis)
+ aioredis/client.py:3898: error: Item "memoryview[int]" of "bytes | memoryview[int] | str | int | float | Any" has no attribute "split" [union-attr]
+ aioredis/client.py:3898: error: Item "int" of "bytes | memoryview[int] | str | int | float | Any" has no attribute "split" [union-attr]
+ aioredis/client.py:3898: error: Item "float" of "bytes | memoryview[int] | str | int | float | Any" has no attribute "split" [union-attr]
+ aioredis/client.py:3898: error: Argument 1 to "split" of "bytes" has incompatible type "str"; expected "Buffer | None" [arg-type]
+ aioredis/client.py:3899: error: Argument 1 to "match" of "Pattern" has incompatible type "bytes | Any | str"; expected "str" [arg-type]
zulip (https://github.com/zulip/zulip)
+ zerver/tests/test_channel_permissions.py:1130: error: Argument 3 to "do_change_stream_group_based_setting" has incompatible type "int | UserGroupMembersData | Any"; expected "NamedUserGroup | UserGroupMembersData" [arg-type]
svcs (https://github.com/hynek/svcs)
+ src/svcs/flask.py:41: error: Unused "type: ignore" comment [unused-ignore]
core (https://github.com/home-assistant/core)
+ homeassistant/helpers/restore_state.py:94: error: Argument 3 to "StoredState" has incompatible type "datetime | Any | None"; expected "datetime" [arg-type]
+ homeassistant/components/alert/__init__.py:107: error: Argument 13 to "AlertEntity" has incompatible type "Any | None"; expected "dict[Any, Any]" [arg-type]
+ homeassistant/components/conversation/default_agent.py:1072: error: Incompatible return value type (got "str | None", expected "str") [return-value]
+ homeassistant/components/homeassistant/triggers/time_pattern.py:50: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/components/tradfri/light.py:238: error: Unsupported left operand type for + ("None") [operator]
+ homeassistant/components/tradfri/light.py:238: note: Both left and right operands are unions
+ homeassistant/components/feedreader/event.py:85: error: Value of type variable "AnyStr" of "unescape" cannot be "Any | None" [type-var]
- homeassistant/components/bluesound/media_player.py:235: error: Returning Any from function declared to return "str | None" [no-any-return]
+ homeassistant/components/lg_thinq/sensor.py:762: error: Incompatible types in assignment (expression has type "str | int | float | date | Decimal | time | Any | None", variable has type "str | int | float | date | Decimal | None") [assignment]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/utils.py:1151: error: Item "str" of "str | Any" has no attribute "__type_params__" [union-attr]
+ discord/utils.py:1152: error: Item "str" of "str | Any" has no attribute "__value__" [union-attr]
+ discord/utils.py:1175: error: Item "str" of "str | Any" has no attribute "__origin__" [union-attr]
+ discord/utils.py:1181: error: Item "str" of "str | Any" has no attribute "__origin__" [union-attr]
+ discord/utils.py:1193: error: Item "str" of "str | Any" has no attribute "copy_with" [union-attr]
+ discord/utils.py:1195: error: Item "str" of "str | Any" has no attribute "__origin__" [union-attr]
pandera (https://github.com/pandera-dev/pandera)
+ pandera/decorators.py:397: error: Invalid index type "str | int" for "list[Any]"; expected type "SupportsIndex" [index]
+ pandera/decorators.py:401: error: No return value expected [return-value]
cwltool (https://github.com/common-workflow-language/cwltool)
+ cwltool/command_line_tool.py: note: In member "collect_output" of class "CommandLineTool":
+ cwltool/command_line_tool.py:1497:81: error: Argument 1 to "revmap_file" has incompatible type "dict[Any, Any] | Any"; expected "CWLFileType | CWLDirectoryType" [arg-type]
+ cwltool/command_line_tool.py:1507:48: error: Argument 1 to "revmap_file" has incompatible type "dict[Any, Any] | Any"; expected "CWLFileType | CWLDirectoryType" [arg-type]
werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/datastructures/headers.py:602: error: Unused "type: ignore" comment [unused-ignore]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/v1/validators.py:326: error: Argument "bytes" to "UUID" has incompatible type "bytes | bytearray | UUID"; expected "bytes | None" [arg-type]
+ pydantic/v1/fields.py:607: error: Argument 1 to "is_literal_type" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:609: error: Argument 1 to "is_typeddict" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:612: error: Argument 1 to "is_finalvar" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:618: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:623: error: Argument 1 to "get_origin" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:626: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:644: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:668: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:692: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:702: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:712: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:715: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:718: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:722: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:723: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:726: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:727: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:730: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:734: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:735: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:740: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
+ pydantic/v1/fields.py:749: error: Argument 1 to "get_args" has incompatible type "Any | <typing special form> | type[Any]"; expected "type[Any]" [arg-type]
beartype (https://github.com/beartype/beartype)
+ beartype/_check/convert/_reduce/_pep/redpep484612646.py:328: error: Argument "hint" to "get_hint_pep484_typevar_bounded_constraints_or_none" has incompatible type "Any | Iota | TypeVar | HintPep646692UnpackedType"; expected "TypeVar" [arg-type]
sympy (https://github.com/sympy/sympy)
+ sympy/core/power.py:187: error: Item "Infinity" of "Infinity | Any" has no attribute "min" [union-attr]
+ sympy/core/power.py:187: error: Item "Infinity" of "Infinity | Any" has no attribute "max" [union-attr]
pytest (https://github.com/pytest-dev/pytest)
+ testing/test_reports.py:342: error: Argument 1 to "check_longrepr" has incompatible type "ExceptionInfo[BaseException] | tuple[str, int, str] | str | TerminalRepr | None"; expected "ExceptionChainRepr" [arg-type]
+ testing/test_reports.py:347: error: Item "None" of "ExceptionInfo[BaseException] | tuple[str, int, str] | str | TerminalRepr | None" has no attribute "toterminal" [union-attr]
+ testing/test_reports.py:347: error: Item "ExceptionInfo[BaseException]" of "ExceptionInfo[BaseException] | tuple[str, int, str] | str | TerminalRepr | None" has no attribute "toterminal" [union-attr]
+ testing/test_reports.py:347: error: Item "tuple[str | int, ...]" of "ExceptionInfo[BaseException] | tuple[str, int, str] | str | TerminalRepr | None" has no attribute "toterminal" [union-attr]
+ testing/test_reports.py:347: error: Item "str" of "ExceptionInfo[BaseException] | tuple[str, int, str] | str | TerminalRepr | None" has no attribute "toterminal" [union-attr]
+ src/_pytest/unittest.py:578: error: Incompatible types in assignment (expression has type "tuple[type[Any] | Any, Any, TracebackType | Any | None]", variable has type "tuple[type[BaseException], BaseException, TracebackType] | tuple[None, None, None]") [assignment]
+ src/_pytest/unittest.py:626: error: Incompatible return value type (got "tuple[type[Any], Any, TracebackType | Any | None]", expected "tuple[type[BaseException], BaseException, TracebackType] | tuple[None, None, None]") [return-value]
cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/util.py:378: error: Need type annotation for "combined_list" (hint: "combined_list: list[<type>] = ...") [var-annotated]
+ cloudinit/distros/__init__.py:1006: error: Argument 1 to "set" has incompatible type "list[Any] | set[Any] | None"; expected "Iterable[Any]" [arg-type]
+ cloudinit/sources/DataSourceLXD.py:241: error: Incompatible return value type (got "Any | bool", expected "str") [return-value]
+ tests/unittests/sources/test_azure.py:1262: error: Cannot assign to a method [method-assign]
pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/dtypes/dtypes.py:652: error: Incompatible return value type (got "Index | None", expected "Index") [return-value]
+ pandas/core/dtypes/dtypes.py:810: error: Argument 1 to "tz_standardize" has incompatible type "tzinfo | None"; expected "tzinfo" [arg-type]
+ pandas/core/dtypes/dtypes.py:1080: error: "BaseOffset" has no attribute "_period_dtype_code" [attr-defined]
+ pandas/core/dtypes/dtypes.py:1344: error: Incompatible types in assignment (expression has type "dtype[Any] | ExtensionDtype", variable has type "dtype[Any] | None") [assignment]
+ pandas/core/dtypes/common.py:1712: error: Argument 1 to "dtype" has incompatible type "Callable[[ExtensionDtype], type[Any]] | type[object]"; expected "Literal['float64', 'f8', '|f8', '=f8', '<f8', '>f8', 'double', 'float', 'd', '|d', '=d', '<d', '>d'] | type[float64] | type[c_double] | None" [arg-type]
+ pandas/core/indexers/utils.py:325: error: Item "Index" of "ndarray[tuple[Any, ...], dtype[Any]] | Series | Index | ndarray[Any, Any]" has no attribute "sum" [union-attr]
+ pandas/core/construction.py:609: error: Argument 1 to "construct_1d_arraylike_from_scalar" has incompatible type "object | Any"; expected "str | bytes | date | datetime | timedelta | <7 more items> | Interval[Any] | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]" [arg-type]
+ pandas/core/construction.py:629: error: Argument 1 to "list" has incompatible type "object | Any"; expected "Iterable[Any]" [arg-type]
+ pandas/core/construction.py:682: error: Argument 1 to "list" has incompatible type "object | Any"; expected "Iterable[Any]" [arg-type]
+ pandas/core/ops/array_ops.py:129: error: Argument 2 to "vec_compare" has incompatible type "Any | ExtensionArray | ndarray[tuple[int], dtype[Any]] | Index | ndarray[tuple[int], Any]"; expected "ndarray[tuple[Any, ...], dtype[object_]]" [arg-type]
+ pandas/core/algorithms.py:249: error: Incompatible return value type (got "ndarray[tuple[Any, ...], dtype[Any]] | Index | Series | ExtensionArray | ndarray[Any, Any]", expected "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]") [return-value]
+ pandas/core/algorithms.py:891: error: Argument 1 to "value_counts_arraylike" has incompatible type "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]"; expected "ndarray[tuple[Any, ...], dtype[Any]]" [arg-type]
+ pandas/core/algorithms.py:906: error: Unused "type: ignore" comment [unused-ignore]
+ pandas/core/algorithms.py:911: error: No overload variant of "sort_values" of "DataFrame" matches argument types "bool", "str" [call-overload]
+ pandas/core/algorithms.py:911: note: Possible overload variants:
+ pandas/core/algorithms.py:911: note: def sort_values(self, by: Hashable | Sequence[Hashable], *, axis: Literal['index', 'columns', 'rows'] | int = ..., ascending: Any = ..., inplace: Literal[False] = ..., kind: Literal['quicksort', 'mergesort', 'heapsort', 'stable'] = ..., na_position: Literal['first', 'last'] = ..., ignore_index: bool = ..., key: Callable[[Series], Series | ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index | Series] | None = ...) -> DataFrame
+ pandas/core/algorithms.py:911: note: def sort_values(self, by: Hashable | Sequence[Hashable], *, axis: Literal['index', 'columns', 'rows'] | int = ..., ascending: Any = ..., inplace: Literal[True], kind: Literal['quicksort', 'mergesort', 'heapsort', 'stable'] = ..., na_position: str = ..., ignore_index: bool = ..., key: Callable[[Series], Series | ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index | Series] | None = ...) -> None
+ pandas/core/algorithms.py:919: error: Incompatible return value type (got "Any | DataFrame | Series", expected "Series") [return-value]
+ pandas/core/arrays/timedeltas.py:260: error: Argument 1 to "datetime_data" has incompatible type "dtype[Any] | ExtensionDtype"; expected "str | type[datetime64[date | int | None]] | type[timedelta64[timedelta | int | None]] | dtype[datetime64[date | int | None] | timedelta64[timedelta | int | None]] | _HasDType[dtype[datetime64[date | int | None] | timedelta64[timedelta | int | None]]] | _HasNumPyDType[dtype[datetime64[date | int | None] | timedelta64[timedelta | int | None]]]" [arg-type]
+ pandas/core/arrays/timedeltas.py:265: error: Argument "dtype" to "astype_overflowsafe" has incompatible type "dtype[Any] | ExtensionDtype | Any"; expected "dtype[Any]" [arg-type]
+ pandas/core/arrays/timedeltas.py:302: error: Item "None" of "Timedelta | None" has no attribute "_value" [union-attr]
+ pandas/core/arrays/timedeltas.py:1105: error: Argument "unit" to "_ints_to_td64ns" has incompatible type "Literal['Y', 'y', 'M', 'W', 'w', 'D', 'd', 'days', 'day', 'hours', 'hour', 'hr', 'h', 'm', 'minute', 'min', 'minutes', 's', 'seconds', 'sec', 'second', 'ms', 'milliseconds', 'millisecond', 'milli', 'millis', 'us', 'microseconds', 'microsecond', 'µs', 'micro', 'micros', 'ns', 'nanoseconds', 'nano', 'nanos', 'nanosecond'] | None"; expected "str" [arg-type]
+ pandas/core/arrays/datetimes.py:446: error: Value of type variable "_TimestampNoneT1" of "_maybe_normalize_endpoints" cannot be "Timestamp | None" [type-var]
+ pandas/core/arrays/datetimes.py:446: error: Value of type variable "_TimestampNoneT2" of "_maybe_normalize_endpoints" cannot be "Timestamp | None" [type-var]
+ pandas/core/arrays/masked.py:911: error: "ndarray[tuple[Any, ...], dtype[Any]]" has no attribute "_mask" [attr-defined]
+ pandas/core/arrays/masked.py:1010: error: "ndarray[tuple[Any, ...], dtype[Any]]" has no attribute "_mask" [attr-defined]
+ pandas/core/arrays/numeric.py:153: error: "ndarray[tuple[Any, ...], dtype[Any]]" has no attribute "_mask" [attr-defined]
+ pandas/core/arrays/datetimelike.py:526: error: Argument 1 to "len" has incompatible type "Period | Timestamp | Timedelta | NaTType | Any"; expected "Sized" [arg-type]
+ pandas/core/arrays/datetimelike.py:2490: error: Incompatible types in assignment (expression has type "BaseOffset | None", variable has type "None") [assignment]
+ pandas/core/arrays/period.py:974: error: "BaseOffset" has no attribute "_period_dtype_code" [attr-defined]
+ pandas/core/arrays/period.py:1457: error: Item "ExtensionArray" of "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]" has no attribute "freq" [union-attr]
+ pandas/core/arrays/period.py:1457: error: Item "ndarray[tuple[Any, ...], dtype[Any]]" of "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]" has no attribute "freq" [union-attr]
+ pandas/core/arrays/period.py:1464: error: Argument 1 to "py_get_unit_from_dtype" has incompatible type "ExtensionDtype | dtype[Any] | Any"; expected "dtype[Any]" [arg-type]
+ pandas/core/arrays/period.py:1467: error: Argument 1 to "dt64arr_to_periodarr" has incompatible type "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Any"; expected "ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]" [arg-type]
+ pandas/core/arrays/period.py:1489: error: Item "None" of "Period | None" has no attribute "freq" [union-attr]
+ pandas/core/arrays/period.py:1496: error: Item "None" of "Period | None" has no attribute "freq" [union-attr]
+ pandas/core/arrays/period.py:1498: error: Item "None" of "Period | None" has no attribute "freq" [union-attr]
+ pandas/core/arrays/period.py:1507: error: Item "None" of "Period | None" has no attribute "ordinal" [union-attr]
+ pandas/core/arrays/period.py:1514: error: Item "None" of "Period | None" has no attribute "ordinal" [union-attr]
+ pandas/core/arrays/interval.py:232: error: Argument 1 to "intervals_to_interval_bounds" has incompatible type "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]"; expected "ndarray[tuple[Any, ...], dtype[Any]]" [arg-type]
+ pandas/core/arrays/interval.py:773: error: Argument 1 to "enumerate" has incompatible type "Any | Interval[Any]"; expected "Iterable[Any]" [arg-type]
+ pandas/core/arrays/interval.py:960: error: Argument 1 to "astype" of "ExtensionArray" has incompatible type "dtype[Any] | ExtensionDtype | None"; expected "type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str" [arg-type]
+ pandas/core/arrays/boolean.py:202: error: "ndarray[tuple[Any, ...], dtype[Any]]" has no attribute "_mask" [attr-defined]
+ pandas/core/arrays/boolean.py:261: error: Item "None" of "ndarray[Any, Any] | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] | ndarray[tuple[Any, ...], dtype[Any]] | None" has no attribute "shape" [union-attr]
+ pandas/core/arrays/boolean.py:264: error: Incompatible return value type (got "tuple[ndarray[Any, Any] | ndarray[tuple[int], dtype[Any]] | ndarray[tuple[int], Any], ndarray[Any, Any] | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] | ndarray[tuple[Any, ...], dtype[Any]] | None]", expected "tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]]") [return-value]
+ pandas/core/arrays/boolean.py:399: error: "ndarray[tuple[Any, ...], dtype[Any]]" has no attribute "_mask" [attr-defined]
+ pandas/core/tools/numeric.py:225: error: Item "ndarray[tuple[Any, ...], dtype[Any]]" of "ndarray[tuple[Any, ...], dtype[Any]] | Any" has no attribute "isna" [union-attr]
+ pandas/core/tools/numeric.py:226: error: Item "ndarray[tuple[Any, ...], dtype[Any]]" of "ndarray[tuple[Any, ...], dtype[Any]] | Any" has no attribute "dropna" [union-attr]
+ pandas/core/strings/accessor.py:4871: error: Expected iterable as variadic argument [misc]
+ pandas/io/pytables.py:2854: error: Argument 1 to "_unconvert_string_array" has incompatible type "DatetimeArray | ndarray[tuple[Any, ...], dtype[Any]] | Categorical | ndarray[Any, dtype[Any]]"; expected "ndarray[tuple[Any, ...], dtype[Any]]" [arg-type]
+ pandas/io/parsers/base_parser.py:432: error: Incompatible return value type (got "int | integer[Any]", expected "int") [return-value]
+ pandas/io/parsers/arrow_parser_wrapper.py:184: error: No overload variant of "__add__" of "list" matches argument type "range" [operator]
+ pandas/io/parsers/arrow_parser_wrapper.py:184: note: Possible overload variants:
+ pandas/io/parsers/arrow_parser_wrapper.py:184: note: def __add__(self, list[str], /) -> list[str]
+ pandas/io/parsers/arrow_parser_wrapper.py:184: note: def [_S] __add__(self, list[_S], /) -> list[_S | str]
+ pandas/io/parsers/arrow_parser_wrapper.py:184: note: Right operand is of type "range | Any"
+ pandas/io/formats/format.py:1263: error: "str" not callable [operator]
+ pandas/io/formats/format.py:1707: error: "Timedelta" has no attribute "_repr_base" [attr-defined]
+ pandas/io/excel/_base.py:1389: error: Incompatible return value type (got "tuple[int | float | Decimal | date | str, str | None]", expected "tuple[int | float | bool | str | datetime | date, str | None]") [return-value]
+ pandas/core/indexing.py:2599: error: Value of type "Hashable | slice[Any, Any, Any] | Any" is not indexable [index]
+ pandas/core/indexing.py:2613: error: Argument 1 to "_setitem_single_column" of "_iLocIndexer" has incompatible type "Hashable | slice[Any, Any, Any] | Any"; expected "int" [arg-type]
+ pandas/core/generic.py:944: error: Incompatible return value type (got "NDFrame | Any", expected "str | bytes | date | datetime | timedelta | <7 more items> | Interval[Any] | complex | integer[Any] | floating[Any] | complexfloating[Any, Any] | Series | DataFrame") [return-value]
+ pandas/core/generic.py:4300: error: Argument 1 to "fast_xs" of "BlockManager" has incompatible type "int | integer[Any] | Any"; expected "int" [arg-type]
+ pandas/core/generic.py:5681: error: Argument 1 to "reindex" of "NDFrame" has incompatible type "**dict[Literal['index', 'columns'], Index]"; expected "Literal['index', 'columns', 'rows'] | int | None" [arg-type]
+ pandas/core/generic.py:5681: note: Error code "arg-type" not covered by "type: ignore[misc]" comment
+ pandas/core/generic.py:5681: error: Argument 1 to "reindex" of "NDFrame" has incompatible type "**dict[Literal['index', 'columns'], Index]"; expected "Literal['backfill', 'bfill', 'ffill', 'pad', 'nearest'] | None" [arg-type]
+ pandas/core/generic.py:5681: error: Argument 1 to "reindex" of "NDFrame" has incompatible type "**dict[Literal['index', 'columns'], Index]"; expected "bool | Literal[_NoDefault.no_default]" [arg-type]
+ pandas/core/generic.py:5681: error: Argument 1 to "reindex" of "NDFrame" has incompatible type "**dict[Literal['index', 'columns'], Index]"; expected "Hashable | None" [arg-type]
+ pandas/core/generic.py:5681: error: Argument 1 to "reindex" of "NDFrame" has incompatible type "**dict[Literal['index', 'columns'], Index]"; expected "str | bytes | date | datetime | timedelta | <12 more items> | None" [arg-type]
+ pandas/core/generic.py:5681: error: Argument 1 to "reindex" of "NDFrame" has incompatible type "**dict[Literal['index', 'columns'], Index]"; expected "int | None" [arg-type]
+ pandas/core/frame.py:631: error: Argument 1 to "construct_1d_arraylike_from_scalar" has incompatible type "list[Any] | Any"; expected "str | bytes | date | datetime | timedelta | <7 more items> | Interval[Any] | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]" [arg-type]
+ pandas/core/frame.py:637: error: Argument 1 to "construct_2d_arraylike_from_scalar" has incompatible type "list[Any] | Any"; expected "str | bytes | date | datetime | timedelta | <7 more items> | Interval[Any] | complex | integer[Any] | floating[Any] | complexfloating[Any, Any]" [arg-type]
+ pandas/core/frame.py:2220: error: Incompatible types in assignment (expression has type "int | slice[Any, Any, Any] | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] | Any", variable has type "int") [assignment]
+ pandas/core/frame.py:4265: error: Argument 1 to "list" has incompatible type "Hashable | Any"; expected "Iterable[Any]" [arg-type]
+ pandas/core/frame.py:4266: error: Argument 1 to "_get_indexer_strict" of "Index" has incompatible type "Hashable | Any"; expected "ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index | Series | SequenceNotStr[Any] | range" [arg-type]
+ pandas/core/tools/datetimes.py:387: error: Item "ndarray[tuple[Any, ...], dtype[Any]]" of "ndarray[tuple[Any, ...], dtype[Any]] | Any" has no attribute "_dt_tz_convert" [union-attr]
+ pandas/core/tools/datetimes.py:389: error: Item "ndarray[tuple[Any, ...], dtype[Any]]" of "ndarray[tuple[Any, ...], dtype[Any]] | Any" has no attribute "_dt_tz_localize" [union-attr]
+ pandas/core/reshape/tile.py:553: error: Argument 1 to "take_nd" has incompatible type "Categorical | IntervalIndex | Any"; expected "ndarray[tuple[Any, ...], dtype[Any]]" [arg-type]
+ pandas/core/reshape/pivot.py:614: error: List item 0 has incompatible type "Any | Hashable"; expected "tuple[Hashable, ...]" [list-item]
+ pandas/core/reshape/merge.py:1947: error: Argument 1 to "len" has incompatible type "Index | Hashable | list[Any] | Any"; expected "Sized" [arg-type]
+ pandas/core/reshape/merge.py:1947: error: Argument 1 to "len" has incompatible type "Index | Hashable | Any | list[Any]"; expected "Sized" [arg-type]
+ pandas/core/internals/construction.py:267: error: Argument 1 to "_ensure_2d" has incompatible type "Any | ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]"; expected "ndarray[tuple[Any, ...], dtype[Any]]" [arg-type]
+ pandas/core/indexes/timedeltas.py:494: error: Redundant cast to "Timedelta" [redundant-cast]
+ pandas/core/indexes/timedeltas.py:495: error: Redundant cast to "Timedelta" [redundant-cast]
+ pandas/core/indexes/timedeltas.py:497: error: Redundant cast to "Literal['s', 'ms', 'us', 'ns']" [redundant-cast]
+ pandas/core/indexes/timedeltas.py:499: error: Redundant cast to "Literal['s', 'ms', 'us', 'ns']" [redundant-cast]
+ pandas/core/indexes/timedeltas.py:502: error: Redundant cast to "Timedelta" [redundant-cast]
+ pandas/core/indexes/timedeltas.py:503: error: Redundant cast to "Literal['s', 'ms', 'us', 'ns']" [redundant-cast]
+ pandas/core/indexes/timedeltas.py:506: error: Redundant cast to "Timedelta" [redundant-cast]
+ pandas/core/indexes/timedeltas.py:507: error: Redundant cast to "Literal['s', 'ms', 'us', 'ns']" [redundant-cast]
+ pandas/core/indexes/timedeltas.py:514: error: Item "Day" of "Tick | Day" has no attribute "_creso" [union-attr]
+ pandas/core/indexes/multi.py:1812: error: Incompatible return value type (got "Any | int | integer[Any]", expected "int") [return-value]
+ pandas/core/indexes/datetimelike.py:701: error: Argument 1 to "Timestamp" has incompatible type "Any | Timedelta"; expected "integer[Any] | float | str | date | datetime | datetime64[date | int | None]" [arg-type]
... (truncated 49 lines) ...
xarray (https://github.com/pydata/xarray)
+ xarray/core/variable.py: note: In member "_replace" of class "Variable":
+ xarray/core/variable.py:991: error: Argument 2 to "Variable" has incompatible type "_arrayfunction[Any, Any] | _arrayapi[Any, Any] | Any"; expected "T_DuckArray | Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]" [arg-type]
+ xarray/core/variable.py: note: At top level:
+ xarray/computation/computation.py: note: In function "_ensure_numeric":
+ xarray/computation/computation.py:938: error: Too many arguments for "Hashable" [call-arg]
+ xarray/coding/times.py: note: In function "_eagerly_encode_cf_datetime":
+ xarray/coding/times.py:1189: error: Incompatible return value type (got "tuple[ndarray[tuple[Any, ...], dtype[Any]] | Any, str, str]", expected "tuple[T_DuckArray, str, str]") [return-value]
+ xarray/core/groupby.py: note: In member "_flox_reduce" of class "GroupBy":
+ xarray/core/groupby.py:1213: error: Incompatible return value type (got "Any | Dataset", expected "DataArray") [return-value]
+ xarray/core/groupby.py: note: At top level:
+ xarray/core/dataset.py: note: In member "_validate_indexers" of class "Dataset":
+ xarray/core/dataset.py:2689: error: Item "_arrayfunction[Any, Any]" of "Any | ndarray[tuple[Any, ...], dtype[Any]] | _arrayfunction[Any, Any] | _arrayapi[Any, Any]" has no attribute "ndim" [union-attr]
+ xarray/core/dataset.py:2689: error: Item "_arrayapi[Any, Any]" of "Any | ndarray[tuple[Any, ...], dtype[Any]] | _arrayfunction[Any, Any] | _arrayapi[Any, Any]" has no attribute "ndim" [union-attr]
+ xarray/core/dataset.py:2694: error: Incompatible types in "yield" (actual type "tuple[Hashable, Any | ndarray[tuple[Any, ...], dtype[Any]] | _arrayfunction[Any, Any] | _arrayapi[Any, Any]]", expected type "tuple[Hashable, int | slice[Any, Any, Any] | ndarray[tuple[Any, ...], dtype[Any]] | Variable]") [misc]
+ xarray/core/dataset.py: note: In member "drop" of class "Dataset":
+ xarray/core/dataset.py:6044: error: Argument 1 to "drop_vars" of "Dataset" has incompatible type "Hashable | Iterable[Any]"; expected "str | Iterable[Hashable] | Callable[[Self], str | Iterable[Hashable]]" [arg-type]
+ xarray/backends/h5netcdf_.py: note: In member "open" of class "H5NetCDFStore":
+ xarray/backends/h5netcdf_.py:249: error: Argument 1 to "get_write_lock" has incompatible type "IOBase | Any"; expected "str" [arg-type]
+ xarray/core/missing.py: note: In function "get_clean_interp_index":
+ xarray/core/missing.py:324: error: Item "Variable" of "Variable | Any | ndarray[tuple[Any, ...], dtype[Any]]" has no attribute "name" [union-attr]
+ xarray/core/missing.py:324: error: Item "ndarray[tuple[Any, ...], dtype[Any]]" of "Variable | Any | ndarray[tuple[Any, ...], dtype[Any]]" has no attribute "name" [union-attr]
+ xarray/core/missing.py: note: At top level:
manticore (https://github.com/trailofbits/manticore)
+ manticore/core/state.py:519: error: Incompatible return value type (got "list[bytes | Any]", expected "list[int]") [return-value]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/console/commands/init.py:391: error: Argument 1 to "_find_best_version_for_package" of "InitCommand" has incompatible type "Literal[True] | Any"; expected "str" [arg-type]
mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/utils/debug.py:74: error: "Thread" has no attribute "_threadinfo" [attr-defined]
+ mitmproxy/http.py:1202: error: Argument 2 to "refresh_set_cookie_header" has incompatible type "float | Any"; expected "int" [arg-type]
+ mitmproxy/io/har.py:106: error: Item "bytes" of "str | bytes" has no attribute "encode" [union-attr]
+ mitmproxy/io/har.py:120: error: Argument 5 to "Response" has incompatible type "bytes | Any | str"; expected "bytes | None" [arg-type]
- mitmproxy/tools/console/grideditor/base.py:168: error: Unused "type: ignore" comment [unused-ignore]
jax (https://github.com/google/jax)
+ jax/_src/numpy/lax_numpy.py:216: error: Incompatible return value type (got "ndarray[Any, Any] | Array | Any", expected "Array") [return-value]
+ jax/experimental/multihost_utils.py:292: error: Item "dtype[Any]" of "Any | dtype[Any]" has no attribute "_impl" [union-attr]
+ jax/experimental/mosaic/gpu/core.py:788: error: Item "Device" of "Device | Any" has no attribute "compute_capability" [union-attr]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/errortracking/_handled_exceptions/callbacks.py:50: error: Incompatible return value type (got "tuple[BaseException | Any, Span, SpanEventData]", expected "tuple[Exception, Span, SpanEventData] | None") [return-value]
ibis (https://github.com/ibis-project/ibis)
+ ibis/backends/sql/datatypes.py:702: error: Argument "scale" to "Timestamp" has incompatible type "int | None"; expected "Literal[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | None" [arg-type]
+ ibis/expr/operations/core.py:65: error: Argument 1 to "int" has incompatible type "Node | Any | None"; expected "str | Buffer | SupportsInt | SupportsIndex" [arg-type]
+ ibis/expr/operations/core.py:67: error: Argument 1 to "float" has incompatible type "Node | Any | None"; expected "str | Buffer | SupportsFloat | SupportsIndex" [arg-type]
+ ibis/expr/api.py:2527: error: Item "Value" of "Any | Value" has no attribute "ifelse" [union-attr]
+ ibis/expr/types/_rich.py:406: error: Unsupported operand types for + ("None" and "int") [operator]
+ ibis/expr/types/_rich.py:406: note: Left operand is of type "Any | None"
- ibis/backends/mssql/__init__.py:381: error: Argument 1 to "Schema" has incompatible type "dict[Any, DataType]"; expected "FrozenOrderedDict[str, DataType]" [arg-type]
+ ibis/backends/mssql/__init__.py:381: error: Argument 1 to "Schema" has incompatible type "dict[str | Any, DataType]"; expected "FrozenOrderedDict[str, DataType]" [arg-type]
- ibis/backends/bigquery/__init__.py:898: error: Argument "database" to "insert" of "SQLBackend" has incompatible type "tuple[Any, Any]"; expected "str | None" [arg-type]
+ ibis/backends/bigquery/__init__.py:898: error: Argument "database" to "insert" of "SQLBackend" has incompatible type "tuple[str | Any, str | Any | None]"; expected "str | None" [arg-type]
- ibis/backends/bigquery/__init__.py:945: error: Argument "database" to "upsert" of "SQLBackend" has incompatible type "tuple[Any, Any]"; expected "str | None" [arg-type]
+ ibis/backends/bigquery/__init__.py:945: error: Argument "database" to "upsert" of "SQLBackend" has incompatible type "tuple[str | Any, str | Any | None]"; expected "str | None" [arg-type]
sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/writers/latex.py: note: In member "generate_indices" of class "LaTeXTranslator":
+ sphinx/writers/latex.py:593:40: error: Unsupported right operand type for in ("frozenset[Any] | bool") [operator]
+ sphinx/builders/html/__init__.py: note: In member "prepare_writing" of class "StandaloneHTMLBuilder":
+ sphinx/builders/html/__init__.py:459:40: error: Unsupported right operand type for in ("frozenset[Any] | bool") [operator]
+ sphinx/ext/viewcode.py: note: In function "doctree_read":
+ sphinx/ext/viewcode.py:144:18: error: Invalid index type "str" for "dict"; expected type "Never" [index]
+ sphinx/ext/viewcode.py:144:30: error: Incompatible types in assignment (expression has type "str", target has type "Never") [assignment]
+ sphinx/writers/texinfo.py: note: In member "collect_indices" of class "TexinfoTranslator":
+ sphinx/writers/texinfo.py:503:40: error: Unsupported right operand type for in ("frozenset[Any] | bool") [operator]
static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/container_util.py:1245: error: Unused "type: ignore" comment [unused-ignore]
+ static_frame/core/index.py:1213: error: Unused "type: ignore" comment [unused-ignore]
+ static_frame/core/index.py:1215: error: Unused "type: ignore" comment [unused-ignore]
|
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
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.
No description provided.