Skip to content

Commit dd620d7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 78a2031 commit dd620d7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

strawberry/object_type.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import dataclasses
22
from typing import List, Optional, Type, cast
33

4-
from .exceptions import InvalidSuperclassInterface, MissingFieldAnnotationError, MissingReturnAnnotationError
4+
from .exceptions import (
5+
InvalidSuperclassInterface,
6+
MissingFieldAnnotationError,
7+
MissingReturnAnnotationError,
8+
)
59
from .field import StrawberryField, field
610
from .types.type_resolver import _get_fields
711
from .types.types import FederationTypeParams, TypeDefinition
@@ -101,10 +105,7 @@ def _process_type(
101105

102106
if is_input and interfaces:
103107
interface_names = [interface.name for interface in interfaces]
104-
e = InvalidSuperclassInterface(
105-
input_name=name,
106-
interface_names=interface_names
107-
)
108+
e = InvalidSuperclassInterface(input_name=name, interface_names=interface_names)
108109
print(e)
109110

110111
raise e

0 commit comments

Comments
 (0)