- Product: SonarQube Cloud
- Language: Python
- Rule: S930 → “Remove this unexpected named argument ‘min_length’”
- Justification: Using pydantic v2.10.6 python library, the argument
min_length
is a valid property of pydantic.conlist’s function signature.
Code to reproduce:
from pydantic.main import BaseModel
from pydantic.types import conlist
class ExampleClass(BaseModel):
my_types: conlist(item_type=int, min_length=1) | None = None
Outcome: