Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Don't allow customization ofSchemaGenerator until interface is more stable#10303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sydney-runkle merged 13 commits intomainfromno-gen-schema-customization
Sep 5, 2024
Merged
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
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
PrevPrevious commit
NextNext commit
add init warning
  • Loading branch information
@sydney-runkle
sydney-runkle committedSep 5, 2024
commit645a091618cb647c5aa020aaf3d0df8b41d98c89
7 changes: 7 additions & 0 deletionspydantic/_internal/_generate_schema.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -380,6 +380,13 @@ def __init__(
self.model_type_stack = _ModelTypeStack()
self.defs = _Definitions()

def __init_subclass__(cls, **kwargs) -> None:
super().__init_subclass__(**kwargs)
warnings.warn(
f'Subclassing {cls.__name__} is not supported. The API is highly subject to change in minor versions.',
UserWarning,
)

@property
def _config_wrapper(self) -> ConfigWrapper:
return self._config_wrapper_stack.tail
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp