Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add typing mypy #15988

Copy link
Copy link

Description

@jaketf
Issue body actions

Is your feature request related to a problem? Please describe.
I'd like to catch common issues w/ mypy CI.
For example lookup_bucket("foo").blob("bar") mypy static analysis could tell us "lookup_bucket is Optional[storage.Blob] and NoneType has no method blob"
This can avoid code review comments like this: GoogleCloudPlatform/bigquery-utils#190 (comment)
Describe the solution you'd like
Please add typing so common issues can get caught w/ mypy in CI
Describe alternatives you've considered
Alternatively, each user of this library wanting this feature can implement a mypy stub but this would be better to maintain in the centralized codebase for google-cloud-storage https://mypy.readthedocs.io/en/stable/stubs.html

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.