You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Our handling of the case where you do from [package.]module import symbol ; symbol rather than [from package] import module ; module.symbol is pretty inadequate; for example we assume that import <fullname> is always a valid import, which is not true for symbols. KA prohibits this style but it's common in other code, so it would be nice to handle it.
The text was updated successfully, but these errors were encountered:
Looks like we actually just change the import to be a module-import here, which is legal but not ideal. I'll close this and open something more specific.
Never mind! I remembered what we do wrong. If your file does from foo import some_function, and you say to move the entire file foo (say to bar), we don't even notice the reference. I'll add a skipped test for now.
This is mostly just a placeholder/reproduction for #20; it's a case we
currently don't handle because it doesn't appear in KA code.
Test plan: `make check`
Auditors: csilvers
Our handling of the case where you do
from [package.]module import symbol ; symbol
rather than[from package] import module ; module.symbol
is pretty inadequate; for example we assume thatimport <fullname>
is always a valid import, which is not true for symbols. KA prohibits this style but it's common in other code, so it would be nice to handle it.The text was updated successfully, but these errors were encountered: