adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.12k stars 1.22k forks source link

Throw TypeError when json-serializing invalid types #9789

Closed jepler closed 2 weeks ago

jepler commented 2 weeks ago

To do this without spending a lot of code, a new type flag is used for this.

This behavior is in line with standard Python.

Closes: #9768