Skip to content

Commit 0dc4b3e

Browse files
committed
Fix invalid name
1 parent 89fe683 commit 0dc4b3e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

flipt/urls.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def _flagged_path(
4545
name=None,
4646
flag_key: str = None,
4747
flag_state=True,
48-
Pattern=None, # pylint: disable=invalid-name
48+
# pylint: disable=invalid-name
49+
Pattern=None,
4950
):
5051
if isinstance(view, (list, tuple)):
5152
# For include(...) processing.
@@ -71,7 +72,9 @@ def _flagged_path(
7172
flag_state=flag_state,
7273
)
7374
else:
74-
raise TypeError('view must be a callable or a list/tuple in the case of include().')
75+
raise TypeError(
76+
'view must be a callable or a list/tuple in the case of include().'
77+
)
7578

7679

7780
flagged_path = partial(_flagged_path, Pattern=RoutePattern)

0 commit comments

Comments
 (0)