Build for v12 (#750)

* Build for v12

Typo!!

* Fix Python 3.7 compatibility

* Skip assets endpoint test on v12
This commit is contained in:
Lev
2022-04-03 13:27:22 +03:00
committed by GitHub
parent a389c3a175
commit 6fa358ca4e
6 changed files with 28 additions and 15 deletions

View File

@@ -1,8 +1,9 @@
#!/usr/local/bin/python
from __future__ import annotations
import json
import os
from typing import Any, Type, TypeVar
from typing import Any, TypeVar
def update_config(**values: Any):
@@ -22,7 +23,7 @@ def update_config(**values: Any):
_T = TypeVar("_T")
def env(name: str, type_: Type[_T] = str) -> _T:
def env(name: str, type_: type[_T] = str) -> _T:
value = os.getenv(name)
if not value:
raise RuntimeError(f'Required environment variable "{name}" not set')