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

Fix deprecation warning when importing from jsonschema #368

Merged
merged 3 commits into from Jul 7, 2023

Conversation

eladkal
Copy link
Contributor

@eladkal eladkal commented Jul 6, 2023

jsonschema v4.18.0 deprecated
importing of jsonschema.ErrorTree
instead import it via jsonschema.exceptions.ErrorTree

https://github.com/python-jsonschema/jsonschema/releases/tag/v4.18.0

This to avoid warning raised:

 /usr/local/lib/python3.8/site-packages/nbformat/json_compat.py:14:Importing ErrorTree directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.
/usr/local/lib/python3.8/site-packages/nbformat/json_compat.py:14:Importing ErrorTree directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.

Copy link
Member

@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.

Thank you!

@blink1073 blink1073 enabled auto-merge (squash) July 7, 2023 18:11
@blink1073 blink1073 disabled auto-merge July 7, 2023 18:14
@blink1073 blink1073 enabled auto-merge (squash) July 7, 2023 18:14
@blink1073
Copy link
Member

I'll cut a release with this early next week.

@blink1073 blink1073 disabled auto-merge July 7, 2023 18:26
@blink1073 blink1073 merged commit c348f9d into jupyter:main Jul 7, 2023
21 of 23 checks passed
@eladkal eladkal deleted the deprecation branch July 7, 2023 19:10
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.

None yet

2 participants