Skip to content

TYP: tighter typing in _apply_array #56083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 25, 2023

Conversation

jbrockmendel
Copy link
Member

And avoid a circular import

@mroeschke
Copy link
Member

mypy.....................................................................Failed
- hook id: mypy
- duration: 80.43s
- exit code: 1

pandas/core/arrays/datetimes.py:799: error: "_apply_array" of "BaseOffset" does not return a value  [func-returns-value]
pandas/core/arrays/datetimes.py:817: error: "BaseOffset" has no attribute "normalize"  [attr-defined]
Found 2 errors in 1 file (checked 1451 source files)

@mroeschke mroeschke added Frequency DateOffsets Typing type annotations, mypy/pyright type checking labels Nov 20, 2023
@mroeschke mroeschke added this to the 2.2 milestone Nov 25, 2023
@mroeschke mroeschke merged commit aeed91c into pandas-dev:main Nov 25, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-apply_array branch November 27, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frequency DateOffsets Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants