Skip to content

Commit

Permalink
Merge pull request #739 from inducer/mypy-ci-fix
Browse files Browse the repository at this point in the history
Fix syntax error in with_course_api_auth type annotation
  • Loading branch information
inducer authored Oct 18, 2020
2 parents dad86b2 + 9239b2f commit 741d027
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions course/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -1287,8 +1287,7 @@ def auth_course_with_token(method, func, request,
return response


def with_course_api_auth(method):
# type: (Text,) -> Any
def with_course_api_auth(method: Text) -> Any:
def wrapper_with_method(func):
def wrapper(*args, **kwargs):
return auth_course_with_token(method, func, *args, **kwargs)
Expand Down

0 comments on commit 741d027

Please sign in to comment.