done
This commit is contained in:
		| @ -0,0 +1 @@ | ||||
| from pandas.io.sas.sasreader import read_sas as read_sas | ||||
| @ -0,0 +1,8 @@ | ||||
| from pandas import DataFrame | ||||
|  | ||||
| from pandas.io.sas.sasreader import ReaderBase | ||||
|  | ||||
| class SAS7BDATReader(ReaderBase): | ||||
|     def close(self) -> None: ... | ||||
|     def __next__(self) -> DataFrame: ... | ||||
|     def read(self, nrows: int | None = ...) -> DataFrame: ... | ||||
| @ -0,0 +1,8 @@ | ||||
| import pandas as pd | ||||
|  | ||||
| from pandas.io.sas.sasreader import ReaderBase | ||||
|  | ||||
| class XportReader(ReaderBase): | ||||
|     def close(self) -> None: ... | ||||
|     def __next__(self) -> pd.DataFrame: ... | ||||
|     def read(self, nrows: int | None = ...) -> pd.DataFrame: ... | ||||
							
								
								
									
										107
									
								
								lib/python3.11/site-packages/pandas-stubs/io/sas/sasreader.pyi
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								lib/python3.11/site-packages/pandas-stubs/io/sas/sasreader.pyi
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,107 @@ | ||||
| from abc import ( | ||||
|     ABCMeta, | ||||
|     abstractmethod, | ||||
| ) | ||||
| from collections.abc import Hashable | ||||
| from typing import ( | ||||
|     Literal, | ||||
|     overload, | ||||
| ) | ||||
|  | ||||
| from pandas import DataFrame | ||||
| from typing_extensions import Self | ||||
|  | ||||
| from pandas._typing import ( | ||||
|     CompressionOptions as CompressionOptions, | ||||
|     FilePath as FilePath, | ||||
|     ReadBuffer, | ||||
| ) | ||||
|  | ||||
| from pandas.io.sas.sas7bdat import SAS7BDATReader | ||||
| from pandas.io.sas.sas_xport import XportReader | ||||
|  | ||||
| class ReaderBase(metaclass=ABCMeta): | ||||
|     @abstractmethod | ||||
|     def read(self, nrows: int | None = ...) -> DataFrame: ... | ||||
|     @abstractmethod | ||||
|     def close(self) -> None: ... | ||||
|     def __enter__(self) -> Self: ... | ||||
|     def __exit__(self, exc_type, exc_value, traceback) -> None: ... | ||||
|  | ||||
| @overload | ||||
| def read_sas( | ||||
|     filepath_or_buffer: FilePath | ReadBuffer[bytes], | ||||
|     *, | ||||
|     format: Literal["sas7bdat"], | ||||
|     index: Hashable | None = ..., | ||||
|     encoding: str | None = ..., | ||||
|     chunksize: int, | ||||
|     iterator: bool = ..., | ||||
|     compression: CompressionOptions = ..., | ||||
| ) -> SAS7BDATReader: ... | ||||
| @overload | ||||
| def read_sas( | ||||
|     filepath_or_buffer: FilePath | ReadBuffer[bytes], | ||||
|     *, | ||||
|     format: Literal["xport"], | ||||
|     index: Hashable | None = ..., | ||||
|     encoding: str | None = ..., | ||||
|     chunksize: int, | ||||
|     iterator: bool = ..., | ||||
|     compression: CompressionOptions = ..., | ||||
| ) -> XportReader: ... | ||||
| @overload | ||||
| def read_sas( | ||||
|     filepath_or_buffer: FilePath | ReadBuffer[bytes], | ||||
|     *, | ||||
|     format: None = ..., | ||||
|     index: Hashable | None = ..., | ||||
|     encoding: str | None = ..., | ||||
|     chunksize: int, | ||||
|     iterator: bool = ..., | ||||
|     compression: CompressionOptions = ..., | ||||
| ) -> XportReader | SAS7BDATReader: ... | ||||
| @overload | ||||
| def read_sas( | ||||
|     filepath_or_buffer: FilePath | ReadBuffer[bytes], | ||||
|     *, | ||||
|     format: Literal["sas7bdat"], | ||||
|     index: Hashable | None = ..., | ||||
|     encoding: str | None = ..., | ||||
|     chunksize: int | None = ..., | ||||
|     iterator: Literal[True], | ||||
|     compression: CompressionOptions = ..., | ||||
| ) -> SAS7BDATReader: ... | ||||
| @overload | ||||
| def read_sas( | ||||
|     filepath_or_buffer: FilePath | ReadBuffer[bytes], | ||||
|     *, | ||||
|     format: Literal["xport"], | ||||
|     index: Hashable | None = ..., | ||||
|     encoding: str | None = ..., | ||||
|     chunksize: int | None = ..., | ||||
|     iterator: Literal[True], | ||||
|     compression: CompressionOptions = ..., | ||||
| ) -> XportReader: ... | ||||
| @overload | ||||
| def read_sas( | ||||
|     filepath_or_buffer: FilePath | ReadBuffer[bytes], | ||||
|     *, | ||||
|     format: None = ..., | ||||
|     index: Hashable | None = ..., | ||||
|     encoding: str | None = ..., | ||||
|     chunksize: int | None = ..., | ||||
|     iterator: Literal[True], | ||||
|     compression: CompressionOptions = ..., | ||||
| ) -> XportReader | SAS7BDATReader: ... | ||||
| @overload | ||||
| def read_sas( | ||||
|     filepath_or_buffer: FilePath | ReadBuffer[bytes], | ||||
|     *, | ||||
|     format: Literal["xport", "sas7bdat"] | None = ..., | ||||
|     index: Hashable | None = ..., | ||||
|     encoding: str | None = ..., | ||||
|     chunksize: None = ..., | ||||
|     iterator: Literal[False] = ..., | ||||
|     compression: CompressionOptions = ..., | ||||
| ) -> DataFrame: ... | ||||
		Reference in New Issue
	
	Block a user