Fix type annotations of `_Reader.name`

This commit is contained in:
Martin Larralde 2022-05-05 12:38:28 +02:00
parent 4cbd5c1479
commit b248bf8660
1 changed files with 1 additions and 1 deletions

View File

@ -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: