use typing.Union for pre-3.10 compat (#1626)

This commit is contained in:
Tom Kralidis
2024-04-12 16:38:04 -04:00
committed by GitHub
parent a26662e0e4
commit ea2fb87ff5
4 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ def gzip(func):
return inner
def apply_gzip(headers: dict, content: str | bytes) -> str | bytes:
def apply_gzip(headers: dict, content: Union[str, bytes]) -> Union[str, bytes]:
"""
Compress content if requested in header.
"""