Ajout type contrat

This commit is contained in:
2026-04-29 11:52:03 +02:00
parent 375549cb30
commit 1c0e4c3048
10530 changed files with 1842149 additions and 158 deletions

View File

@@ -0,0 +1,61 @@
"""
Public API classes that store intermediate results useful for type-hinting.
"""
from pandas._libs import NaTType
from pandas._libs.lib import NoDefault
from pandas._libs.missing import NAType
from pandas.core.col import Expression
from pandas.core.groupby import (
DataFrameGroupBy,
SeriesGroupBy,
)
from pandas.core.indexes.frozen import FrozenList
from pandas.core.resample import (
DatetimeIndexResamplerGroupby,
PeriodIndexResamplerGroupby,
Resampler,
TimedeltaIndexResamplerGroupby,
TimeGrouper,
)
from pandas.core.window import (
Expanding,
ExpandingGroupby,
ExponentialMovingWindow,
ExponentialMovingWindowGroupby,
Rolling,
RollingGroupby,
Window,
)
# TODO: Can't import Styler without importing jinja2
# from pandas.io.formats.style import Styler
from pandas.io.json._json import JsonReader
from pandas.io.sas.sasreader import SASReader
from pandas.io.stata import StataReader
__all__ = [
"DataFrameGroupBy",
"DatetimeIndexResamplerGroupby",
"Expanding",
"ExpandingGroupby",
"ExponentialMovingWindow",
"ExponentialMovingWindowGroupby",
"Expression",
"FrozenList",
"JsonReader",
"NAType",
"NaTType",
"NoDefault",
"PeriodIndexResamplerGroupby",
"Resampler",
"Rolling",
"RollingGroupby",
"SASReader",
"SeriesGroupBy",
"StataReader",
"TimeGrouper",
"TimedeltaIndexResamplerGroupby",
"Window",
]

View File

@@ -0,0 +1,145 @@
from pandas._typing import (
AggFuncType,
AlignJoin,
AnyAll,
AnyArrayLike,
ArrayLike,
AstypeArg,
Axes,
Axis,
ColspaceArgType,
CompressionOptions,
CorrelationMethod,
CSVEngine,
DropKeep,
Dtype,
DtypeArg,
DtypeBackend,
DtypeObj,
ExcelWriterIfSheetExists,
ExcelWriterMergeCells,
FilePath,
FillnaOptions,
FloatFormatType,
FormattersType,
FromDictOrient,
HTMLFlavors,
IgnoreRaise,
IndexLabel,
InterpolateOptions,
IntervalClosedType,
IntervalLeftRight,
JoinHow,
JoinValidate,
JSONEngine,
JSONSerializable,
ListLike,
MergeHow,
MergeValidate,
NaPosition,
NsmallestNlargestKeep,
OpenFileErrors,
Ordered,
ParquetCompressionOptions,
QuantileInterpolation,
ReadBuffer,
ReadCsvBuffer,
ReadPickleBuffer,
ReindexMethod,
Scalar,
ScalarIndexer,
SequenceIndexer,
SequenceNotStr,
SliceType,
SortKind,
StorageOptions,
Suffixes,
TakeIndexer,
TimeAmbiguous,
TimedeltaConvertibleTypes,
TimeGrouperOrigin,
TimeNonexistent,
TimestampConvertibleTypes,
TimeUnit,
ToStataByteorder,
ToTimestampHow,
UpdateJoin,
UsecolsArgType,
WindowingRankType,
WriteBuffer,
WriteExcelBuffer,
XMLParsers,
)
__all__ = [
"AggFuncType",
"AlignJoin",
"AnyAll",
"AnyArrayLike",
"ArrayLike",
"AstypeArg",
"Axes",
"Axis",
"CSVEngine",
"ColspaceArgType",
"CompressionOptions",
"CorrelationMethod",
"DropKeep",
"Dtype",
"DtypeArg",
"DtypeBackend",
"DtypeObj",
"ExcelWriterIfSheetExists",
"ExcelWriterMergeCells",
"FilePath",
"FillnaOptions",
"FloatFormatType",
"FormattersType",
"FromDictOrient",
"HTMLFlavors",
"IgnoreRaise",
"IndexLabel",
"InterpolateOptions",
"IntervalClosedType",
"IntervalLeftRight",
"JSONEngine",
"JSONSerializable",
"JoinHow",
"JoinValidate",
"ListLike",
"MergeHow",
"MergeValidate",
"NaPosition",
"NsmallestNlargestKeep",
"OpenFileErrors",
"Ordered",
"ParquetCompressionOptions",
"QuantileInterpolation",
"ReadBuffer",
"ReadCsvBuffer",
"ReadPickleBuffer",
"ReindexMethod",
"Scalar",
"ScalarIndexer",
"SequenceIndexer",
"SequenceNotStr",
"SliceType",
"SortKind",
"StorageOptions",
"Suffixes",
"TakeIndexer",
"TimeAmbiguous",
"TimeGrouperOrigin",
"TimeNonexistent",
"TimeUnit",
"TimedeltaConvertibleTypes",
"TimestampConvertibleTypes",
"ToStataByteorder",
"ToTimestampHow",
"UpdateJoin",
"UsecolsArgType",
"WindowingRankType",
"WriteBuffer",
"WriteExcelBuffer",
"XMLParsers",
]