Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
beucismis committed Feb 27, 2022
1 parent 80e6189 commit 4167927
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easynewsletter/database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sqlite3
from typing import List
from .subscriber import Subscriber


Expand Down Expand Up @@ -57,7 +58,7 @@ def insert(self, subscribers: list) -> None:
subscribers,
)

def delete(self, subscribers: list[Subscriber]) -> None:
def delete(self, subscribers: List[Subscriber]) -> None:
for s in subscribers:
self.cursor.execute(f"DELETE FROM {self.table_name} WHERE id=?", (s.id,))

Expand Down

0 comments on commit 4167927

Please sign in to comment.