8000 Mark `Extra` as deprecated by disrupted · Pull Request #7299 · pydantic/pydantic · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix capitalization
  • Loading branch information
disrupted authored and adriangb committed Sep 20, 2023
commit f6440f105316fb7f63e9267a5d25d00bbeaee070
8469
2 changes: 1 addition & 1 deletion pydantic/deprecated/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init_subclass__(cls, **kwargs: Any) -> None:
return super().__init_subclass__(**kwargs)


@deprecated('Extra is deprecated. use literal values instead (e.g. `extra=\'allow\'`)', category=PydanticDeprecatedSince20)
@deprecated('Extra is deprecated. Use literal values instead (e.g. `extra=\'allow\'`)', category=PydanticDeprecatedSince20)
class Extra:
allow: Literal['allow'] = 'allow'
ignore: Literal['ignore'] = 'ignore'
Expand Down
0