mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
11741543da
commit
6e4c3e41dc
@@ -9,13 +9,13 @@ from typing import Any, Callable, Optional, Tuple, Type, TypeVar
|
||||
|
||||
|
||||
class TimeoutExpired(Exception):
|
||||
'''Exception raised when a function times out.'''
|
||||
"""Exception raised when a function times out."""
|
||||
|
||||
def __str__(self) -> str:
|
||||
return 'Function call timed out.'
|
||||
return "Function call timed out."
|
||||
|
||||
|
||||
ResultT = TypeVar('ResultT')
|
||||
ResultT = TypeVar("ResultT")
|
||||
|
||||
|
||||
def timeout(timeout: float, func: Callable[..., ResultT], *args: Any, **kwargs: Any) -> ResultT:
|
||||
|
||||
Reference in New Issue
Block a user