1
0
forked from ScoDoc/ScoDoc

type hint

This commit is contained in:
Emmanuel Viennet 2021-09-23 08:15:54 +02:00
parent eded2fffe9
commit 865192bc0d
2 changed files with 3 additions and 3 deletions

View File

@ -436,7 +436,7 @@ def formsemestre_status_menubar(sem):
return "\n".join(H) return "\n".join(H)
def retreive_formsemestre_from_request(): def retreive_formsemestre_from_request() -> int:
"""Cherche si on a de quoi déduire le semestre affiché à partir des """Cherche si on a de quoi déduire le semestre affiché à partir des
arguments de la requête: arguments de la requête:
formsemestre_id ou moduleimpl ou evaluation ou group_id ou partition_id formsemestre_id ou moduleimpl ou evaluation ou group_id ou partition_id
@ -482,7 +482,7 @@ def retreive_formsemestre_from_request():
else: else:
return None # no current formsemestre return None # no current formsemestre
return formsemestre_id return int(formsemestre_id)
# Element HTML decrivant un semestre (barre de menu et infos) # Element HTML decrivant un semestre (barre de menu et infos)

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.0.34" SCOVERSION = "9.0.35"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"