Simplify WatchedFileHandler.__init__ (#3506)

Fixes #3502
This commit is contained in:
Jelle Zijlstra
2019-12-03 05:54:29 -08:00
committed by Sebastian Rittau
parent d215f502c6
commit 97f830030c

View File

@@ -29,16 +29,8 @@ SYSLOG_UDP_PORT: int
SYSLOG_TCP_PORT: int
class WatchedFileHandler(FileHandler):
@overload
def __init__(self, filename: _Path) -> None: ...
@overload
def __init__(self, filename: _Path, mode: str) -> None: ...
@overload
def __init__(self, filename: _Path, mode: str,
encoding: Optional[str]) -> None: ...
@overload
def __init__(self, filename: _Path, mode: str, encoding: Optional[str],
delay: bool) -> None: ...
def __init__(self, filename: _Path, mode: str = ..., encoding: Optional[str] = ...,
delay: bool = ...) -> None: ...
if sys.version_info >= (3,):