Просмотр исходного кода

refactor: remove redundant cast

Fabian Peter Hammerle 2 лет назад
Родитель
Сommit
4d381f4255
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tests/conftest.py

+ 1 - 1
tests/conftest.py

@@ -10,4 +10,4 @@ def google_calendar_file() -> typing.Iterator[io.BufferedReader]:
     with pathlib.Path(__file__).parent.joinpath(
         "resources", "google-calendar.ics"
     ).open("rb") as file:
-        yield typing.cast(io.BufferedReader, file)
+        yield file