Add linting for docs/examples (#1530)

This commit is contained in:
Stephen Brown II
2020-05-31 07:54:12 -06:00
committed by GitHub
parent 827388b4fe
commit ec1dca9126
109 changed files with 347 additions and 39 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
from pydantic import BaseModel, ValidationError, validator
class Model(BaseModel):
foo: str
@@ -10,8 +11,8 @@ class Model(BaseModel):
return v
try:
Model(foo='ber')
except ValidationError as e:
print(e.errors())