Skip to content

add mypy support#115

Open
vanschelven wants to merge 1 commit intochargebee:masterfrom
vanschelven:mypy
Open

add mypy support#115
vanschelven wants to merge 1 commit intochargebee:masterfrom
vanschelven:mypy

Conversation

@vanschelven
Copy link

@vanschelven vanschelven commented Feb 12, 2026

  • Added chargebee/py.typed
  • Copy/pasted the import statements from chargebee/models.py to __init__.py
  • Added all actually imported items to __all__.

This avoids the following errors & problems:

  • Module "chargebee" does not explicitly export attribute "Chargebee"
  • Skipping analyzing "chargebee": module is installed, but missing library stubs or py.typed marker
  • All chargebee results types being interpreted as Any despite more rich information being available.

Since there were already quite a few typing annotations this actually brings chargebee into a "works for me" status w.r.t. mypy usage.

* Added chargebee/py.typed
* Copy/pasted the import statements from chargebee/models.py to __init__.py
* Added all actually imported items to __all__.

This avoids:

* Module "chargebee" does not explicitly export attribute "Chargebee"
* Skipping analyzing "chargebee": module is installed, but missing library stubs or py.typed marker

Since there were already quite a few typing annotations this actually brings
chargebee into a "works for me" status w.r.t. mypy usage.
@snyk-io
Copy link

snyk-io bot commented Feb 12, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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.

1 participant