[wurlitzer] Remove from pyrightconfig (#14292)

This commit is contained in:
Semyon Moroz
2025-07-07 12:50:40 +00:00
committed by GitHub
parent 1c82fa75cd
commit cafde84804
2 changed files with 10 additions and 2 deletions
-1
View File
@@ -96,7 +96,6 @@
"stubs/tqdm",
"stubs/vobject",
"stubs/workalendar",
"stubs/wurlitzer",
],
"typeCheckingMode": "strict",
// TODO: Complete incomplete stubs
+10 -1
View File
@@ -5,6 +5,7 @@ import io
import logging
from _typeshed import SupportsWrite
from contextlib import _GeneratorContextManager
from threading import Thread
from types import TracebackType
from typing import Any, Final, Literal, Protocol, TextIO, TypeVar, overload
from typing_extensions import Self, TypeAlias
@@ -29,6 +30,10 @@ _InteractiveShell: TypeAlias = Any
class Wurlitzer:
flush_interval: float
encoding: str | None
thread: Thread | None
handle: tuple[
_LogPipe | SupportsWrite[str] | SupportsWrite[bytes] | None, _LogPipe | SupportsWrite[str] | SupportsWrite[bytes] | None
]
def __init__(
self,
@@ -37,7 +42,11 @@ class Wurlitzer:
encoding: str | None = ...,
bufsize: int | None = ...,
) -> None: ...
def __enter__(self): ...
def __enter__(
self,
) -> tuple[
_LogPipe | SupportsWrite[str] | SupportsWrite[bytes] | None, _LogPipe | SupportsWrite[str] | SupportsWrite[bytes] | None
]: ...
def __exit__(
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
) -> None: ...