-
-
Notifications
You must be signed in to change notification settings - Fork 145
Description
In my searches of pandas-stubs, this is the only instance of typing.Union
.
pandas-stubs/pandas-stubs/_typing.pyi
Lines 518 to 519 in bf1221e
# following Union is here to make it ty compliant https://github.com/astral-sh/ty/issues/591 | |
AggFuncTypeBase: TypeAlias = Union[Callable, str, np.ufunc] # noqa: UP007 |
There are some commented-out uses.
Commented-out
pandas-stubs/pandas-stubs/_typing.pyi
Lines 531 to 540 in bf1221e
# Not used in stubs | |
# AggObjType = Union[ | |
# "Series", | |
# "DataFrame", | |
# "GroupBy", | |
# "SeriesGroupBy", | |
# "DataFrameGroupBy", | |
# "BaseWindow", | |
# "Resampler", | |
# ] |
pandas-stubs/pandas-stubs/_typing.pyi
Line 618 in bf1221e
# ColspaceType = Mapping[Hashable, Union[str, int]] not used in stubs |
pandas-stubs/pandas-stubs/_typing.pyi
Line 648 in bf1221e
# Manager = Union["BlockManager", "SingleBlockManager"] not used in stubs |
pandas-stubs/pandas-stubs/_typing.pyi
Line 666 in bf1221e
# PositionalIndexer2D = Union[PositionalIndexer, PositionalIndexerTuple] Not used in stubs |
pandas-stubs/pandas-stubs/_typing.pyi
Line 735 in bf1221e
# MatplotlibColor = Union[str, Sequence[float]] # not used in stubs |
pandas-stubs/pandas-stubs/_typing.pyi
Line 782 in bf1221e
# OffsetCalendar = Union[np.busdaycalendar, "AbstractHolidayCalendar"] not used in stubs or pandas |
pandas-stubs/pandas-stubs/core/reshape/concat.pyi
Lines 135 to 164 in bf1221e
# def concat( | |
# objs: Union[ | |
# Iterable[Union[Series, DataFrame]], Mapping[HashableT, Union[Series, DataFrame]] | |
# ], | |
# axis: Literal[0, "index"] = ..., | |
# join: str = ..., | |
# ignore_index: bool = ..., | |
# keys=..., | |
# levels=..., | |
# names=..., | |
# verify_integrity: bool = ..., | |
# sort: bool = ..., | |
# copy: bool = ..., | |
# ) -> Union[DataFrame, Series]: ... | |
# @overload | |
# def concat( | |
# objs: Union[ | |
# Iterable[Union[Series, DataFrame]], Mapping[HashableT, Union[Series, DataFrame]] | |
# ], | |
# axis: Axis = ..., | |
# join: str = ..., | |
# ignore_index: bool = ..., | |
# keys=..., | |
# levels=..., | |
# names=..., | |
# verify_integrity: bool = ..., | |
# sort: bool = ..., | |
# copy: bool = ..., | |
# ) -> Union[DataFrame, Series]: ... |
"ty is in preview"
Warning
ty is in preview and is not ready for production use.
We're working hard to make ty stable and feature-complete, but until then, expect to encounter bugs,
missing features, and fatal errors.
Perhaps change how ty is applied to pandas-stubs instead of changing how pandas-stubs works
It's a lot easier to parse predictable, standardized code, you know?