mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-23 20:45:33 +03:00
make lint
in glances/globals.py
Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
This commit is contained in:
parent
6ea8244906
commit
7d1b9a3bf3
@ -29,7 +29,7 @@ from configparser import ConfigParser, NoOptionError, NoSectionError
|
||||
from datetime import datetime
|
||||
from operator import itemgetter, methodcaller
|
||||
from statistics import mean
|
||||
from typing import Any, Dict, List, Union
|
||||
from typing import Any, Union
|
||||
from urllib.error import HTTPError, URLError
|
||||
from urllib.parse import urlparse
|
||||
from urllib.request import Request, urlopen
|
||||
@ -360,7 +360,7 @@ def json_dumps(data) -> bytes:
|
||||
return b(res)
|
||||
|
||||
|
||||
def json_loads(data: Union[str, bytes, bytearray]) -> Union[Dict, List]:
|
||||
def json_loads(data: Union[str, bytes, bytearray]) -> Union[dict, list]:
|
||||
"""Load a JSON buffer into memory as a Python object"""
|
||||
return json.loads(data)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user