Skip to content

Commit

Permalink
Update final return hints for overloaded fns
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Oct 6, 2023
1 parent 8be41bc commit 6c1b510
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/npc_lims/status/tracked_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_session_info(session: str | npc_session.SessionRecord) -> SessionInfo:
...


def get_session_info(session: str | npc_session.SessionRecord | None = None):
def get_session_info(session: str | npc_session.SessionRecord | None = None) -> tuple[SessionInfo, ...] | SessionInfo:
"""Quickly get a sequence of all tracked sessions.
Each object in the sequence has info about one session:
Expand Down Expand Up @@ -139,7 +139,7 @@ def get_session_issues(session: str | npc_session.SessionRecord) -> list[str]:
...


def get_session_issues(session: str | npc_session.SessionRecord | None = None):
def get_session_issues(session: str | npc_session.SessionRecord | None = None) -> list[str] | list | dict[npc_session.SessionRecord, list[str]]:
"""Get a dictionary of all sessions with issues mapped to their issue url.
>>> issues = get_session_issues()
Expand Down Expand Up @@ -174,7 +174,7 @@ def get_session_kwargs(session: str | npc_session.SessionRecord) -> dict[str, An
...


def get_session_kwargs(session: str | npc_session.SessionRecord | None = None):
def get_session_kwargs(session: str | npc_session.SessionRecord | None = None) -> dict[str, str] | dict | dict[npc_session.SessionRecord, dict[str, str]]:
"""Get a dictionary of all sessions mapped to their config kwargs. kwargs will
be an empty dict if no kwargs have been specified.
Expand Down

0 comments on commit 6c1b510

Please sign in to comment.