-
Notifications
You must be signed in to change notification settings - Fork 52
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
tidy-imports doesn't include ufuncs when ran with "--replace-star-imports" (PyInf#8958) #220
Comments
I think the problem is just that |
Fixed at #228. Are there any other missing ufuncs that need to be added? |
The issue isn't specific to heaviside and is just an example. For example, the below scenario works fine with normal functions but not with ufuncs. Our use cases doesn't include Numpy ufuncs and have added it for a simple reproducer
|
With hello.py, pyflyby can read hello.py and infer what names are exported, since it's pure Python. But for NumPy, the code is in C, so it has to rely on the import database. Here's a list of names from
|
In initial update, I have the type hint added
Can we make pyflyby understand that heaviside is being used and make the |
Reproducer:
test.py
module.py
test.py runs fine without tidy-imports
Ran tidy-imports with
--replace-star-imports
As we can see heaviside import was never added.
The text was updated successfully, but these errors were encountered: