We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5d9a31 commit b94f33cCopy full SHA for b94f33c
tests/test_files.py
@@ -18,7 +18,7 @@
18
import collections
19
import datetime
20
import os
21
-from typing import Iterable, Union
+from typing import Iterable, Sequence
22
import pathlib
23
24
import google
@@ -37,12 +37,13 @@ def __init__(self, test):
37
38
def create_file(
39
self,
40
- path: Union[str, pathlib.Path, os.PathLike],
+ path: str | pathlib.Path | os.PathLike,
41
*,
42
- mime_type: Union[str, None] = None,
43
- name: Union[str, None] = None,
44
- display_name: Union[str, None] = None,
+ mime_type: str | None = None,
+ name: str | None = None,
+ display_name: str | None = None,
45
resumable: bool = True,
46
+ metadata: Sequence[tuple[str, str]] = (),
47
) -> protos.File:
48
self.observed_requests.append(
49
dict(
0 commit comments