Skip to content

Commit 8882a1c

Browse files
authored
🔧 Changement mineur Python (#86)
1 parent 536c6e1 commit 8882a1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def __init__( # pylint: disable=R0913
9999
self.famille: int = famille_recette
100100

101101

102-
def open_sql(database=DATABASE):
102+
def open_sql(database: str = DATABASE):
103103
"""
104104
Function used to open a connection to the database.
105105
:return: the connector and the database cursor
@@ -187,7 +187,7 @@ def famille():
187187

188188
@route("/recettes/<id_request>")
189189
@view("template/recette.tpl")
190-
def recettes(id_request): # pylint: disable=R0914
190+
def recettes(id_request: int): # pylint: disable=R0914
191191
"""
192192
Function used to display a recipe page.
193193
"""

0 commit comments

Comments
 (0)