mirror of https://github.com/Textualize/rich.git
black typing
This commit is contained in:
parent
84b6f751e0
commit
27379a8f1a
|
@ -4,6 +4,7 @@ import sys
|
|||
from array import array
|
||||
from collections import Counter, defaultdict, deque
|
||||
from dataclasses import dataclass, fields, is_dataclass
|
||||
import inspect
|
||||
from itertools import islice
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
|
|
|
@ -24,6 +24,6 @@ def rich_repr(cls: Type[T]) -> Type[T]:
|
|||
return f"{self.__class__.__name__}({', '.join(repr_str)})"
|
||||
|
||||
auto_repr.__doc__ = "Return repr(self)"
|
||||
cls.__repr__ = auto_repr
|
||||
cls.__repr__ = auto_repr # type: ignore
|
||||
|
||||
return cls
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -632,4 +632,4 @@ def test_update_screen():
|
|||
def test_update_screen_lines():
|
||||
console = Console(force_terminal=True, width=20, height=5)
|
||||
with pytest.raises(errors.NoAltScreen):
|
||||
console.update_screen_lines([])
|
||||
console.update_screen_lines([])
|
||||
|
|
Loading…
Reference in New Issue