diff --git a/play_with_pydantic.py b/play_with_pydantic.py new file mode 100644 index 0000000..cb1a979 --- /dev/null +++ b/play_with_pydantic.py @@ -0,0 +1,10 @@ +from pydantic.dataclasses import dataclass + +@dataclass +class Foo: + bar: str + + +if __name__ == "__main__": + print(Foo(bar="hello")) + print(Foo(bar="hello", not_valid="huh"))