Skip to content

Commit 05fac7d

Browse files
author
Greg Svitak
committed
fixes for pep
1 parent 1b3c6c2 commit 05fac7d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

graphene_sqlalchemy/converter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ def convert_column_to_string(type, column, registry=None):
9999
@convert_sqlalchemy_type.register(types.Integer)
100100
def convert_column_to_int_or_id(type, column, registry=None):
101101
if column.primary_key:
102-
return ID(description=column.doc, required=not(column.nullable))
102+
return ID(description=column.doc, required=not (column.nullable))
103103
else:
104104
return Int(description=getattr(column, 'doc', None),
105-
required=not(getattr(column, 'nullable', True)))
105+
required=not (getattr(column, 'nullable', True)))
106106

107107

108108
@convert_sqlalchemy_type.register(types.Boolean)

graphene_sqlalchemy/tests/test_converter.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ def test_should_label_convert_string():
114114

115115

116116
def test_should_label_convert_int():
117-
label = Label('int_label_test', case([], else_="foo"), type_=types.Integer())
118-
graphene_type = convert_sqlalchemy_column(label)
119-
assert isinstance(graphene_type, graphene.Int)
117+
label = Label('int_label_test', case([], else_="foo"), type_=types.Integer())
118+
graphene_type = convert_sqlalchemy_column(label)
119+
assert isinstance(graphene_type, graphene.Int)
120120

121121
def test_should_choice_convert_enum():
122122
TYPES = [

0 commit comments

Comments
 (0)