Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Add Python type annotation#284

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jborean93 merged 1 commit intopythongssapi:mainfromjborean93:type-annotation
Feb 15, 2022

Conversation

@jborean93
Copy link
Contributor

@jborean93jborean93 commentedFeb 7, 2022
edited
Loading

Adds type annotations to the library for better type analysis and IDE integration with this library. Currently thegssapi.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 levelgssapi package and enable some mypy tests for CI to ensure this library is valid. - done

Signed-off-by: Jordan Boreanjborean93@gmail.com

@jborean93jborean93force-pushed thetype-annotation branch 2 times, most recently fromfbd623c to2cc6416CompareFebruary 8, 2022 02:51
@jborean93jborean93 marked this pull request as ready for reviewFebruary 8, 2022 02:54
Signed-off-by: Jordan Borean <jborean93@gmail.com>
@simo5
Copy link
Contributor

LGTM

Copy link
Contributor

@simo5simo5 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.

@jborean93jborean93 merged commit935f95a intopythongssapi:mainFeb 15, 2022
@jborean93jborean93 deleted the type-annotation branchFebruary 15, 2022 20:06
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@simo5simo5simo5 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@jborean93@simo5

[8]ページ先頭

©2009-2025 Movatter.jp