浏览代码

refactor: remove redundant cast

Fabian Peter Hammerle 3 年之前
父节点
当前提交
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