Skip to content

Commit b94f33c

Browse files
committed
pytype
Change-Id: If81b86c176008cd9a99e3b879fbd3af086ec2235
1 parent a5d9a31 commit b94f33c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_files.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import collections
1919
import datetime
2020
import os
21-
from typing import Iterable, Union
21+
from typing import Iterable, Sequence
2222
import pathlib
2323

2424
import google
@@ -37,12 +37,13 @@ def __init__(self, test):
3737

3838
def create_file(
3939
self,
40-
path: Union[str, pathlib.Path, os.PathLike],
40+
path: str | pathlib.Path | os.PathLike,
4141
*,
42-
mime_type: Union[str, None] = None,
43-
name: Union[str, None] = None,
44-
display_name: Union[str, None] = None,
42+
mime_type: str | None = None,
43+
name: str | None = None,
44+
display_name: str | None = None,
4545
resumable: bool = True,
46+
metadata: Sequence[tuple[str, str]] = (),
4647
) -> protos.File:
4748
self.observed_requests.append(
4849
dict(

0 commit comments

Comments
 (0)