mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Bazel: make git_lfs_probe.py compatible with python 3.8
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user