We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee47d03 commit 6aca651Copy full SHA for 6aca651
graphene_federation/extend.py
@@ -29,8 +29,8 @@ def decorator(Type):
29
Type, "_keys"
30
), "Can't extend type which is already extended or has @key"
31
# Check the provided fields actually exist on the Type.
32
- assert (
33
- set(fields.replace(" ", "").split(",")).issubset(set(Type._meta.fields))
+ assert set(fields.replace(" ", "").split(",")).issubset(
+ set(Type._meta.fields)
34
), f'Field "{fields}" does not exist on type "{Type._meta.name}"'
35
assert getattr(Type._meta, "description", None) is None, (
36
f'Type "{Type.__name__}" has a non empty description and it is also marked with extend.'
0 commit comments