Skip to content

Commit

Permalink
πŸ“– docs: Update docs for NewPath (#9462)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomy0000000 committed May 20, 2024
1 parent 7bdfac3 commit d1f650a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ class Model(BaseModel):
```
"""
NewPath = Annotated[Path, PathType('new')]
"""A path for a new file or directory that must not already exist."""
"""A path for a new file or directory that must not already exist. The parent directory must already exist."""


# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JSON TYPE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit d1f650a

Please sign in to comment.