8000 STY: absolute vs. relative imports · Issue #15352 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

STY: absolute vs. relative imports #15352

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

Closed
mattip opened this issue Jan 19, 2020 · 2 comments
Closed

STY: absolute vs. relative imports #15352

mattip opened this issue Jan 19, 2020 · 2 comments

Comments

@mattip
Copy link
Member
mattip commented Jan 19, 2020

Many imports in the code are absolute: from numpy.something import something-else. We should convert them to relative imports: from .something import something-else.

@sethtroisi
Copy link
Contributor

I'm happy to try a pass at this.

@mattip
Copy link
Member Author
mattip commented Jan 23, 2020

Closing. After seeing the result, I think we should limit the code churn simply to change relative/absolute imports. Both styles are commonly used.

@mattip mattip closed this as completed Jan 23, 2020
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
0