Skip to content

Conversation

@ahumeau
Copy link
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
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
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
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
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

3 participants