Skip to content

Commit

Permalink
Fix unexpected error in the literalstring challenge, fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
laike9m committed Jan 2, 2024
1 parent 59d0cb4 commit c6ca3a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion challenges/intermediate-literalstring/question.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
You're writing a web backend.
Annotate a function `execute_query` which runs SQL, but also can prevent SQL injection attacks.
NOTE: You don't need to implement `execute_query`
"""

from typing import Iterable


def execute_query(sql, parameters: Iterable[str] = ...):
"""No need to implement it"""
...


## End of your code ##
Expand Down
2 changes: 2 additions & 0 deletions challenges/intermediate-literalstring/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
You're writing a web backend.
Annotate a function `execute_query` which runs SQL, but also can prevent SQL injection attacks.
NOTE: You don't need to implement `execute_query`
"""

from typing import LiteralString, Iterable
Expand Down

0 comments on commit c6ca3a1

Please sign in to comment.