Skip to content

Commit 74a6565

Browse files
authored
Update depth_limit.py
1 parent 98980b5 commit 74a6565

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graphene/validation/depth_limit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
# backwards compatibility for v3.6
3232
from typing import Pattern
3333

34-
import re
3534
from typing import Callable, Dict, List, Optional, Union
3635

3736
from graphql import GraphQLError
@@ -190,7 +189,7 @@ def is_ignored(node: FieldNode, ignore: Optional[List[IgnoreType]] = None) -> bo
190189
if isinstance(rule, str):
191190
if field_name == rule:
192191
return True
193-
elif isinstance(rule, re.Pattern):
192+
elif isinstance(rule, Pattern):
194193
if rule.match(field_name):
195194
return True
196195
elif callable(rule):

0 commit comments

Comments
 (0)