Add missing stubs for logging.handlers.WatchedFileHandler. (#3686)

Co-authored-by: CyrilRoelandteNovance <cyril@redhat.com>
This commit is contained in:
Cyril Roelandt
2020-01-29 17:27:12 +01:00
committed by GitHub
parent e5999ac76b
commit 47409f3e25
2 changed files with 4 additions and 0 deletions

View File

@@ -484,6 +484,7 @@ class FileHandler(StreamHandler):
delay: bool # undocumented
def __init__(self, filename: _Path, mode: str = ...,
encoding: Optional[str] = ..., delay: bool = ...) -> None: ...
def _open(self) -> IO[Any]: ...
class NullHandler(Handler): ...

View File

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