Loading poolpay/wire/Packet.py +3 −1 Original line number Diff line number Diff line Loading @@ -5,5 +5,7 @@ values can be a number of primitives, lists, or other dicts which can be easily Forbidden are values which are not primitives, e.g., any sort of more complex Python objects. """ from collections.abc import Mapping type Primitive = str | int | float | bool | None type Packet = dict[str, Primitive | Packet | list[Primitive | Packet]] type Packet = Mapping[str, Primitive | Packet | list[Primitive | Packet]] Loading
poolpay/wire/Packet.py +3 −1 Original line number Diff line number Diff line Loading @@ -5,5 +5,7 @@ values can be a number of primitives, lists, or other dicts which can be easily Forbidden are values which are not primitives, e.g., any sort of more complex Python objects. """ from collections.abc import Mapping type Primitive = str | int | float | bool | None type Packet = dict[str, Primitive | Packet | list[Primitive | Packet]] type Packet = Mapping[str, Primitive | Packet | list[Primitive | Packet]]