Skip to content

DOC: Template Timestamp & NaT docstrings #23458

@mroeschke

Description

@mroeschke

Currently some NaT's method docstrings directly mirror Timestamp's method docstrings via copy and pasting.

e.g.

"""
Timestamp.fromtimestamp(ts)
timestamp[, tz] -> tz's local time from POSIX timestamp.
"""

"""
Timestamp.utcfromtimestamp(ts)
Construct a naive UTC datetime from a POSIX timestamp.
"""

We don't want to import Timestamp into nattype.pyx to avoid a circular import. Ideally we should template the docstrings of both Timestamps and NaT methods to avoid this copy pasting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions