Skip to content

Commit

Permalink
fix: syntax Union
Browse files Browse the repository at this point in the history
  • Loading branch information
herve.le-bars committed Apr 3, 2024
1 parent 576cbd6 commit c088c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bloom/infra/repositories/repository_vessel.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(
) -> Callable[..., AbstractContextManager]:
self.session_factory = session_factory

def get_vessel_by_id(self, session: Session, vessel_id: int) -> Union[Vessel | None]:
def get_vessel_by_id(self, session: Session, vessel_id: int) -> Union[Vessel, None]:
return session.get(sql_model.Vessel, vessel_id)

def get_vessels_list(self, session: Session) -> list[Vessel]:
Expand Down

0 comments on commit c088c14

Please sign in to comment.