Skip to content

Commit 6bcbe7f

Browse files
authored
Fix the type for LROPoller wait timeout (Azure#21913)
Thread.join(), as called by wait(), accepts fractional seconds, so the type for wait() should reflect that.
1 parent 127b307 commit 6bcbe7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/core/azure-core/azure/core/polling/_poller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ def result(self, timeout=None):
257257

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

0 commit comments

Comments
 (0)