mirror of https://github.com/Textualize/rich.git
allow rich cast to return rich cast
This commit is contained in:
parent
ef1b9b91cc
commit
e23b0bb3da
|
@ -265,7 +265,9 @@ class ConsoleOptions:
|
|||
class RichCast(Protocol):
|
||||
"""An object that may be 'cast' to a console renderable."""
|
||||
|
||||
def __rich__(self) -> Union["ConsoleRenderable", str]: # pragma: no cover
|
||||
def __rich__(
|
||||
self,
|
||||
) -> Union["ConsoleRenderable", "RichCast", str]: # pragma: no cover
|
||||
...
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue