mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2025-12-31 08:50:41 +00:00
typing fix for python 3.8/3.9
This commit is contained in:
@@ -9,7 +9,7 @@ from enum import Enum
|
|||||||
from base64 import b64encode
|
from base64 import b64encode
|
||||||
from cmd import Cmd
|
from cmd import Cmd
|
||||||
from shlex import split
|
from shlex import split
|
||||||
from typing import List, Dict
|
from typing import List, Dict, Union
|
||||||
|
|
||||||
|
|
||||||
class MyJSONEncoder(json.JSONEncoder):
|
class MyJSONEncoder(json.JSONEncoder):
|
||||||
@@ -29,7 +29,7 @@ class MissingDataError(RuntimeError):
|
|||||||
class MetaBrowser(Cmd):
|
class MetaBrowser(Cmd):
|
||||||
prompt = "(wavinfo) "
|
prompt = "(wavinfo) "
|
||||||
|
|
||||||
metadata: List | Dict
|
metadata: Union[List, Dict]
|
||||||
path: List[str] = []
|
path: List[str] = []
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user