mdrachuk / serious

Dataclass Model Toolkit
https://serious.readthedocs.io
MIT License
7 stars 1 forks source link

Support complex numbers #23

Open mdrachuk opened 4 years ago

mdrachuk commented 4 years ago

Although it’s not clear what complex numbers should be serialized to.

mdrachuk commented 4 years ago

It’s not really clear what’s the best way to implement this.

Best I could think of is an array of 2 floats:[3.14, -7] to represent 3.14 - 7i (python: 3.14-7j)