GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add a py.typed file for submodule · Issue #1019 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Add a py.typed file for submodule #1019

Copy link
Copy link
Closed
Closed
Add a py.typed file for submodule#1019
Copy link
Assignees
plamut
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.semver: majorHint for users that this is an API breaking change.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@crwilcox
crwilcox
opened on Oct 12, 2021
Issue body actions

To be in accordance with PEP 561 we should add a py.typed file to google/cloud/bigquery/py.typed

The file can be empty but does need to be present for some type checkers.

Activity

  1. product-auto-label
    added
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    on Oct 12, 2021
  2. tswast commented on Oct 13, 2021

    @tswast
    tswast
    on Oct 13, 2021
    Contributor
    More actions

    Please don't until #987 is fixed.

  3. tswast
    added
    status: blockedResolving the issue is dependent on other work.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Oct 13, 2021
  4. crwilcox commented on Oct 13, 2021

    @crwilcox
    crwilcox
    on Oct 13, 2021
    ContributorAuthor
    More actions

    Do note, you may need to run mypy, pyright, pytype against our samples before merging. It will ensure that we aren't exposing users to failing type checks.

    Ideally we would add this to CI as well, to avoid future breakage.

  5. plamut commented on Oct 27, 2021

    @plamut
    plamut
    on Oct 27, 2021
    Contributor
    More actions

    Update - we will adjust the annotations to make mypy happy, but we will only add py.typed to the v3 branch (and ship it in 3.0.0).

    Even if type checks break for some people, it will only happen in the next major release, which should not happen automatically, if the BigQuery dependency is pinned to < 3.x (as it should be).

    (note to self - besides adding the py.typed file itself, we must also list it setup.py, option package_data, so that it actually gets installed)

  6. crwilcox commented on Oct 27, 2021

    @crwilcox
    crwilcox
    on Oct 27, 2021
    ContributorAuthor
    More actions

    https://github.com/googleapis/python-bigquery/blob/main/setup.cfg has a pytype section. Is that tied in to packaging? I am unsure.

  7. plamut
    self-assigned this
    on Nov 11, 2021
  8. plamut
    added
    semver: majorHint for users that this is an API breaking change.
    and removed
    status: blockedResolving the issue is dependent on other work.
    on Nov 11, 2021
  9. plamut commented on Nov 11, 2021

    @plamut
    plamut
    on Nov 11, 2021
    Contributor
    More actions

    Mypy is happy now, unblocking.

    We will only add py.typed to the v3 branch, though, as discussed offline.

  10. plamut commented on Nov 12, 2021

    @plamut
    plamut
    on Nov 12, 2021
    Contributor
    More actions

    Closed in #1058 (merged into the v3 branch).

  11. plamut
    closed this as completedon Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @plamut
    plamut

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.semver: majorHint for users that this is an API breaking change.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.