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 — feat: add type hints to methods · Issue #157 · 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.

feat: add type hints to methods #157

Copy link
Copy link
Closed
#613
Closed
feat: add type hints to methods#157
#613
Copy link
Assignees
HemangChothani
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.type: docsImprovement to the documentation for an API.

Description

@darwinyip
darwinyip
opened on Jul 7, 2020
Issue body actions

Having typings in the library would help and saw that there is a PR opened for that. However, the documentation is somewhat lacking.

It is hard to tell what the methods return and are all the parameters while looking at the docs https://googleapis.dev/python/bigquery/latest/generated/google.cloud.bigquery.client.Client.html

For example, in the tutorial: what is the difference between these 2 table objects created?

table = bigquery.Table(table_id, schema=schema)
table = client.create_table(table)  # Make an API request.

Activity

  1. product-auto-label
    added
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    on Jul 7, 2020
  2. meredithslota
    added
    type: docsImprovement to the documentation for an API.
    on Jul 7, 2020
  3. HemangChothani
    self-assigned this
    on Jul 8, 2020
  4. HemangChothani commented on Jul 8, 2020

    @HemangChothani
    HemangChothani
    on Jul 8, 2020
    Contributor
    More actions

    @darwinyip Description of the following statements:

     table = bigquery.Table(table_id, schema=schema)   
    # This statement creates a table class object locally which you need pass to `create_table` method to create your table 
    
    table = client.create_table(table)
    # This statement sent a request to the server to create a table in BigQuery database and return the table object with it's properties and information
    
    Example:
    table.created   # it gives the datetime of table creation
    table.etag  # gives the Etag of table
    table.num_rows  # gives the number of rows in table
    table.full_table_id  # full id of table including project and dataset.
    
  5. HemangChothani commented on Aug 19, 2020

    @HemangChothani
    HemangChothani
    on Aug 19, 2020
    Contributor
    More actions

    @darwinyip Did above explanation helped you?

  6. darwinyip commented on Aug 19, 2020

    @darwinyip
    darwinyip
    on Aug 19, 2020
    Author
    More actions

    @HemangChothani Yes it did. Thank you. However main issue I am raising is the lack of documentation around it.

  7. HemangChothani commented on Aug 24, 2020

    @HemangChothani
    HemangChothani
    on Aug 24, 2020
    Contributor
    More actions

    @darwinyip Is you concern related to type hints, types to method params.

  8. tswast
    changed the title [-]Documentation on return types[/-] [+]feat: add type hints to methods[/+] on Dec 9, 2020
  9. HemangChothani commented on Dec 18, 2020

    @HemangChothani
    HemangChothani
    on Dec 18, 2020
    Contributor
    More actions

    Should i mention return type of all the public methods of all the classes?

    Edit: Should we include pytype nox.py file to check type hints and return type as included in firestore

  10. plamut
    closed this as completedin #613on Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @HemangChothani
    HemangChothani

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.type: docsImprovement to the documentation for an API.

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.