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

Ship type hinting stub files #99

Closed
lazka opened this issue Feb 16, 2018 · 3 comments
Closed

Ship type hinting stub files #99

lazka opened this issue Feb 16, 2018 · 3 comments

Comments

@lazka
Copy link
Member

lazka commented Feb 16, 2018

stubgen gives a good overview for py3 already: https://bpaste.net/show/e0edfe462061

  • can we share things for py2/py3?
  • how can we integrate it in the test suite to check if all public API (minus deprecated things) is covered and things don't bitrot?
  • How does pycharm handle documentation in sub files?

Ideally we'd want that for pygobject as well, but pycairo seems like a good start for testing things out.

@lazka
Copy link
Member Author

lazka commented Feb 16, 2018

"PEP 561 -- Distributing and Packaging Type Information" https://www.python.org/dev/peps/pep-0561/

@lazka
Copy link
Member Author

lazka commented Feb 20, 2018

We could also try supporting "__signature__" on the C level first, so that stubgen has a more complete output..

@lazka
Copy link
Member Author

lazka commented Feb 20, 2018

stubgen ignores them, so let's just add .pyi and take it from there..

lazka added a commit to lazka/pycairo that referenced this issue Feb 25, 2018
lazka added a commit to lazka/pycairo that referenced this issue Feb 25, 2018
lazka added a commit to lazka/pycairo that referenced this issue Feb 25, 2018
lazka added a commit to lazka/pycairo that referenced this issue Feb 25, 2018
@lazka lazka closed this as completed Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant