mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
fix: coverage
Following https://github.com/samuelcolvin/pydantic/pull/3247 it seems that this case is not triggered anymore. We still keep it just in case
This commit is contained in:
+3
-1
@@ -270,7 +270,9 @@ class PydanticModelTransformer:
|
||||
# Basically, it is an edge case when dealing with complex import logic
|
||||
# This is the same logic used in the dataclasses plugin
|
||||
continue
|
||||
if not isinstance(node, Var):
|
||||
if not isinstance(node, Var): # pragma: no cover
|
||||
# Don't know if this edge case still happens with the `is_valid_field` check above
|
||||
# but better safe than sorry
|
||||
continue
|
||||
|
||||
# x: ClassVar[int] is ignored by dataclasses.
|
||||
|
||||
Reference in New Issue
Block a user