A call with ruff check . and the PD rule activated, prints the error
PD011 Use `.to_numpy()` instead of `.values`
The mentioned line is if value not in User.Gender.values:
User.Gender is a TextChoices based class from django which itself inherits from enum.Enum and StrEnum.
No pandas or numpy involved