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

Regenerate zope.interfaces stubs #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Regenerate zope.interfaces stubs #105

wants to merge 2 commits into from

Conversation

kedder
Copy link
Member

@kedder kedder commented Aug 22, 2023

And reapply all changes that we've manually made.

Fixes #102

@Daverball
Copy link

I recommend running stubtest which is included as part of mypy to automatically detect discrepancies between the stubs and the runtime package, that way changes can be done much more incrementally in lock step with zope.interface, without being forced to regenerate the stubs from scratch.

You might also consider to adopt the typeshed versioning scheme, which uses the same version as the base package (i.e. zope.inteface) and uses a fourth number to differentiate incremental changes for the same zope.interface library version.
Although in that case you might try to repurpose stubsabot from typeshed to notify you when a new zope.interface version conflicts with your stubs (and otherwise bump the package version and publish a new version to pypi).

Although it's probably easier to just use a weekly CI run with stubtest and stick with the old versioning scheme, even if it makes it more difficult for people to know which version of zope.interface the stubs are compatible with.

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.

exceptions.pyi doesn't contain MultipleInvalid
2 participants