mirror of https://github.com/Textualize/rich.git
Fix type annotations of `_Reader.name`
This commit is contained in:
parent
4cbd5c1479
commit
b248bf8660
|
@ -217,7 +217,7 @@ class _Reader(RawIOBase, BinaryIO):
|
|||
return self.handle.isatty()
|
||||
|
||||
@property
|
||||
def name(self) -> Optional[str]:
|
||||
def name(self) -> str:
|
||||
return self.handle.name
|
||||
|
||||
def readable(self) -> bool:
|
||||
|
|
Loading…
Reference in New Issue