Skip to content

Commit

Permalink
Add type hints to function
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Nov 6, 2023
1 parent 5cb05e6 commit f9d0ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandiapi/api/views/dandiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def users(self, request, dandiset__pk):
serializer = UserSerializer(data=request.data, many=True)
serializer.is_valid(raise_exception=True)

def get_user_or_400(username):
def get_user_or_400(username: str) -> User:
try:
return (
SocialAccount.objects.select_related('user')
Expand Down

0 comments on commit f9d0ea3

Please sign in to comment.