There was an error while loading. Please reload this page.
Thanks for stopping by to let us know something could be better!
google-cloud-bigquery
mypy
test.py
from google.cloud import bigquery ref = bigquery.DatasetReference("my-project", "my_dataset")
mypy test.py --disallow-untyped-calls
See above
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)
To solve the problem, type annotations need to be added to the constructor of bigquery.DatasetReference
Thanks for stopping by to let us know something could be better!
Environment details
google-cloud-bigqueryversion: 3.11.3mypyversion: 1.4.1Steps to reproduce
test.pywith the following contents:mypy test.py --disallow-untyped-callsCode example
See above
Stack trace
Solution
To solve the problem, type annotations need to be added to the constructor of bigquery.DatasetReference