typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Experiment: use literals for whence

Open max-muoto opened this issue 1 year ago • 1 comments

max-muoto avatar Jul 13 '24 19:07 max-muoto

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

anyio (https://github.com/agronholm/anyio)
+ src/anyio/streams/file.py:102: error: Argument 1 to "run_sync" has incompatible type "Callable[[int, Literal[0, 1, 2]], int]"; expected "Callable[[int, int], int]"  [arg-type]

pip (https://github.com/pypa/pip)
+ src/pip/_internal/network/lazy_wheel.py:114: error: Argument 2 to "seek" of "_TemporaryFileWrapper" has incompatible type "int"; expected "Literal[0, 1, 2]"  [arg-type]

cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/config/cc_growpart.py:225: error: Argument 3 to "lseek" has incompatible type "int"; expected "Literal[0, 1, 2]"  [arg-type]
+ cloudinit/config/cc_disk_setup.py:584: error: Argument 2 to "seek" of "BufferedRandom" has incompatible type "int"; expected "Literal[0, 1, 2]"  [arg-type]

trio (https://github.com/python-trio/trio)
+ src/trio/_tests/type_tests/path.py:137: error: Invalid self argument "AsyncIOWrapper[BufferedRandom]" to attribute function "seek" with type "Callable[[AsyncIOWrapper[_CanSeek], int, int], Coroutine[Any, Any, int]]"  [misc]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/io/common.py:396: error: Argument "filepath_or_buffer" to "IOArgs" has incompatible type "BytesIO"; expected "str | BaseBuffer"  [arg-type]
+ pandas/io/common.py:396: note: Following member(s) of "BytesIO" have conflicts:
+ pandas/io/common.py:396: note:     Expected:
+ pandas/io/common.py:396: note:         def seek(self, int, int = ..., /) -> int
+ pandas/io/common.py:396: note:     Got:
+ pandas/io/common.py:396: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int
+ pandas/io/common.py:798: error: Incompatible types in assignment (expression has type "_BytesZipFile", variable has type "str | BaseBuffer")  [assignment]
+ pandas/io/common.py:803: error: Item "str" of "str | BaseBuffer" has no attribute "buffer"  [union-attr]
+ pandas/io/common.py:803: error: Item "BaseBuffer" of "str | BaseBuffer" has no attribute "buffer"  [union-attr]
+ pandas/io/common.py:804: error: Argument 1 to "append" of "list" has incompatible type "str | BaseBuffer"; expected "BaseBuffer"  [arg-type]
+ pandas/io/common.py:805: error: Item "str" of "str | BaseBuffer" has no attribute "buffer"  [union-attr]
+ pandas/io/common.py:805: error: Item "BaseBuffer" of "str | BaseBuffer" has no attribute "buffer"  [union-attr]
+ pandas/io/common.py:807: error: Item "str" of "str | BaseBuffer" has no attribute "buffer"  [union-attr]
+ pandas/io/common.py:807: error: Item "BaseBuffer" of "str | BaseBuffer" has no attribute "buffer"  [union-attr]
+ pandas/io/common.py:820: error: Incompatible types in assignment (expression has type "_BytesTarFile", variable has type "str | BaseBuffer")  [assignment]
+ pandas/io/common.py:825: error: Incompatible types in assignment (expression has type "_BytesTarFile", variable has type "str | BaseBuffer")  [assignment]
+ pandas/io/common.py:852: error: Incompatible types in assignment (expression has type "LZMAFile", variable has type "str | BaseBuffer")  [assignment]
+ pandas/io/common.py:884: error: Incompatible types in assignment (expression has type "IO[Any]", variable has type "str | BaseBuffer")  [assignment]
+ pandas/io/common.py:893: error: Incompatible types in assignment (expression has type "IO[Any]", variable has type "str | BaseBuffer")  [assignment]
+ pandas/io/common.py:894: error: Argument 1 to "append" of "list" has incompatible type "str"; expected "BaseBuffer"  [arg-type]
+ pandas/io/common.py:912: error: Argument 1 to "_IOWrapper" has incompatible type "str | BaseBuffer"; expected "BaseBuffer"  [arg-type]
- pandas/io/common.py:915: error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot be "_IOWrapper | BaseBuffer"  [type-var]
+ pandas/io/common.py:915: error: Value of type variable "_BufferT_co" of "TextIOWrapper" cannot be "str | _IOWrapper | BaseBuffer"  [type-var]
+ pandas/io/common.py:915: error: Incompatible types in assignment (expression has type "TextIOWrapper[str | _IOWrapper | BaseBuffer]", variable has type "str | BaseBuffer")  [assignment]
+ pandas/io/common.py:921: error: Argument 1 to "append" of "list" has incompatible type "str | _IOWrapper | BaseBuffer"; expected "BaseBuffer"  [arg-type]
+ pandas/io/common.py:1141: error: Incompatible types in assignment (expression has type "BufferedReader", variable has type "str | BaseBuffer")  [assignment]
+ pandas/io/formats/info.py:585: error: Incompatible types in assignment (expression has type "TextIO | Any", variable has type "WriteBuffer[str] | None")  [assignment]
+ pandas/io/formats/info.py:586: error: Argument 1 to "buffer_put_lines" has incompatible type "WriteBuffer[str] | None"; expected "WriteBuffer[str]"  [arg-type]
+ pandas/io/stata.py:1566: error: Argument 2 to "seek" of "IO" has incompatible type "int"; expected "Literal[0, 1, 2]"  [arg-type]
+ pandas/io/parquet.py:145: error: Incompatible types in assignment (expression has type "IO[bytes]", variable has type "str | ReadBuffer[bytes] | WriteBuffer[bytes]")  [assignment]
+ pandas/io/parquet.py:479: error: Incompatible types in assignment (expression has type "BytesIO | str | PathLike[str] | WriteBuffer[bytes]", variable has type "str | PathLike[str] | WriteBuffer[bytes]")  [assignment]
+ pandas/io/orc.py:236: error: Incompatible types in assignment (expression has type "BytesIO", variable has type "str | PathLike[str] | WriteBuffer[bytes] | None")  [assignment]
+ pandas/io/clipboards.py:129: error: No overload variant of "read_csv" matches argument types "StringIO", "str", "Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default]", "dict[str, Any]"  [call-overload]
+ pandas/io/clipboards.py:129: note: Possible overload variants:
+ pandas/io/clipboards.py:129: note:     def [HashableT <: Hashable] read_csv(filepath_or_buffer: str | PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str], *, iterator: Literal[True], chunksize: int | None = ..., sep: str | Literal[_NoDefault.no_default] | None = ..., delimiter: str | Literal[_NoDefault.no_default] | None = ..., header: int | Sequence[int] | Literal['infer'] | None = ..., names: Sequence[Hashable] | Literal[_NoDefault.no_default] | None = ..., index_col: Hashable | Sequence[Hashable] | Literal[False] | None = ..., usecols: SequenceNotStr[Hashable] | range | ExtensionArray | ndarray[Any, Any] | Index | Series | Callable[[Any], bool] | None = ..., dtype: ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | None = ..., engine: Literal['c', 'python', 'pyarrow', 'python-fwf'] | None = ..., converters: Mapping[HashableT, Callable[..., Any]] | None = ..., true_values: list[Any] | None = ..., false_values: list[Any] | None = ..., skipinitialspace: bool = ..., skiprows: list[int] | int | Callable[[Hashable], bool] | None = ..., skipfooter: int = ..., nrows: int | None = ..., na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = ..., keep_default_na: bool = ..., na_filter: bool = ..., skip_blank_lines: bool = ..., parse_dates: bool | Sequence[Hashable] | None = ..., date_format: str | dict[Hashable, str] | None = ..., dayfirst: bool = ..., cache_dates: bool = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd', 'tar'] | dict[str, Any] | None = ..., thousands: str | None = ..., decimal: str = ..., lineterminator: str | None = ..., quotechar: str = ..., quoting: int = ..., doublequote: bool = ..., escapechar: str | None = ..., comment: str | None = ..., encoding: str | None = ..., encoding_errors: str | None = ..., dialect: str | Dialect | None = ..., on_bad_lines: str = ..., low_memory: bool = ..., memory_map: bool = ..., float_precision: Literal['high', 'legacy', 'round_trip'] | None = ..., storage_options: dict[str, Any] | None | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> TextFileReader
+ pandas/io/clipboards.py:129: note:     def [HashableT <: Hashable] read_csv(filepath_or_buffer: str | PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str], *, iterator: bool = ..., chunksize: int, sep: str | Literal[_NoDefault.no_default] | None = ..., delimiter: str | Literal[_NoDefault.no_default] | None = ..., header: int | Sequence[int] | Literal['infer'] | None = ..., names: Sequence[Hashable] | Literal[_NoDefault.no_default] | None = ..., index_col: Hashable | Sequence[Hashable] | Literal[False] | None = ..., usecols: SequenceNotStr[Hashable] | range | ExtensionArray | ndarray[Any, Any] | Index | Series | Callable[[Any], bool] | None = ..., dtype: ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | None = ..., engine: Literal['c', 'python', 'pyarrow', 'python-fwf'] | None = ..., converters: Mapping[HashableT, Callable[..., Any]] | None = ..., true_values: list[Any] | None = ..., false_values: list[Any] | None = ..., skipinitialspace: bool = ..., skiprows: list[int] | int | Callable[[Hashable], bool] | None = ..., skipfooter: int = ..., nrows: int | None = ..., na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = ..., keep_default_na: bool = ..., na_filter: bool = ..., skip_blank_lines: bool = ..., parse_dates: bool | Sequence[Hashable] | None = ..., date_format: str | dict[Hashable, str] | None = ..., dayfirst: bool = ..., cache_dates: bool = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd', 'tar'] | dict[str, Any] | None = ..., thousands: str | None = ..., decimal: str = ..., lineterminator: str | None = ..., quotechar: str = ..., quoting: int = ..., doublequote: bool = ..., escapechar: str | None = ..., comment: str | None = ..., encoding: str | None = ..., encoding_errors: str | None = ..., dialect: str | Dialect | None = ..., on_bad_lines: str = ..., low_memory: bool = ..., memory_map: bool = ..., float_precision: Literal['high', 'legacy', 'round_trip'] | None = ..., storage_options: dict[str, Any] | None | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> TextFileReader
+ pandas/io/clipboards.py:129: note:     def [HashableT <: Hashable] read_csv(filepath_or_buffer: str | PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str], *, iterator: Literal[False] = ..., chunksize: None = ..., sep: str | Literal[_NoDefault.no_default] | None = ..., delimiter: str | Literal[_NoDefault.no_default] | None = ..., header: int | Sequence[int] | Literal['infer'] | None = ..., names: Sequence[Hashable] | Literal[_NoDefault.no_default] | None = ..., index_col: Hashable | Sequence[Hashable] | Literal[False] | None = ..., usecols: SequenceNotStr[Hashable] | range | ExtensionArray | ndarray[Any, Any] | Index | Series | Callable[[Any], bool] | None = ..., dtype: ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | None = ..., engine: Literal['c', 'python', 'pyarrow', 'python-fwf'] | None = ..., converters: Mapping[HashableT, Callable[..., Any]] | None = ..., true_values: list[Any] | None = ..., false_values: list[Any] | None = ..., skipinitialspace: bool = ..., skiprows: list[int] | int | Callable[[Hashable], bool] | None = ..., skipfooter: int = ..., nrows: int | None = ..., na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = ..., keep_default_na: bool = ..., na_filter: bool = ..., skip_blank_lines: bool = ..., parse_dates: bool | Sequence[Hashable] | None = ..., date_format: str | dict[Hashable, str] | None = ..., dayfirst: bool = ..., cache_dates: bool = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd', 'tar'] | dict[str, Any] | None = ..., thousands: str | None = ..., decimal: str = ..., lineterminator: str | None = ..., quotechar: str = ..., quoting: int = ..., doublequote: bool = ..., escapechar: str | None = ..., comment: str | None = ..., encoding: str | None = ..., encoding_errors: str | None = ..., dialect: str | Dialect | None = ..., on_bad_lines: str = ..., low_memory: bool = ..., memory_map: bool = ..., float_precision: Literal['high', 'legacy', 'round_trip'] | None = ..., storage_options: dict[str, Any] | None | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> DataFrame
+ pandas/io/clipboards.py:129: note:     def [HashableT <: Hashable] read_csv(filepath_or_buffer: str | PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str], *, iterator: bool = ..., chunksize: int | None = ..., sep: str | Literal[_NoDefault.no_default] | None = ..., delimiter: str | Literal[_NoDefault.no_default] | None = ..., header: int | Sequence[int] | Literal['infer'] | None = ..., names: Sequence[Hashable] | Literal[_NoDefault.no_default] | None = ..., index_col: Hashable | Sequence[Hashable] | Literal[False] | None = ..., usecols: SequenceNotStr[Hashable] | range | ExtensionArray | ndarray[Any, Any] | Index | Series | Callable[[Any], bool] | None = ..., dtype: ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Hashable, ExtensionDtype | str | dtype[Any] | type[str] | type[complex] | type[bool] | type[object]] | None = ..., engine: Literal['c', 'python', 'pyarrow', 'python-fwf'] | None = ..., converters: Mapping[HashableT, Callable[..., Any]] | None = ..., true_values: list[Any] | None = ..., false_values: list[Any] | None = ..., skipinitialspace: bool = ..., skiprows: list[int] | int | Callable[[Hashable], bool] | None = ..., skipfooter: int = ..., nrows: int | None = ..., na_values: Hashable | Iterable[Hashable] | Mapping[Hashable, Iterable[Hashable]] | None = ..., keep_default_na: bool = ..., na_filter: bool = ..., skip_blank_lines: bool = ..., parse_dates: bool | Sequence[Hashable] | None = ..., date_format: str | dict[Hashable, str] | None = ..., dayfirst: bool = ..., cache_dates: bool = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd', 'tar'] | dict[str, Any] | None = ..., thousands: str | None = ..., decimal: str = ..., lineterminator: str | None = ..., quotechar: str = ..., quoting: int = ..., doublequote: bool = ..., escapechar: str | None = ..., comment: str | None = ..., encoding: str | None = ..., encoding_errors: str | None = ..., dialect: str | Dialect | None = ..., on_bad_lines: str = ..., low_memory: bool = ..., memory_map: bool = ..., float_precision: Literal['high', 'legacy', 'round_trip'] | None = ..., storage_options: dict[str, Any] | None | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> DataFrame | TextFileReader
+ pandas/io/parsers/readers.py:1434: error: Argument 1 to "stringify_path" has incompatible type "str | PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | IO[Any]"; expected "str | PathLike[str]"  [arg-type]
+ pandas/io/parsers/readers.py:1442: error: Argument 1 to "get_handle" has incompatible type "str | PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str] | IO[Any]"; expected "str | PathLike[str] | BaseBuffer"  [arg-type]
+ pandas/io/formats/format.py:974: error: Incompatible types in assignment (expression has type "StringIO", variable has type "str | PathLike[str] | WriteBuffer[bytes] | WriteBuffer[str] | None")  [assignment]
+ pandas/io/formats/format.py:979: error: Argument "path_or_buf" to "CSVFormatter" has incompatible type "str | PathLike[str] | WriteBuffer[bytes] | WriteBuffer[str] | None"; expected "str | PathLike[str] | WriteBuffer[str] | WriteBuffer[bytes]"  [arg-type]
+ pandas/io/formats/format.py:1017: error: "object" has no attribute "write"  [attr-defined]
+ pandas/io/formats/format.py:1035: error: Incompatible types in assignment (expression has type "StringIO", variable has type "str | PathLike[str] | WriteBuffer[str] | None")  [assignment]
+ pandas/io/formats/format.py:1053: error: Incompatible types in "yield" (actual type "TextIOWrapper[_WrappedBuffer]", expected type "WriteBuffer[str] | StringIO")  [misc]
+ pandas/core/series.py:1626: error: Argument 1 to "to_markdown" of "DataFrame" has incompatible type "IO[str] | None"; expected "None"  [arg-type]
+ pandas/core/series.py:5031: error: Argument "buf" to "render" of "SeriesInfo" has incompatible type "IO[str] | None"; expected "WriteBuffer[str] | None"  [arg-type]
+ pandas/core/frame.py:1135: error: No overload variant of "to_string" of "DataFrame" matches argument type "StringIO"  [call-overload]
+ pandas/core/frame.py:1135: note: Possible overload variants:
+ pandas/core/frame.py:1135: note:     def to_string(self, buf: None = ..., *, columns: ExtensionArray | ndarray[Any, Any] | Index | Series | SequenceNotStr[Any] | range | None = ..., col_space: int | list[int] | dict[Hashable, int] | None = ..., header: bool | SequenceNotStr[str] = ..., index: bool = ..., na_rep: str = ..., formatters: list[Callable[..., Any]] | tuple[Callable[..., Any], ...] | Mapping[str | int, Callable[..., Any]] | None = ..., float_format: str | Callable[..., Any] | EngFormatter | None = ..., sparsify: bool | None = ..., index_names: bool = ..., justify: str | None = ..., max_rows: int | None = ..., max_cols: int | None = ..., show_dimensions: bool = ..., decimal: str = ..., line_width: int | None = ..., min_rows: int | None = ..., max_colwidth: int | None = ..., encoding: str | None = ...) -> str
+ pandas/core/frame.py:1135: note:     def to_string(self, buf: str | PathLike[str] | WriteBuffer[str], *, columns: ExtensionArray | ndarray[Any, Any] | Index | Series | SequenceNotStr[Any] | range | None = ..., col_space: int | list[int] | dict[Hashable, int] | None = ..., header: bool | SequenceNotStr[str] = ..., index: bool = ..., na_rep: str = ..., formatters: list[Callable[..., Any]] | tuple[Callable[..., Any], ...] | Mapping[str | int, Callable[..., Any]] | None = ..., float_format: str | Callable[..., Any] | EngFormatter | None = ..., sparsify: bool | None = ..., index_names: bool = ..., justify: str | None = ..., max_rows: int | None = ..., max_cols: int | None = ..., show_dimensions: bool = ..., decimal: str = ..., line_width: int | None = ..., min_rows: int | None = ..., max_colwidth: int | None = ..., encoding: str | None = ...) -> None
+ pandas/core/frame.py:1156: error: Argument "buf" to "info" of "DataFrame" has incompatible type "StringIO"; expected "WriteBuffer[str] | None"  [arg-type]
+ pandas/core/frame.py:1156: note: Following member(s) of "StringIO" have conflicts:
+ pandas/core/frame.py:1156: note:     Expected:
+ pandas/core/frame.py:1156: note:         def seek(self, int, int = ..., /) -> int
+ pandas/core/frame.py:1156: note:     Got:
+ pandas/core/frame.py:1156: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int
+ pandas/core/frame.py:1170: error: Argument "buf" to "info" of "DataFrame" has incompatible type "StringIO"; expected "WriteBuffer[str] | None"  [arg-type]
+ pandas/core/frame.py:1170: note: Following member(s) of "StringIO" have conflicts:
+ pandas/core/frame.py:1170: note:     Expected:
+ pandas/core/frame.py:1170: note:         def seek(self, int, int = ..., /) -> int
+ pandas/core/frame.py:1170: note:     Got:
+ pandas/core/frame.py:1170: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/media.py:65: error: Incompatible types in assignment (expression has type "object", variable has type "MediaIO")  [assignment]
+ steam/models.py:210: error: Argument 1 to "Media" has incompatible type "BytesIO"; expected "MediaIO | str | bytes | PathLike[str] | PathLike[bytes] | int"  [arg-type]
+ steam/models.py:210: note: Following member(s) of "BytesIO" have conflicts:
+ steam/models.py:210: note:     Expected:
+ steam/models.py:210: note:         def seek(self, int, int = ..., /) -> Any
+ steam/models.py:210: note:     Got:
+ steam/models.py:210: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int

poetry (https://github.com/python-poetry/poetry)
+ src/poetry/inspection/lazy_wheel.py:262: error: Argument 2 to "seek" of "IO" has incompatible type "int"; expected "Literal[0, 1, 2]"  [arg-type]

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ tests/test_plotting.py:184: error: No overload variant of "read_csv" matches argument type "StringIO"  [call-overload]
+ tests/test_plotting.py:184: note: Possible overload variants:
+ tests/test_plotting.py:184: note:     def read_csv(filepath_or_buffer: str | PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str], *, sep: str | None = ..., delimiter: str | None = ..., header: int | Sequence[int] | Literal['infer'] | None = ..., names: MutableSequence[Any] | ndarray[Any, Any] | tuple[Any, ...] | range | None = ..., index_col: int | str | Sequence[str | int] | Literal[False] | None = ..., usecols: SequenceNotStr[Hashable] | range | Index[Any] | Series[Any] | ndarray[Any, Any] | Callable[[Any], bool] | None = ..., dtype: ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]] | defaultdict[Any, Any] | None = ..., engine: Literal['c', 'python', 'pyarrow', 'python-fwf'] | None = ..., converters: Mapping[int | str, Callable[[str], Any]] | Mapping[int, Callable[[str], Any]] | Mapping[str, Callable[[str], Any]] | None = ..., true_values: list[str] = ..., false_values: list[str] = ..., skipinitialspace: bool = ..., skiprows: int | Sequence[int] | Callable[[int], bool] = ..., skipfooter: int = ..., nrows: int | None = ..., na_values: Sequence[str] | Mapping[str, Sequence[str]] = ..., keep_default_na: bool = ..., na_filter: bool = ..., verbose: bool = ..., skip_blank_lines: bool = ..., parse_dates: bool | list[int] | list[str] | Sequence[Sequence[int]] | Mapping[str, Sequence[int | str]] = ..., infer_datetime_format: bool = ..., keep_date_col: bool = ..., date_format: dict[Hashable, str] | str | None = ..., dayfirst: bool = ..., cache_dates: bool = ..., iterator: Literal[True], chunksize: int | None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., thousands: str | None = ..., decimal: str = ..., lineterminator: str | None = ..., quotechar: str = ..., quoting: Literal[0, 1, 2, 3] = ..., doublequote: bool = ..., escapechar: str | None = ..., comment: str | None = ..., encoding: str | None = ..., encoding_errors: str | None = ..., dialect: str | Dialect = ..., on_bad_lines: Literal['error', 'warn', 'skip'] | Callable[[list[str]], list[str] | None] = ..., delim_whitespace: bool = ..., low_memory: bool = ..., memory_map: bool = ..., float_precision: Literal['high', 'legacy', 'round_trip'] | None = ..., storage_options: dict[str, Any] | None | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> TextFileReader
+ tests/test_plotting.py:184: note:     def read_csv(filepath_or_buffer: str | PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str], *, sep: str | None = ..., delimiter: str | None = ..., header: int | Sequence[int] | Literal['infer'] | None = ..., names: MutableSequence[Any] | ndarray[Any, Any] | tuple[Any, ...] | range | None = ..., index_col: int | str | Sequence[str | int] | Literal[False] | None = ..., usecols: SequenceNotStr[Hashable] | range | Index[Any] | Series[Any] | ndarray[Any, Any] | Callable[[Any], bool] | None = ..., dtype: ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]] | defaultdict[Any, Any] | None = ..., engine: Literal['c', 'python', 'pyarrow', 'python-fwf'] | None = ..., converters: Mapping[int | str, Callable[[str], Any]] | Mapping[int, Callable[[str], Any]] | Mapping[str, Callable[[str], Any]] | None = ..., true_values: list[str] = ..., false_values: list[str] = ..., skipinitialspace: bool = ..., skiprows: int | Sequence[int] | Callable[[int], bool] = ..., skipfooter: int = ..., nrows: int | None = ..., na_values: Sequence[str] | Mapping[str, Sequence[str]] = ..., keep_default_na: bool = ..., na_filter: bool = ..., verbose: bool = ..., skip_blank_lines: bool = ..., parse_dates: bool | list[int] | list[str] | Sequence[Sequence[int]] | Mapping[str, Sequence[int | str]] = ..., infer_datetime_format: bool = ..., keep_date_col: bool = ..., date_format: dict[Hashable, str] | str | None = ..., dayfirst: bool = ..., cache_dates: bool = ..., iterator: bool = ..., chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., thousands: str | None = ..., decimal: str = ..., lineterminator: str | None = ..., quotechar: str = ..., quoting: Literal[0, 1, 2, 3] = ..., doublequote: bool = ..., escapechar: str | None = ..., comment: str | None = ..., encoding: str | None = ..., encoding_errors: str | None = ..., dialect: str | Dialect = ..., on_bad_lines: Literal['error', 'warn', 'skip'] | Callable[[list[str]], list[str] | None] = ..., delim_whitespace: bool = ..., low_memory: bool = ..., memory_map: bool = ..., float_precision: Literal['high', 'legacy', 'round_trip'] | None = ..., storage_options: dict[str, Any] | None | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> TextFileReader
+ tests/test_plotting.py:184: note:     def read_csv(filepath_or_buffer: str | PathLike[str] | ReadCsvBuffer[bytes] | ReadCsvBuffer[str], *, sep: str | None = ..., delimiter: str | None = ..., header: int | Sequence[int] | Literal['infer'] | None = ..., names: MutableSequence[Any] | ndarray[Any, Any] | tuple[Any, ...] | range | None = ..., index_col: int | str | Sequence[str | int] | Literal[False] | None = ..., usecols: SequenceNotStr[Hashable] | range | Index[Any] | Series[Any] | ndarray[Any, Any] | Callable[[Any], bool] | None = ..., dtype: ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]] | defaultdict[Any, Any] | None = ..., engine: Literal['c', 'python', 'pyarrow', 'python-fwf'] | None = ..., converters: Mapping[int | str, Callable[[str], Any]] | Mapping[int, Callable[[str], Any]] | Mapping[str, Callable[[str], Any]] | None = ..., true_values: list[str] = ..., false_values: list[str] = ..., skipinitialspace: bool = ..., skiprows: int | Sequence[int] | Callable[[int], bool] = ..., skipfooter: int = ..., nrows: int | None = ..., na_values: Sequence[str] | Mapping[str, Sequence[str]] = ..., keep_default_na: bool = ..., na_filter: bool = ..., verbose: bool = ..., skip_blank_lines: bool = ..., parse_dates: bool | list[int] | list[str] | Sequence[Sequence[int]] | Mapping[str, Sequence[int | str]] = ..., infer_datetime_format: bool = ..., keep_date_col: bool = ..., date_format: dict[Hashable, str] | str | None = ..., dayfirst: bool = ..., cache_dates: bool = ..., iterator: Literal[False] = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., thousands: str | None = ..., decimal: str = ..., lineterminator: str | None = ..., quotechar: str = ..., quoting: Literal[0, 1, 2, 3] = ..., doublequote: bool = ..., escapechar: str | None = ..., comment: str | None = ..., encoding: str | None = ..., encoding_errors: str | None = ..., dialect: str | Dialect = ..., on_bad_lines: Literal['error', 'warn', 'skip'] | Callable[[list[str]], list[str] | None] = ..., delim_whitespace: bool = ..., low_memory: bool = ..., memory_map: bool = ..., float_precision: Literal['high', 'legacy', 'round_trip'] | None = ..., storage_options: dict[str, Any] | None | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> DataFrame
+ tests/test_plotting.py:281: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:282: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:283: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:285: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:292: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:301: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:302: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:304: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:311: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:320: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:321: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:323: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:330: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:339: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:340: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:342: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:349: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:358: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:359: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:361: error: Expression is of type "Any", not "Series[Any]"  [assert-type]
+ tests/test_plotting.py:368: error: Expression is of type "Any", not "Series[Any]"  [assert-type]
+ tests/test_plotting.py:377: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:378: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:380: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:387: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:397: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:401: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:405: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:412: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:421: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:422: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:424: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:431: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:440: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:441: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:443: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:450: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:459: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:460: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:462: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:470: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:480: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:484: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:490: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:497: error: Expression is of type "Any", not "ndarray[Any, dtype[object_]]"  [assert-type]
+ tests/test_plotting.py:511: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:556: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:573: error: Expression is of type "Any", not "Axes"  [assert-type]
+ tests/test_plotting.py:618: error: Expression is of type "Any", not "Series[Any]"  [assert-type]
+ tests/test_plotting.py:620: error: Expression is of type "Any", not "Series[Any]"  [assert-type]
+ tests/test_io.py:92: error: Expression is of type "Any", not "None"  [assert-type]
+ tests/test_io.py:92: error: No overload variant of "to_orc" of "DataFrame" matches argument type "BufferedWriter"  [call-overload]
+ tests/test_io.py:92: note: Possible overload variants:
+ tests/test_io.py:92: note:     def to_orc(self, path: str | PathLike[str] | WriteBuffer[bytes], *, engine: Literal['pyarrow'] = ..., index: bool | None = ..., engine_kwargs: dict[str, Any] | None = ...) -> None
+ tests/test_io.py:92: note:     def to_orc(self, path: None = ..., *, engine: Literal['pyarrow'] = ..., index: bool | None = ..., engine_kwargs: dict[str, Any] | None = ...) -> bytes
+ tests/test_io.py:95: error: Argument 1 to "read_orc" has incompatible type "BufferedReader"; expected "str | PathLike[str] | ReadBuffer[bytes]"  [arg-type]
+ tests/test_io.py:95: note: Following member(s) of "BufferedReader" have conflicts:
+ tests/test_io.py:95: note:     Expected:
+ tests/test_io.py:95: note:         def seek(self, int, int = ..., /) -> int
+ tests/test_io.py:95: note:     Got:
+ tests/test_io.py:95: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int
+ tests/test_io.py:115: error: Argument 1 to "read_xml" has incompatible type "BufferedReader"; expected "str | PathLike[str] | ReadBuffer[bytes] | ReadBuffer[str]"  [arg-type]
+ tests/test_io.py:115: note: Following member(s) of "BufferedReader" have conflicts:
+ tests/test_io.py:115: note:     Expected:
+ tests/test_io.py:115: note:         def seek(self, int, int = ..., /) -> int
+ tests/test_io.py:115: note:     Got:
+ tests/test_io.py:115: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int
+ tests/test_io.py:115: note:     Expected:
+ tests/test_io.py:115: note:         def read(self, int = ..., /) -> str
+ tests/test_io.py:115: note:     Got:
+ tests/test_io.py:115: note:         def read(self, int | None = ..., /) -> bytes
+ tests/test_io.py:115: note:     Expected:
+ tests/test_io.py:115: note:         def seek(self, int, int = ..., /) -> int
+ tests/test_io.py:115: note:     Got:
+ tests/test_io.py:115: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int
+ tests/test_io.py:121: error: Argument 1 to "read_xml" has incompatible type "StringIO"; expected "str | PathLike[str] | ReadBuffer[bytes] | ReadBuffer[str]"  [arg-type]
+ tests/test_io.py:121: note: Following member(s) of "StringIO" have conflicts:
+ tests/test_io.py:121: note:     Expected:
+ tests/test_io.py:121: note:         def read(self, int = ..., /) -> bytes
+ tests/test_io.py:121: note:     Got:
+ tests/test_io.py:121: note:         def read(self, int | None = ..., /) -> str
+ tests/test_io.py:121: note:     Expected:
+ tests/test_io.py:121: note:         def seek(self, int, int = ..., /) -> int
+ tests/test_io.py:121: note:     Got:
+ tests/test_io.py:121: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int
+ tests/test_io.py:121: note:     Expected:
+ tests/test_io.py:121: note:         def seek(self, int, int = ..., /) -> int
+ tests/test_io.py:121: note:     Got:
+ tests/test_io.py:121: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int
+ tests/test_io.py:138: error: Argument 1 to "read_pickle" has incompatible type "BufferedReader"; expected "str | PathLike[str] | ReadPickleBuffer"  [arg-type]
+ tests/test_io.py:138: note: Following member(s) of "BufferedReader" have conflicts:
+ tests/test_io.py:138: note:     Expected:
+ tests/test_io.py:138: note:         def seek(self, int, int = ..., /) -> int
+ tests/test_io.py:138: note:     Got:
+ tests/test_io.py:138: note:         def seek(self, int, Literal[0, 1, 2] = ..., /) -> int
+ tests/test_io.py:453: error: Expression is of type "Any", not "DataFrame"  [assert-type]
+ tests/test_io.py:453: error: No overload variant of "read_json" matches argument type "StringIO"  [call-overload]
+ tests/test_io.py:453: note: Possible overload variants:
+ tests/test_io.py:453: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[Series[Any]]
+ tests/test_io.py:453: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[DataFrame]
+ tests/test_io.py:453: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> Series[Any]
+ tests/test_io.py:453: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> DataFrame
+ tests/test_io.py:463: error: Expression is of type "Any", not "Series[Any]"  [assert-type]
+ tests/test_io.py:464: error: No overload variant of "read_json" matches argument types "StringIO", "str", "None"  [call-overload]
+ tests/test_io.py:464: note: Possible overload variants:
+ tests/test_io.py:464: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[Series[Any]]
+ tests/test_io.py:464: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[DataFrame]
+ tests/test_io.py:464: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> Series[Any]
+ tests/test_io.py:464: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> DataFrame
+ tests/test_io.py:470: error: Expression is of type "Any", not "Series[Any]"  [assert-type]
+ tests/test_io.py:471: error: No overload variant of "read_json" matches argument types "StringIO", "str", "str"  [call-overload]
+ tests/test_io.py:471: note: Possible overload variants:
+ tests/test_io.py:471: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[Series[Any]]
+ tests/test_io.py:471: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[DataFrame]
+ tests/test_io.py:471: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> Series[Any]
+ tests/test_io.py:471: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> DataFrame
+ tests/test_io.py:479: error: Expression is of type "Any", not "Series[Any]"  [assert-type]
+ tests/test_io.py:480: error: No overload variant of "read_json" matches argument types "StringIO", "str", "str"  [call-overload]
+ tests/test_io.py:480: note: Possible overload variants:
+ tests/test_io.py:480: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[Series[Any]]
+ tests/test_io.py:480: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[DataFrame]
+ tests/test_io.py:480: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> Series[Any]
+ tests/test_io.py:480: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> DataFrame
+ tests/test_io.py:488: error: Expression is of type "Any", not "Series[Any]"  [assert-type]
+ tests/test_io.py:489: error: No overload variant of "read_json" matches argument types "StringIO", "str", "str"  [call-overload]
+ tests/test_io.py:489: note: Possible overload variants:
+ tests/test_io.py:489: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[Series[Any]]
+ tests/test_io.py:489: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[DataFrame]
+ tests/test_io.py:489: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> Series[Any]
+ tests/test_io.py:489: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> DataFrame
+ tests/test_io.py:497: error: Expression is of type "Any", not "Series[Any]"  [assert-type]
+ tests/test_io.py:498: error: No overload variant of "read_json" matches argument types "StringIO", "str", "str"  [call-overload]
+ tests/test_io.py:498: note: Possible overload variants:
+ tests/test_io.py:498: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[Series[Any]]
+ tests/test_io.py:498: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: Literal[True], chunksize: int, compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> JsonReader[DataFrame]
+ tests/test_io.py:498: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'table'] | None = ..., typ: Literal['series'], dtype: bool | Mapping[HashableT, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object] | Mapping[Any, ExtensionDtype | str | dtype[generic] | type[str] | type[complex] | type[bool] | type[object]]] | None = ..., convert_axes: bool | None = ..., convert_dates: bool | list[str] = ..., keep_default_dates: bool = ..., precise_float: bool = ..., date_unit: Literal['s', 'ms', 'us', 'ns'] | None = ..., encoding: str | None = ..., encoding_errors: Literal['strict', 'ignore', 'replace', 'backslashreplace', 'surrogateescape'] | None = ..., lines: bool = ..., chunksize: None = ..., compression: Literal['infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd'] | dict[str, Any] | None = ..., nrows: int | None = ..., storage_options: dict[str, Any] | None = ..., dtype_backend: Literal['pyarrow', 'numpy_nullable'] | Literal[_NoDefault.no_default] = ...) -> Series[Any]
+ tests/test_io.py:498: note:     def [HashableT <: Hashable] read_json(path_or_buf: str | PathLike[str] | ReadBuffer[str] | ReadBuffer[bytes], *, orient: Literal['split', 'records', 'index', 'columns', 'values', 'table'] | None = ..., typ: Literal['frame'] = ..., dtype: bool 

... (truncated 116 lines) ...

github-actions[bot] avatar Jul 13 '24 19:07 github-actions[bot]