Skip to content

Commit 6aca651

Browse files
Fix Lint error
1 parent ee47d03 commit 6aca651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_federation/extend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def decorator(Type):
2929
Type, "_keys"
3030
), "Can't extend type which is already extended or has @key"
3131
# Check the provided fields actually exist on the Type.
32-
assert (
33-
set(fields.replace(" ", "").split(",")).issubset(set(Type._meta.fields))
32+
assert set(fields.replace(" ", "").split(",")).issubset(
33+
set(Type._meta.fields)
3434
), f'Field "{fields}" does not exist on type "{Type._meta.name}"'
3535
assert getattr(Type._meta, "description", None) is None, (
3636
f'Type "{Type.__name__}" has a non empty description and it is also marked with extend.'

0 commit comments

Comments
 (0)