keleshev / schema

Schema validation just got Pythonic
MIT License
2.86k stars 214 forks source link

Readme code samples readability #304

Closed sezanzeb closed 9 months ago

sezanzeb commented 10 months ago

Some of the code examples were extremely hard to read.

For the most part I just used black to format them, except in the smaller examples, in which I put the curly braces and parenthesis on the same line to make it a bit more compact.

For the first example I omitted the >>> and ... characters to make it easier to copy and paste it to try it locally.