Skip to content

Type annotations missing on bigqueryDatasetReference #1598

@karelserruys-foodpairing

Description

Thanks for stopping by to let us know something could be better!

Environment details

  • OS type and version: Windows 11
  • Python version: 3.9.6
  • pip version: 23.1.2
  • google-cloud-bigquery version: 3.11.3
  • mypy version: 1.4.1

Steps to reproduce

  1. Create a file test.py with the following contents:
from google.cloud import bigquery
ref = bigquery.DatasetReference("my-project", "my_dataset")
  1. Run mypy test.py --disallow-untyped-calls

Code example

See above

Stack trace

test.py:3: error: Call to untyped function "DatasetReference" in typed context  [no-untyped-call]
Found 1 error in 1 file (checked 1 source file)

Solution

To solve the problem, type annotations need to be added to the constructor of bigquery.DatasetReference

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/python-bigquery API.status: will not fixInvalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions