Skip to content

Commit ddcdb8a

Browse files
committed
linebreaks
1 parent 9529028 commit ddcdb8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/_typing.py

+3
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,19 @@
4242

4343
Dtype = Union[str, np.dtype, "ExtensionDtype"]
4444
FilePathOrBuffer = Union[str, Path, IO[AnyStr]]
45+
4546
# FrameOrSeries means either a DataFrame or a Series. E.g.
4647
# `def func(a: FrameOrSeries) -> FrameOrSeries: ...` means that if a Series is passed
4748
# in, either a Series or DataFrame is returned, and if a DataFrame is passed in, either
4849
# a DataFrame or a Series is returned.
4950
FrameOrSeries = Union["DataFrame", "Series"]
51+
5052
# SameFrameOrSeries is stricter and ensures that the same subclass of NDFrame always is
5153
# used. E.g. `def func(a: SameFrameOrSeries) -> SameFrameOrSeries: ...` means that if a
5254
# Series is passed into a function, a Series is always returned and if a DataFrame is
5355
# passed in, a DataFrame is always returned.
5456
SameFrameOrSeries = TypeVar("SameFrameOrSeries", bound="NDFrame")
57+
5558
Axis = Union[str, int]
5659
Ordered = Optional[bool]
5760
JSONSerializable = Union[PythonScalar, List, Dict]

0 commit comments

Comments
 (0)