Skip to content

Commit

Permalink
Fix invalid name
Browse files Browse the repository at this point in the history
  • Loading branch information
earthpyy committed Mar 25, 2021
1 parent 89fe683 commit 0dc4b3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions flipt/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def _flagged_path(
name=None,
flag_key: str = None,
flag_state=True,
Pattern=None, # pylint: disable=invalid-name
# pylint: disable=invalid-name
Pattern=None,
):
if isinstance(view, (list, tuple)):
# For include(...) processing.
Expand All @@ -71,7 +72,9 @@ def _flagged_path(
flag_state=flag_state,
)
else:
raise TypeError('view must be a callable or a list/tuple in the case of include().')
raise TypeError(
'view must be a callable or a list/tuple in the case of include().'
)


flagged_path = partial(_flagged_path, Pattern=RoutePattern)
Expand Down

0 comments on commit 0dc4b3e

Please sign in to comment.