Repository navigation
feat: add type hints to public API (PEP 484/561) - #253
Open
deolreet21 wants to merge 1 commit into
Open
deolreet21 wants to merge 1 commit into
deolreet21 wants to merge 1 commit into
Conversation
Add PEP 484 type annotations to all public methods across the library: - kiteconnect/connect.py: annotate __init__ and all 30 public methods - kiteconnect/exceptions.py: annotate all 8 exception class constructors - kiteconnect/ticker.py: annotate KiteTicker __init__ and 9 public methods - kiteconnect/py.typed: add PEP 561 marker so type checkers recognise the package as typed No behavioural changes. All existing tests pass.
Author
|
Hi @ranjanrak, could you please approve the CI workflows for this PR? This adds PEP 484/561 type hints to all public methods in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #252
Summary
Add PEP 484 type annotations to all public methods across the library and a PEP 561
py.typedmarker so type checkers recognise the package as typed.Changes
connect.py: annotate__init__and all 30 public methodsexceptions.py: annotate all 8 exception class constructorsticker.py: annotateKiteTicker.__init__and 9 public methodskiteconnect/py.typed: PEP 561 marker filesetup.py: declarepy.typedinpackage_dataNo behavioural changes. All existing tests pass.