From b87a1d1317b94f8337fc2327d9c2b3c72d2a375f Mon Sep 17 00:00:00 2001 From: ToothyDev Date: Thu, 11 Apr 2024 19:16:36 +0200 Subject: [PATCH] Add typehint to selector --- utilities/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/database.py b/utilities/database.py index e3f06ea..227a82f 100644 --- a/utilities/database.py +++ b/utilities/database.py @@ -16,7 +16,7 @@ async def mysql_login(): database=database['Database']) -async def selector(query: str, variables: list): +async def selector(query: str, variables: list) -> tuple: """ This function is used to select data from the database. It is used for SELECT queries. :param query: The query to execute. Use %s for variables. Example: "SELECT * FROM table WHERE column = %s"