Skip to content

Commit

Permalink
Add pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
michelletran-codecov committed Aug 23, 2024
1 parent 14650c3 commit 5168786
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions play_with_pydantic.py
Original file line number Diff line number Diff line change
@@ -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"))

0 comments on commit 5168786

Please sign in to comment.