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

[Feature] Generate mypy stubs for google-generativeai package #264

Open
thechopkins opened this issue Mar 29, 2024 · 1 comment
Open

[Feature] Generate mypy stubs for google-generativeai package #264

thechopkins opened this issue Mar 29, 2024 · 1 comment
Assignees
Labels
component:python sdk Issue/PR related to Python SDK status:triaged Issue/PR triaged to the corresponding sub-team type:feature request New feature request/enhancement

Comments

@thechopkins
Copy link

thechopkins commented Mar 29, 2024

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 thechopkins added component:python sdk Issue/PR related to Python SDK type:feature request New feature request/enhancement labels Mar 29, 2024
@singhniraj08 singhniraj08 added the status:triaged Issue/PR triaged to the corresponding sub-team label Apr 1, 2024
@randomsamples
Copy link

Yes please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:python sdk Issue/PR related to Python SDK status:triaged Issue/PR triaged to the corresponding sub-team type:feature request New feature request/enhancement
Projects
None yet
Development

No branches or pull requests

4 participants