Skip to content

Commit 861613e

Browse files
committed
add typing for custom filter
1 parent 5b8d068 commit 861613e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_sqlalchemy/tests/test_filters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def test_filter_custom_type(session):
104104
Query = create_schema(session)
105105

106106
class MathFilter(FloatFilter):
107-
def divisibleBy(dividend, divisor):
108-
return dividend % divisor == 0
107+
def divisibleBy(dividend: float, divisor: float) -> float:
108+
return dividend % divisor == 0.
109109

110110
class ExtraQuery:
111111
pets = SQLAlchemyConnectionField(Pet, filters=MathFilter())

0 commit comments

Comments
 (0)