Skip to content

[pycups] Add stubs - #16024

Merged
srittau merged 4 commits into
python:mainfrom
MaxTheWhale:add-pycups-stubs
Jul 23, 2026
Merged

[pycups] Add stubs#16024
srittau merged 4 commits into
python:mainfrom
MaxTheWhale:add-pycups-stubs

Conversation

@MaxTheWhale

Copy link
Copy Markdown
Contributor

This PR adds stubs for the pycups package, which provides Python bindings for the CUPS C library.

Note: unfortunately the dicts that are returned by this library all use keys containing hyphens (e.g. 'printer-uri'), meaning that the TypedDict classes have to be defined using the constructor instead of classes.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

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

@srittau srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@srittau
srittau merged commit b37153f into python:main Jul 23, 2026
59 checks passed
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