Skip to content

Added cfg dict 2#241

Merged
gupichon merged 4 commits into
mainfrom
added-cfg-dict-2
Apr 21, 2026
Merged

Added cfg dict 2#241
gupichon merged 4 commits into
mainfrom
added-cfg-dict-2

Conversation

@JeanLucPons
Copy link
Copy Markdown
Contributor

This PR allows to have dict in ConfigModel and fix a bug with wrong test file for Factory

@JeanLucPons JeanLucPons requested a review from gupichon April 21, 2026 13:42
@gupichon gupichon merged commit f5621b4 into main Apr 21, 2026
3 checks passed
@JeanLucPons
Copy link
Copy Markdown
Contributor Author

The syntax is now allowing to have dict like this:

class MyControlSystemConfigModel(BaseModel):
    model_config = ConfigDict(arbitrary_types_allowed=True, extra="forbid")
    name: str
    dconfig: dict

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 this pull request may close these issues.

2 participants