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

Add typings to commonly used APIs #1333

Merged
merged 11 commits into from
Oct 15, 2023

Conversation

blink1073
Copy link
Contributor

I looked at which APIs were used by jupyterlab_server, notebook, and jupyterlab and this covers most of them.

@blink1073 blink1073 merged commit 63463c4 into jupyter-server:main Oct 15, 2023
33 checks passed
@blink1073 blink1073 deleted the add-more-typings branch October 15, 2023 00:24
@@ -603,7 +614,7 @@ async def prepare(self):
DeprecationWarning
# stacklevel not useful here
)
user = self.get_current_user()
user = User(self.get_current_user())
Copy link
Contributor

Choose a reason for hiding this comment

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

User is only imported when typechecking is on, so this actually causes an invalid import error.

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