generative-ai-python icon indicating copy to clipboard operation
generative-ai-python copied to clipboard

[Feature] Generate mypy stubs for google-generativeai package

Open thechopkins opened this issue 1 year ago • 7 comments

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

thechopkins avatar Mar 29 '24 00:03 thechopkins

Yes please

randomsamples avatar May 03 '24 16:05 randomsamples

Yes, this will be much appreciated!

tsuga avatar Sep 12 '24 14:09 tsuga

yes please

RayyanNafees avatar Sep 13 '24 01:09 RayyanNafees