You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dataclass
class TcUiMsg:
Fairvalue: Optional[dict[str, Fv]] = None
Fv is an object.
use perde.json.dumps to dump
out_txt = perde.json.dumps(msg)
got error:
Exception has occurred: TypeError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
invalid argument: cannot get generic type information: typing.Optional[dict]: cannot get generic type information: dict[str, None]: invalid value type in dict: None is not a type
the object can dumps with orjson (orjson dumps to bytes ...)
I'm using python 3.9
The class:
Fv is an object.
use perde.json.dumps to dump
got error:
Exception has occurred: TypeError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
invalid argument: cannot get generic type information:
typing.Optional[dict]
: cannot get generic type information:dict[str, None]
: invalid value type indict
:None
is not a typethe object can dumps with orjson (orjson dumps to bytes ...)
The text was updated successfully, but these errors were encountered: