Skip to content

Commit 531097f

Browse files
committed
fix type declaration to make mypy happy
Use TextIOBase instead of TextIOWrapper
1 parent 7444afc commit 531097f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fromager/read.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@contextmanager
1111
def open_file_or_url(
1212
path_or_url: str | pathlib.Path,
13-
) -> typing.Generator[io.TextIOWrapper, typing.Any, None]:
13+
) -> typing.Generator[io.TextIOBase, typing.Any, None]:
1414
location = str(path_or_url)
1515
if location.startswith("file://"):
1616
location = urlparse(location).path

0 commit comments

Comments
 (0)