Skip to content

Commit c562403

Browse files
committed
Fix Flake8
1 parent 664745a commit c562403

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[flake8]
22
ignore = E203,W503
33
exclude = .git,.mypy_cache,.pytest_cache,.tox,.venv,__pycache__,build,dist,docs
4-
max-line-length = 88
4+
max-line-length = 120

graphene_sqlalchemy/types.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525

2626
class ORMField(OrderedType):
2727
def __init__(
28-
self,
29-
model_attr=None,
30-
type_=None,
31-
required=None,
32-
description=None,
33-
deprecation_reason=None,
34-
batching=None,
35-
_creation_counter=None,
36-
**field_kwargs
28+
self,
29+
model_attr=None,
30+
type_=None,
31+
required=None,
32+
description=None,
33+
deprecation_reason=None,
34+
batching=None,
35+
_creation_counter=None,
36+
**field_kwargs
3737
):
3838
"""
3939
Use this to override fields automatically generated by SQLAlchemyObjectType.
@@ -89,7 +89,7 @@ class Meta:
8989

9090

9191
def construct_fields(
92-
obj_type, model, registry, only_fields, exclude_fields, batching, connection_field_factory
92+
obj_type, model, registry, only_fields, exclude_fields, batching, connection_field_factory
9393
):
9494
"""
9595
Construct all the fields for a SQLAlchemyObjectType.
@@ -111,10 +111,10 @@ def construct_fields(
111111
# Gather all the relevant attributes from the SQLAlchemy model in order
112112
all_model_attrs = OrderedDict(
113113
inspected_model.column_attrs.items() +
114-
inspected_model.composites.items() +
115-
[(name, item) for name, item in inspected_model.all_orm_descriptors.items()
116-
if isinstance(item, hybrid_property)] +
117-
inspected_model.relationships.items()
114+
+ inspected_model.composites.items()
115+
+ [(name, item) for name, item in inspected_model.all_orm_descriptors.items()
116+
if isinstance(item, hybrid_property)]
117+
+ inspected_model.relationships.items()
118118
)
119119

120120
# Filter out excluded fields
@@ -191,21 +191,21 @@ class SQLAlchemyObjectTypeOptions(ObjectTypeOptions):
191191
class SQLAlchemyObjectType(ObjectType):
192192
@classmethod
193193
def __init_subclass_with_meta__(
194-
cls,
195-
model=None,
196-
registry=None,
197-
skip_registry=False,
198-
only_fields=(),
199-
exclude_fields=(),
200-
connection=None,
201-
connection_class=None,
202-
use_connection=None,
203-
interfaces=(),
204-
id=None,
205-
batching=False,
206-
connection_field_factory=None,
207-
_meta=None,
208-
**options
194+
cls,
195+
model=None,
196+
registry=None,
197+
skip_registry=False,
198+
only_fields=(),
199+
exclude_fields=(),
200+
connection=None,
201+
connection_class=None,
202+
use_connection=None,
203+
interfaces=(),
204+
id=None,
205+
batching=False,
206+
connection_field_factory=None,
207+
_meta=None,
208+
**options
209209
):
210210
# Make sure model is a valid SQLAlchemy model
211211
if not is_mapped_class(model):

0 commit comments

Comments
 (0)