Skip to content

Commit 58088b6

Browse files
author
Paolo Tranquilli
committed
Bazel: make git_lfs_probe.py a bit more backward compatible
1 parent c576a11 commit 58088b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/bazel/internal/git_lfs_probe.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ def options():
3434
class Endpoint:
3535
name: str
3636
href: str
37-
ssh: str | None = None
37+
ssh: typing.Opional[str] = None
3838
headers: typing.Dict[str, str] = dataclasses.field(default_factory=dict)
3939

40-
def update_headers(self, d: typing.Iterable[tuple[str, str]]):
40+
def update_headers(self, d: typing.Iterable[typing.Tuple[str, str]]):
4141
self.headers.update((k.capitalize(), v) for k, v in d)
4242

4343

@@ -49,7 +49,7 @@ def update_headers(self, d: typing.Iterable[tuple[str, str]]):
4949
).strip()
5050

5151

52-
def get_env(s: str, sep: str = "=") -> typing.Iterable[tuple[str, str]]:
52+
def get_env(s: str, sep: str = "=") -> typing.Iterable[typing.Tuple[str, str]]:
5353
for m in re.finditer(rf"(.*?){sep}(.*)", s, re.M):
5454
yield m.groups()
5555

0 commit comments

Comments
 (0)