We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 536c6e1 commit 8882a1cCopy full SHA for 8882a1c
main.py
@@ -99,7 +99,7 @@ def __init__( # pylint: disable=R0913
99
self.famille: int = famille_recette
100
101
102
-def open_sql(database=DATABASE):
+def open_sql(database: str = DATABASE):
103
"""
104
Function used to open a connection to the database.
105
:return: the connector and the database cursor
@@ -187,7 +187,7 @@ def famille():
187
188
@route("/recettes/<id_request>")
189
@view("template/recette.tpl")
190
-def recettes(id_request): # pylint: disable=R0914
+def recettes(id_request: int): # pylint: disable=R0914
191
192
Function used to display a recipe page.
193
0 commit comments