Skip to content

Depend upon traitlets >5.13.0#14353

Merged
Carreau merged 2 commits intoipython:mainfrom
ahumeau:stricter-traitlets-dependency
Feb 22, 2024
Merged

Depend upon traitlets >5.13.0#14353
Carreau merged 2 commits intoipython:mainfrom
ahumeau:stricter-traitlets-dependency

Conversation

@ahumeau
Copy link
Copy Markdown
Contributor

@ahumeau ahumeau commented Feb 22, 2024

In previous versions, traitlets.List does not inherit from typing.Generic which means it does not implement __class_getitem__ which means List[ast.NodeTransformer] raises at runtime.

In previous versions, traitlets.List does not inherit from
typing.Generic which means it does not implement __class_getitem__
which means List[ast.NodeTransformer] raises at runtime.
@krassowski krassowski linked an issue Feb 22, 2024 that may be closed by this pull request
Copy link
Copy Markdown
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

5.10 is too low, I believe it needs to be 5.13

Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
@ahumeau ahumeau requested a review from krassowski February 22, 2024 13:44
@krassowski krassowski changed the title Depend upon traitlets >5.10.0 Depend upon traitlets >5.13.0 Feb 22, 2024
Copy link
Copy Markdown
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

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

Thanks for a quick PR!

@ahumeau
Copy link
Copy Markdown
Contributor Author

ahumeau commented Feb 22, 2024

You're welcome! Thanks for the amazing project.
I guess I'll leave the test failure and merging in your hands?

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Feb 22, 2024

We can do that or from __future__ import annotation, that would still allow oder traitlets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPython 8.22 should require traitlets 5.13

3 participants