Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add Python type annotation#284

Merged
jborean93 merged 1 commit intopythongssapi:mainpythongssapi/python-gssapi:mainfrom
jborean93:type-annotationjborean93/python-gssapi:type-annotationCopy head branch name to clipboard
Feb 15, 2022
Merged

Add Python type annotation#284
jborean93 merged 1 commit intopythongssapi:mainpythongssapi/python-gssapi:mainfrom
jborean93:type-annotationjborean93/python-gssapi:type-annotationCopy head branch name to clipboard

Conversation

@jborean93
Copy link
Contributor

@jborean93 jborean93 commented Feb 7, 2022

Adds type annotations to the library for better type analysis and IDE integration with this library. Currently the gssapi.raw contents have been annotated with .pyi files. Using a separate file is quite useful for C extensions as an IDE can easily inspect what functions are meant to be available, their types, and doc strings without having the extension actually compiled and installed. Because of this all the docstrings have been moved out of the Cython pyx files into their respective pyi files. The Sphinx doc generator has also been updated to support this.

The next step is to annotate the high level gssapi package and enable some mypy tests for CI to ensure this library is valid. - done

Signed-off-by: Jordan Borean jborean93@gmail.com

@jborean93 jborean93 force-pushed the type-annotation branch 2 times, most recently from fbd623c to 2cc6416 Compare February 8, 2022 02:51
@jborean93 jborean93 marked this pull request as ready for review February 8, 2022 02:54
Signed-off-by: Jordan Borean <jborean93@gmail.com>
@simo5
Copy link
Contributor

simo5 commented Feb 15, 2022

LGTM

Copy link
Contributor

@simo5 simo5 left a comment

Choose a reason for hiding this comment

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

I think this is a mess of a change, but also very beneficial, I'll steal this stuff.

@jborean93 jborean93 merged commit 935f95a into pythongssapi:main Feb 15, 2022
@jborean93 jborean93 deleted the type-annotation branch February 15, 2022 20:06
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.