Skip to content

Commit 9f02235

Browse files
committed
C0103: Argument name "f" doesn't conform to snake_case naming style (invalid-name)
1 parent 20e1a75 commit 9f02235

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

00-Starter-Seed/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ def requires_scope(required_scope):
7979
return False
8080

8181

82-
def requires_auth(f):
82+
def requires_auth(func):
8383
"""Determines if the access token is valid
8484
"""
85-
@wraps(f)
85+
@wraps(func)
8686
def decorated(*args, **kwargs):
8787
token = get_token_auth_header()
8888
jsonurl = urlopen("https://"+AUTH0_DOMAIN+"/.well-known/jwks.json")
@@ -133,7 +133,7 @@ def decorated(*args, **kwargs):
133133
" token."}, 401)
134134

135135
_request_ctx_stack.top.current_user = payload
136-
return f(*args, **kwargs)
136+
return func(*args, **kwargs)
137137
raise AuthError({"code": "invalid_header",
138138
"description": "Unable to find appropriate key"}, 401)
139139
return decorated

0 commit comments

Comments
 (0)