Skip to content

Contribute stubs for datauri==1.0.0#15434

Open
ellieayla wants to merge 3 commits intopython:mainfrom
ellieayla:add-datauri
Open

Contribute stubs for datauri==1.0.0#15434
ellieayla wants to merge 3 commits intopython:mainfrom
ellieayla:add-datauri

Conversation

@ellieayla
Copy link

https://github.com/eclecticiq/python-data-uri is a small library implementing parsing of the data: uri scheme defined in RFC2397.

Library still supported python 3.3, and lacks any inline type comments. Library is stable and works fine in python 3.14.

https://github.com/eclecticiq/python-data-uri is a small library implementing parsing of the data: uri scheme defined in RFC2397.

Library still supported python 3.3, and lacks any inline type comments. Library is stable and works fine in python 3.14.
@github-actions

This comment has been minimized.

Copy link
Collaborator

@brianschubert brianschubert left a comment

Choose a reason for hiding this comment

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

Looks good! One minor suggestion:

Comment on lines 3 to 4

RE_DATA_URI: Pattern[str] # undocumented
Copy link
Collaborator

Choose a reason for hiding this comment

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

Constants should be marked as Final:

Suggested change
RE_DATA_URI: Pattern[str] # undocumented
from typing import Final
RE_DATA_URI: Final[Pattern[str]] # undocumented

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@ellieayla
Copy link
Author

Thanks for the suggestion; added Final in fe44fd6

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.

2 participants