Skip to content

Commit

Permalink
Fix doctest formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmontagu committed Jul 28, 2023
1 parent 86323c1 commit 3b4d236
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/errors/usage_errors.md
Expand Up @@ -947,11 +947,12 @@ if you try to specify a value for the config setting `'extra'` when creating a s
```py
from pydantic import PydanticUserError, RootModel


try:

class MyRootModel(RootModel):
model_config = {'extra': 'allow'}
root: int

except PydanticUserError as exc_info:
assert exc_info.code == 'root-model-extra'
```
Expand Down

0 comments on commit 3b4d236

Please sign in to comment.