mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add missing stubs for logging.handlers.WatchedFileHandler. (#3686)
Co-authored-by: CyrilRoelandteNovance <cyril@redhat.com>
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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,):
|
||||
|
||||
Reference in New Issue
Block a user