Skip to content

Commit

Permalink
Fix the type for LROPoller wait timeout (#21913)
Browse files Browse the repository at this point in the history
Thread.join(), as called by wait(), accepts fractional seconds,
so the type for wait() should reflect that.
  • Loading branch information
akx authored Nov 29, 2021
1 parent 127b307 commit 6bcbe7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/core/azure-core/azure/core/polling/_poller.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ def result(self, timeout=None):

@distributed_trace
def wait(self, timeout=None):
# type: (Optional[int]) -> None
# type: (Optional[float]) -> None
"""Wait on the long running operation for a specified length
of time. You can check if this call as ended with timeout with the
"done()" method.
:param int timeout: Period of time to wait for the long running
:param float timeout: Period of time to wait for the long running
operation to complete (in seconds).
:raises ~azure.core.exceptions.HttpResponseError: Server problem with the query.
"""
Expand Down

0 comments on commit 6bcbe7f

Please sign in to comment.