Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stubs files .pyi seem to be outdated #1211

Open
BenjaminLeseur opened this issue Sep 30, 2024 · 0 comments
Open

Stubs files .pyi seem to be outdated #1211

BenjaminLeseur opened this issue Sep 30, 2024 · 0 comments
Labels

Comments

@BenjaminLeseur
Copy link

BenjaminLeseur commented Sep 30, 2024

📣 Notification Service(s) Impacted
Sending messages works great. Problem occurs in type checking.

🐞 Describe the bug
Stubs files do not match with the real classes, for example:

  • apprise/asset.pyi AppriseAsset -> Does not contains storage_mode
  • apprise/common.pyi PersistentStoreMode -> Does not exist

💡 Screenshots and Logs

Checking types with mypy...
error: Module "apprise.common" has no attribute "PersistentStoreMode"  [attr-defined]
error: Unexpected keyword argument "storage_path" for "AppriseAsset"  [call-arg]
error: Unexpected keyword argument "storage_mode" for "AppriseAsset"  [call-arg]

💻 Your System Details:

  • OS: Debian 12
  • Python Version: v3.11

🔮 Additional context
For developer users.

For info, I can add # type: ignore at the end of lines to skip some errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant