Skip to content

feat: add type hints to public API (PEP 484/561) - #253

Open
deolreet21 wants to merge 1 commit into
zerodha:masterfrom
deolreet21:add-type-hints
Open

deolreet21 wants to merge 1 commit into
zerodha:masterfrom
deolreet21:add-type-hints

Conversation

@deolreet21

Copy link
Copy Markdown

Closes #252

Summary

Add PEP 484 type annotations to all public methods across the library and a PEP 561 py.typed marker so type checkers recognise the package as typed.

Changes

  • connect.py: annotate __init__ and all 30 public methods
  • exceptions.py: annotate all 8 exception class constructors
  • ticker.py: annotate KiteTicker.__init__ and 9 public methods
  • kiteconnect/py.typed: PEP 561 marker file
  • setup.py: declare py.typed in package_data

No behavioural changes. All existing tests pass.

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

Copy link
Copy Markdown
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 connect.py, ticker.py, and exceptions.py with no behavioural changes. Happy to address any feedback. Thank you!

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.

feat: add type hints to public API (PEP 484/561)

1 participant