Skip to content

Commit

Permalink
ignore V2 coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Jun 21, 2023
1 parent e6ad893 commit 2478283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fast_depends/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def __init__(
self.arguments = []
self.alias_arguments = []

if PYDANTIC_V2:
if PYDANTIC_V2: # pragma: no cover
fields = self.model.model_fields
else: # pragma: no cover
else:
fields = self.model.__fields__ # type: ignore[assignment]

for name, f in fields.items():
Expand Down

0 comments on commit 2478283

Please sign in to comment.