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

MAINT: consistently use relative imports. #912

Merged
merged 2 commits into from
Jan 5, 2023
Merged

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Jan 5, 2023

It seem like jupyter_client uses a mix of absolute and relative imports, even in same files, which seem a bit weird.

Normalise everything to relative imports, which should make it a bit easier to detect potential cycles, or higher-level imports.

I've found 6 places that now use .. to imports somethings, where would potentially want to make some refactor at some point in the future to not import something closer to the root.

It seem like jupyter_client uses a mix of absolute and relative
imports, even in same files, which seem a bit weird.

Normalise everything to relative imports, which should make it a bit
easier to detect potential cycles, or higher-level imports.

I've found 6 places that now use `..` to imports somethings, where would
potentially want to make some refactor at some point in the future to
not import something closer to the root.
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@blink1073 blink1073 merged commit d6890f2 into jupyter:main Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants