Bazel: make git_lfs_probe.py compatible with python 3.8

This commit is contained in:
Paolo Tranquilli
2024-05-07 12:44:28 +02:00
parent b8f62ae4d5
commit 9f27eb3eda

View File

@@ -18,14 +18,15 @@ from urllib.parse import urlparse
import re
import base64
from dataclasses import dataclass
from typing import Dict
@dataclass
class Endpoint:
href: str
headers: dict[str, str]
headers: Dict[str, str]
def update_headers(self, d: dict[str, str]):
def update_headers(self, d: Dict[str, str]):
self.headers.update((k.capitalize(), v) for k, v in d.items())