TypeError: 'float' object is not callable #63
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
How to reproduce:
(1) clone https://github.com/googleapis/python-cloudbuild and checkout
sijun
branch.(2) run
python -m nox -s unit-3.6 -- -s
Exception thrown:
Description of the bug:
google.api_core.gapic_v1.method._GapicCallable.__call__
calls_determine_timeout
to create antimeout_
object, then passes it to_apply_decorators(self._target, [retry, timeout_])
.In my example,
_determine_timeout(600.0, 600.0, None)
creates/returns600.0
, which is a float object, when it is passed to_apply_decorators
, the 'float' object is not callable is raised._determine_timeout
should always return a Timeout object.The text was updated successfully, but these errors were encountered: