In codeSpace (with Python 3.8), an error occurs in ./unittest-restful.py #2773

This commit is contained in:
Nicolas Hennion 2024-05-16 08:46:27 +00:00
parent d94b0b4e92
commit f6545580db

View File

@ -16,8 +16,12 @@ from io import open
import webbrowser
from urllib.parse import urljoin
# Replace typing_extensions by typing when Python 3.8 support will be dropped
from typing import Annotated
try:
from typing import Annotated
except ImportError:
# Only for Python 3.8
# To be removed when Python 3.8 support will be dropped
from typing_extensions import Annotated
from glances import __version__, __apiversion__
from glances.password import GlancesPassword