File: data.py

package info (click to toggle)
dacite 1.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 332 kB
  • sloc: python: 1,870; makefile: 8
file content (28 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
simple_data = {
    "attr_string": "some string",
    "attr_string_opt": None,
    "attr_int": 12,
    "attr_list": ["some", "string", "list"],
    "attr_set": {10.2, 365.0, 12.345},
}

nested_data = {
    "nested1": simple_data,
    "nested2": simple_data,
    "nested_list": [simple_data, simple_data, simple_data],
    "nested_dict": {"a": simple_data, "b": simple_data, "c": simple_data},
}

long_union_data = {
    "simple_type_union": True,
    "unrealistically_complex_union": nested_data,
    "unrealistically_complex_union2": [nested_data, nested_data, nested_data],
}

union_collection_data = {"collection": [1, nested_data, [nested_data, nested_data], "string", {"k": "v"}]}


forward_ref_data = {"inner": long_union_data}


cast_data = {"e": "z"}