NeuralNotwork commited on
Commit
3729cb1
·
verified ·
1 Parent(s): 2c56f73

Update MyModel.py

Browse files
Files changed (1) hide show
  1. pydantic_models/MyModel.py +11 -0
pydantic_models/MyModel.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Template for custom function or Pydantic model."""
2
+
3
+ from pydantic import BaseModel
4
+ from pydantic import Field
5
+
6
+
7
+ class MyModel(BaseModel):
8
+ """My model."""
9
+
10
+ attr1: str = Field(..., description="The first attribute.")
11
+ attr2: int = Field(..., description="The second attribute.")