Skip to content

Commit

Permalink
Make Timer args less restrictive (#3007)
Browse files Browse the repository at this point in the history
Closes #3004
  • Loading branch information
Briaoeuidhtns authored and srittau committed May 23, 2019
1 parent 260369e commit 53500c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/2and3/threading.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ class Event:
class Timer(Thread):
if sys.version_info >= (3,):
def __init__(self, interval: float, function: Callable[..., None],
args: Optional[List[Any]] = ...,
args: Optional[Iterable[Any]] = ...,
kwargs: Optional[Mapping[str, Any]] = ...) -> None: ...
else:
def __init__(self, interval: float, function: Callable[..., None],
args: List[Any] = ...,
args: Iterable[Any] = ...,
kwargs: Mapping[str, Any] = ...) -> None: ...
def cancel(self) -> None: ...

Expand Down

0 comments on commit 53500c8

Please sign in to comment.