[U] Release 1.0.17
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
__version__ = "1.0.16"
|
__version__ = "1.0.17"
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import inspect
|
|||||||
import io
|
import io
|
||||||
import json
|
import json
|
||||||
import pickle
|
import pickle
|
||||||
from enum import EnumType, Enum
|
from enum import Enum
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
from typing import Any
|
from typing import Any
|
||||||
@@ -91,9 +91,9 @@ class ForceJSONEcoder(EnhancedJSONEncoder):
|
|||||||
if infer_result:
|
if infer_result:
|
||||||
return infer_result
|
return infer_result
|
||||||
|
|
||||||
# Support EnumType
|
# # Support EnumType
|
||||||
if isinstance(o, EnumType):
|
# if isinstance(o, EnumType):
|
||||||
return {i.name: i.value for i in o}
|
# return {i.name: i.value for i in o}
|
||||||
|
|
||||||
# Support for custom classes (get dict values)
|
# Support for custom classes (get dict values)
|
||||||
if hasattr(o, '__dict__') and not inspect.isclass(o):
|
if hasattr(o, '__dict__') and not inspect.isclass(o):
|
||||||
|
|||||||
Reference in New Issue
Block a user