Skip to content

Commit

Permalink
solution3
Browse files Browse the repository at this point in the history
  • Loading branch information
flatchers committed Jul 19, 2023
1 parent caefa2c commit 5536418
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from models import Actor

from typing import List


class ActorManager:
def __init__(self) -> None:
Expand All @@ -14,7 +16,7 @@ def create(self, first_name_: str, last_name_: str) -> None:
)
self._connection.commit()

def all(self) -> list:
def all(self) -> List[Actor]:
actors_data = self._connection.execute(
"SELECT * FROM actors"
)
Expand Down

0 comments on commit 5536418

Please sign in to comment.