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 c8fd8e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions func.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ def more_untested():
return "hello world"


def even_more_untested():
return "another line"

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 c8fd8e4

Please sign in to comment.