From 8093de85dbe4b261cfe82a6b625a640b316358c8 Mon Sep 17 00:00:00 2001 From: Mark Daoust Date: Fri, 27 Sep 2024 14:32:48 -0700 Subject: [PATCH] fix type check Change-Id: I220c05eee73ae76ced25254d67332f70a4069f7e --- tests/test_files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_files.py b/tests/test_files.py index d6a022aa1..0f7ca5707 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -18,6 +18,7 @@ import collections import datetime +import io import os from typing import Iterable, Sequence import pathlib @@ -38,7 +39,7 @@ def __init__(self, test): def create_file( self, - path: str | pathlib.Path | os.PathLike, + path: str | io.IOBase | os.PathLike, *, mime_type: str | None = None, name: str | None = None,