Skip to content

Commit

Permalink
Add typehint to selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ToothyDev committed Apr 11, 2024
1 parent 97780aa commit b87a1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b87a1d1

Please sign in to comment.