Skip to content

TYP: use TYPE_CHECKING for import_optional_dependency("numba") #44273

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

Conversation

simonjayhawkins
Copy link
Member

xref #44233 (comment) or could go with #44254 (comment) instead.

cc @twoertwein

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Nov 1, 2021
@twoertwein
Copy link
Member

There is one more: pandas/core/window/numba_.py:261 After that one you can also remove the pyright comment from the file.

If numba.generated_jit can be typed in typings.numba, we can also remove the pyright comment in pandas/core/util/numba_.py.

@twoertwein
Copy link
Member

@simonjayhawkins I'd be happy to merge this PR (after rebasing), but I'm not sure whether I (as the only reviewer so far) am allowed/supposed to also merge it?

@jreback jreback added this to the 1.4 milestone Nov 28, 2021
@jreback
Copy link
Contributor

jreback commented Nov 28, 2021

@twoertwein can you merge master and @mroeschke if you can have a look

@jreback jreback merged commit 243b8a6 into pandas-dev:master Nov 29, 2021
@jreback
Copy link
Contributor

jreback commented Nov 29, 2021

thanks @simonjayhawkins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants