Skip to content

Empty Series is considered TimestampSeries #571

Closed
@randolf-scholz

Description

@randolf-scholz

Describe the bug

Instantiating an empty Series object creates a TimestamptSeries, should probably be Series[Any].

To Reproduce

from pandas import Series
baz = Series([])
reveal_type(baz)  # pandas.core.series.TimestampSeries

Please complete the following information:

  • pandas 1.5.3
  • pandas-stubs 1.5.3.230304

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions