Typing of timeout #1545
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
Steps to reproduce
This is fairly tiny and relates to a typing issue.
timeout
is documented asOptional[float]
but only typed asfloat
. E.g.python-bigquery/google/cloud/bigquery/job/query.py
Line 1395 in 0bf9546
python-bigquery/google/cloud/bigquery/job/query.py
Lines 1415 to 1419 in 0bf9546
and also at
python-bigquery/google/cloud/bigquery/job/base.py
Line 884 in a2520ca
python-bigquery/google/cloud/bigquery/job/base.py
Lines 892 to 896 in a2520ca
The type check is ignored in both cases which may explain this?
python-bigquery/google/cloud/bigquery/job/query.py
Line 1390 in 0bf9546
python-bigquery/google/cloud/bigquery/job/base.py
Line 883 in a2520ca
This makes the functions slightly annoying to use if one passes an
Optional[float]
on.The text was updated successfully, but these errors were encountered: