Python 3 style type hinting

This commit is contained in:
Raphael Michel
2014-10-21 10:15:42 +02:00
parent c604d45488
commit da24aa3f6e
9 changed files with 47 additions and 35 deletions

View File

@@ -62,7 +62,7 @@ class LocaleMiddleware(BaseLocaleMiddleware):
return response
def get_language_from_request(request):
def get_language_from_request(request) -> str:
"""
Analyzes the request to find what language the user wants the system to
show. Only languages listed in settings.LANGUAGES are taken into account.