Skip to content

Series disallows data value of NaT #872

Closed
@mark-thm

Description

@mark-thm

Describe the bug
pandas-stubs causes mypy to error on calls like pd.Series(pd.NaT) with an error like:

No overload variant of "Series" matches argument types "NaTType"

To Reproduce

pd.Series(pd.NaT)

Using mypy:

No overload variant of "Series" matches argument types "NaTType"

Please complete the following information:

  • OS: MacOS, Linux
  • OS Version: MacOS: 14.3.1, Linux: Ubuntu 22
  • python version: 3.11.7
  • version of type checker: mypy 1.8.0
  • version of installed pandas-stubs: 2.2.0.240218

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions