Skip to content

Commit da3de3a

Browse files
authored
[logging] Allow FileHandler.stream to be None (#15378)
1 parent e0aed2c commit da3de3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/logging/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ class FileHandler(StreamHandler[TextIOWrapper]):
616616
encoding: str | None # undocumented
617617
delay: bool # undocumented
618618
errors: str | None # undocumented
619+
stream: TextIOWrapper | None # type: ignore[assignment] # None when delay=True or after close()
619620
def __init__(
620621
self, filename: StrPath, mode: str = "a", encoding: str | None = None, delay: bool = False, errors: str | None = None
621622
) -> None: ...

0 commit comments

Comments
 (0)