mirror of
https://github.com/nicolargo/glances.git
synced 2024-08-17 00:10:48 +03:00
In codeSpace (with Python 3.8), an error occurs in ./unittest-restful.py #2773
This commit is contained in:
parent
d94b0b4e92
commit
f6545580db
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user