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

feat(TagList)!: TagList now inherits from collections.UserList, instead of typing.List #97

Merged
merged 19 commits into from
Sep 30, 2024

Conversation

schloerke
Copy link
Collaborator

@schloerke schloerke commented Sep 27, 2024

This will allow for orjson to utilize custom printing methods for TagList, rather than waiting until an inner item is printed.

Follows similar logic and benefits of #86


Note! Drop support for python 3.8 as python 3.8's collection.UserList can not be subscripted to UserList[TagNode]

    _TagListParentClass = UserList[TagNode]
E   TypeError: 'ABCMeta' object is not subscriptable

Since we're going to drop 3.8 when 3.13 comes out in early Oct'24, I am not pursuing a fix for 3.8

@schloerke schloerke marked this pull request as ready for review September 27, 2024 19:53
@schloerke schloerke requested a review from wch September 27, 2024 19:56
Copy link
Collaborator

@jcheng5 jcheng5 left a comment

Choose a reason for hiding this comment

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

Once unit test is done, approved

@schloerke
Copy link
Collaborator Author

schloerke commented Sep 30, 2024

No breakages within py-shiny given this PR. Merging

@schloerke schloerke merged commit c5083e0 into main Sep 30, 2024
14 checks passed
@schloerke schloerke deleted the taglist_not_list branch September 30, 2024 19:58
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.

3 participants