mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 04:34:29 +08:00
Add OutputWrapper write() signature (#301)
* Add OutputWrapper write() signature * Add #type: ignore[override] to OutputWrapper write() signature
This commit is contained in:
@@ -23,13 +23,16 @@ class OutputWrapper(TextIOBase):
|
|||||||
@property
|
@property
|
||||||
def style_func(self): ...
|
def style_func(self): ...
|
||||||
@style_func.setter
|
@style_func.setter
|
||||||
def style_func(self, style_func: Any): ...
|
def style_func(self, style_func: Callable[[str], str]): ...
|
||||||
ending: str = ...
|
ending: str = ...
|
||||||
def __init__(
|
def __init__(
|
||||||
self, out: Union[StringIO, TextIOWrapper], style_func: Optional[Callable] = ..., ending: str = ...
|
self, out: Union[StringIO, TextIOWrapper], style_func: Optional[Callable[[str], str]] = ..., ending: str = ...
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def __getattr__(self, name: str) -> Callable: ...
|
def __getattr__(self, name: str) -> Callable: ...
|
||||||
def isatty(self) -> bool: ...
|
def isatty(self) -> bool: ...
|
||||||
|
def write( # type: ignore[override]
|
||||||
|
self, msg: str, style_func: Optional[Callable[[str], str]] = ..., ending: Optional[str] = ...
|
||||||
|
) -> None: ...
|
||||||
|
|
||||||
class BaseCommand:
|
class BaseCommand:
|
||||||
help: str = ...
|
help: str = ...
|
||||||
|
|||||||
Reference in New Issue
Block a user