From b248bf86607035cb0c8eec47384e28ceee36b5c7 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Thu, 5 May 2022 12:38:28 +0200 Subject: [PATCH] Fix type annotations of `_Reader.name` --- rich/progress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich/progress.py b/rich/progress.py index 9acd795f..c8eeefbf 100644 --- a/rich/progress.py +++ b/rich/progress.py @@ -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: