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

[Proposal] Add some PEP 484 type checking via pytype #187

Closed
wants to merge 4 commits into from

Conversation

vrusinov
Copy link
Contributor

There is no particularly strong reason to do this, but it adds one more static analysis tool.

See https://github.com/google/pytype

Note it is currently not enforced as there is no pytest integration (see google/pytype#422). It is relatively easy to add pytype check to github workflow. But I suppose it may become annoying without client-side integration with test suite (i.e. people will sent PRs after running tests only to discover pytype fails for whatever reason).

With it the docimentation can refer to type annotations. See 
https://github.com/agronholm/sphinx-autodoc-typehints
module.

Note thanks to sphinx-autodoc-typehints added in previous commit this
should not reduce the quality of the generated documentation.
@liZe
Copy link
Member

liZe commented Apr 14, 2021

Hi! Thanks for the pull request.

We’re not sure about what the future of cairocffi will be. We (CourtBouillon, the current maintainer) are about to drop Cairo from WeasyPrint dependencies (Kozea/WeasyPrint#1232), and we’ll soon decide what is better for the future of cairocffi. Until then, we don’t really want to change the way the library works, and we prefer to keep the status quo.

@vrusinov
Copy link
Contributor Author

Makes sense, thank you!

I'll leave this PR hanging here until you decide what to do or until there's a new maintainer. (or feel free to close if that's what you prefer - no hard feelings).

I've also noticed I missed one flake8 error; won't fix it for now but if you or anyone else wants to resurrect this PR just ping me here.

@liZe
Copy link
Member

liZe commented Mar 11, 2023

We’ve decided that we’ll keep maintaining the library but won’t add new features, and we personally don’t like type annotations very much, so we won’t merge this pull request. We hope that it’s not blocking for what you do with CairoCFFI 🤞🏽.

@liZe liZe closed this Mar 11, 2023
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.

None yet

2 participants