generative-ai-python
generative-ai-python copied to clipboard
[Feature] Generate mypy stubs for google-generativeai package
Description of the feature request:
To support mypy type checking, please add support for mypy stubs library.
Example error message:
# File contents:
from google.generativeai.types.safety_types import HarmBlockThreshold, HarmCategory
# Error message
error: Skipping analyzing "google.generativeai.types.safety_types": module is installed, but missing library stubs or py.typed marker [import-untyped]
note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
What problem are you trying to solve with this feature?
Enable mypy support for the project.
Any other information you'd like to share?
No response
Yes please
Yes, this will be much appreciated!
yes please