Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax default protected_namespaces config setting (remove model_) #482

Closed
EliasRas opened this issue Nov 26, 2024 · 4 comments · Fixed by #483
Closed

Relax default protected_namespaces config setting (remove model_) #482

EliasRas opened this issue Nov 26, 2024 · 4 comments · Fixed by #483

Comments

@EliasRas
Copy link

Pydantic relaxed protected_namespaces default to get rid of warnings in e.g. AI/ML context (pydantic/pydantic#10441). Would it be possible to make a similar change here?

protected_namespaces=('model_', 'settings_'),

@hramezani
Copy link
Member

Thanks @EliasRas for reporting this.

Sure, we can do it here as well.

@hramezani
Copy link
Member

I created #483 as a fix

@ZidongLiu
Copy link

ZidongLiu commented Dec 8, 2024

Thanks for taking immediate action, also encountered same issue here. Will the fix ship with next release?

@hramezani
Copy link
Member

The fix will be available in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants