Skip to content

Update types.py

08cddc7
Select commit
Loading
Failed to load commit list.
Closed

enforce exactly-one-set constraint on model fields in class types.Part #681

Update types.py
08cddc7
Select commit
Loading
Failed to load commit list.
Conventional Commit Lint GCF / conventionalcommits.org failed May 5, 2025 in 0s

Commit message did not follow Conventional Commits

Some of your commit messages failed linting.

Visit conventionalcommits.org to learn our conventions.

Run git commit --amend and edit your message to match Conventional Commit guidelines.

Details

❌ The following linting errors found:

  • subject may not be empty
  • type may not be empty
    for the following input:
    "*update types.py

as the class part requires only one element to be set and others be none, adding a model_validator that checks that.*"