Merge "Remove mypy union line which breaks older pythons."

This commit is contained in:
Zuul 2024-04-22 17:04:41 +00:00 committed by Gerrit Code Review
commit 416fd6f618
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ import hmac
import json
import os
import time
import typing as ty
from urllib import parse
from openstack import _log
@ -1046,7 +1047,7 @@ class Proxy(proxy.Proxy):
method.upper(),
)
expiration: float | int
expiration: ty.Union[float, int]
if not absolute:
expiration = _get_expiration(timestamp)
else: