Updated multiple Python modules (now in libs and custom_libs directories) and React libraries

This commit is contained in:
morpheus65535 2024-03-03 12:15:23 -05:00 committed by GitHub
parent 9ae684240b
commit 03afeb3470
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3550 changed files with 200757 additions and 117862 deletions

View file

@ -10,13 +10,13 @@ from .comment import strip_comments # keep 'unused' imports
from .encoders import TricksEncoder, json_date_time_encode, \
class_instance_encode, json_complex_encode, json_set_encode, numeric_types_encode, numpy_encode, \
nonumpy_encode, nopandas_encode, pandas_encode, noenum_instance_encode, \
enum_instance_encode, pathlib_encode, bytes_encode # keep 'unused' imports
enum_instance_encode, pathlib_encode, bytes_encode, slice_encode # keep 'unused' imports
from .decoders import TricksPairHook, \
json_date_time_hook, ClassInstanceHook, \
json_complex_hook, json_set_hook, numeric_types_hook, json_numpy_obj_hook, \
json_nonumpy_obj_hook, \
nopandas_hook, pandas_hook, EnumInstanceHook, \
noenum_hook, pathlib_hook, nopathlib_hook, json_bytes_hook # keep 'unused' imports
noenum_hook, pathlib_hook, nopathlib_hook, json_bytes_hook, slice_hook # keep 'unused' imports
ENCODING = 'UTF-8'
@ -24,10 +24,26 @@ ENCODING = 'UTF-8'
_cih_instance = ClassInstanceHook()
_eih_instance = EnumInstanceHook()
DEFAULT_ENCODERS = [json_date_time_encode, json_complex_encode, json_set_encode,
numeric_types_encode, class_instance_encode, bytes_encode,]
DEFAULT_HOOKS = [json_date_time_hook, json_complex_hook, json_set_hook,
numeric_types_hook, _cih_instance, json_bytes_hook,]
DEFAULT_ENCODERS = [
json_date_time_encode,
json_complex_encode,
json_set_encode,
numeric_types_encode,
class_instance_encode,
bytes_encode,
slice_encode,
]
DEFAULT_HOOKS = [
json_date_time_hook,
json_complex_hook,
json_set_hook,
numeric_types_hook,
_cih_instance,
json_bytes_hook,
slice_hook,
]
#TODO @mark: add properties to all built-in encoders (for speed - but it should keep working without)