TheDataShed / sql-deployment-tools

GNU General Public License v3.0
2 stars 0 forks source link

Implement Pydantic models #23

Open GooseLF opened 2 years ago

GooseLF commented 2 years ago

@gvee-uk Please implement pydantic models so we can have strong type checking :D

gvee-uk commented 2 years ago

Adding to this: dataclasses allow for type hints, but not type checking. To do strict type checking you need to roll your own __post_init__ method with custom code. pydantic models give you the strong type checking "for free".

GooseLF commented 2 years ago

Need to re-enabled the skipped test when this is done