Skip to content
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

MyPy call to untyped function "median" in typed context #19807

Closed
Akazz-L opened this issue Sep 1, 2021 · 2 comments
Closed

MyPy call to untyped function "median" in typed context #19807

Akazz-L opened this issue Sep 1, 2021 · 2 comments

Comments

@Akazz-L
Copy link

Akazz-L commented Sep 1, 2021

Hi, I'm working with Numpy and MyPy for static type checking and I ran accross this error while running MyPy and calling np.median function : error: Call to untyped function "median" in typed context
It seems all the functions in numpy/numpy/lib/function_base.pyi including np.median are not typed yet which might cause this issue. Any idea on when the typing will be available for those functions ?

@BvB93
Copy link
Member

BvB93 commented Sep 1, 2021

HI @Akazz-L the plan is add (basic) annotations for the entire main namespace in the next 1.22 release.
If you're interested in an up date progress of the annotation effort, I'd recommend keeping an eye on #16546.

@BvB93
Copy link
Member

BvB93 commented Oct 5, 2021

np.median annotations have been added as of #20034.

@BvB93 BvB93 closed this as completed Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants