Skip to content

Conversation

jbrockmendel
Copy link
Member

We have a method align_as_utc that implemented at the module-level instead of as a method, requiring some annotation gymnastics. This refactors so that it is only used in one place instead of two, then inlines the function inside align.

Copy link
Member

@twoertwein twoertwein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typing changes look good to me

@mroeschke mroeschke added Refactor Internal refactoring of code Typing type annotations, mypy/pyright type checking labels Mar 15, 2023
@mroeschke mroeschke added this to the 2.1 milestone Mar 15, 2023
@mroeschke mroeschke merged commit d1c43dc into pandas-dev:main Mar 15, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-align_as_utc branch March 15, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants