Skip to content

Conversation

@kozlov721
Copy link
Collaborator

Purpose

Forbids extra fields in pydantic classes inheriting from ConfigItem.

Specification

  • ConfigItem now inherits from BaseModelExtraForbid
  • Moved BaseModelExtraForbid from utils.pydantic_utils to typing

Dependencies & Potential Impact

None / not applicable

Deployment Plan

None / not applicable

Testing & Validation

None / not applicable

@kozlov721 kozlov721 requested a review from a team as a code owner November 7, 2025 15:47
@kozlov721 kozlov721 requested review from conorsim, klemen1999 and tersekmatija and removed request for a team November 7, 2025 15:47
@kozlov721 kozlov721 changed the title condig extra forbid Restricting extra fields in ConfigItem Nov 7, 2025
@github-actions github-actions bot added fix Fixing a bug utils Changes affecting luxonis_ml.utils subpackage NN Archive Changes affecting luxonis_ml.nn_archive subpackage labels Nov 7, 2025
@kozlov721 kozlov721 merged commit 91edec1 into main Nov 10, 2025
13 checks passed
@kozlov721 kozlov721 deleted the fix/config-item-extra branch November 10, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fixing a bug NN Archive Changes affecting luxonis_ml.nn_archive subpackage utils Changes affecting luxonis_ml.utils subpackage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants