File tree Expand file tree Collapse file tree 3 files changed +42
-24
lines changed
databind.core/src/databind/core Expand file tree Collapse file tree 3 files changed +42
-24
lines changed Original file line number Diff line number Diff line change 29
29
)
30
30
31
31
__all__ = [
32
+ "Alias" ,
33
+ "BooleanSetting" ,
34
+ "ClassDecoratorSetting" ,
32
35
"Context" ,
33
- "Direction" ,
34
- "Location" ,
35
- "Converter" ,
36
36
"ConversionError" ,
37
- "NoMatchingConverter" ,
38
- "DelegateToClassmethodConverter" ,
39
- "Module" ,
40
- "ObjectMapper" ,
41
- "Schema" ,
42
37
"convert_dataclass_to_schema" ,
43
38
"convert_to_schema" ,
44
39
"convert_typed_dict_to_schema" ,
45
- "Setting" ,
46
- "Settings" ,
47
- "SettingsProvider" ,
48
- "SerializeDefaults" ,
49
- "Alias" ,
50
- "BooleanSetting" ,
51
- "ClassDecoratorSetting" ,
40
+ "Converter" ,
52
41
"DateFormat" ,
53
- "Precision " ,
42
+ "DelegateToClassmethodConverter " ,
54
43
"DeserializeAs" ,
55
- "Union " ,
44
+ "Direction " ,
56
45
"ExtraKeys" ,
57
- "Remainder" ,
58
- "Strict" ,
59
46
"Flattened" ,
60
- "Required" ,
61
- "Priority" ,
62
- "get_highest_setting" ,
63
- "get_class_setting" ,
64
47
"get_annotation_setting" ,
48
+ "get_class_setting" ,
65
49
"get_class_settings" ,
50
+ "get_highest_setting" ,
51
+ "Location" ,
52
+ "Module" ,
53
+ "NoMatchingConverter" ,
54
+ "ObjectMapper" ,
55
+ "Precision" ,
56
+ "Priority" ,
57
+ "Remainder" ,
58
+ "Required" ,
59
+ "Schema" ,
60
+ "SerializeDefaults" ,
61
+ "Setting" ,
62
+ "Settings" ,
63
+ "SettingsProvider" ,
64
+ "Strict" ,
65
+ "Union" ,
66
66
]
Original file line number Diff line number Diff line change @@ -3,3 +3,9 @@ id = "5d31c345-35ef-40f4-bf02-bfca907f0517"
3
3
type = " feature"
4
4
description = " Support new `DeserializeAs` setting"
5
5
author = " @NiklasRosenstein"
6
+
7
+ [[entries ]]
8
+ id = " e8a41ce4-27c1-4706-a154-fb2488c342dd"
9
+ type = " improvement"
10
+ description = " Expose public API in `databind.json` root module."
11
+ author = " @NiklasRosenstein"
Original file line number Diff line number Diff line change 3
3
import json
4
4
import typing as t
5
5
6
- from databind .core .utils import T
6
+ from databind .json .module import JsonModule
7
+ from databind .json .settings import JsonConverter
7
8
8
9
if t .TYPE_CHECKING :
9
10
from databind .core .mapper import ObjectMapper
10
11
from databind .core .settings import Setting , Settings
11
12
12
13
__version__ = "4.2.8"
14
+ __all__ = [
15
+ "dump" ,
16
+ "dumps" ,
17
+ "get_object_mapper" ,
18
+ "JsonConverter" ,
19
+ "JsonModule" ,
20
+ "JsonType" ,
21
+ "load" ,
22
+ "loads" ,
23
+ ]
13
24
25
+ T = t .TypeVar ("T" )
14
26
JsonType = t .Union [
15
27
None ,
16
28
bool ,
You can’t perform that action at this time.
0 commit comments