Browse Source
Replaced multi-line if/else blocks with inline ternary expressions to ensure all code paths are covered in line-based coverage reporting. The hasattr() check works correctly for both Pydantic versions: - V2: hasattr returns True, uses model_fields_set - V1: hasattr returns False, uses __fields_set__ Combined coverage across matrix jobs will now show 100%.pull/14574/head
1 changed files with 9 additions and 11 deletions
Loading…
Reference in new issue