From 6c1b510e5f5fa45f35d15782810d53db918ad8e1 Mon Sep 17 00:00:00 2001 From: bjhardcastle Date: Thu, 5 Oct 2023 21:43:46 -0700 Subject: [PATCH] Update final return hints for overloaded fns --- src/npc_lims/status/tracked_sessions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/npc_lims/status/tracked_sessions.py b/src/npc_lims/status/tracked_sessions.py index 7c23d01..839662c 100644 --- a/src/npc_lims/status/tracked_sessions.py +++ b/src/npc_lims/status/tracked_sessions.py @@ -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: @@ -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() @@ -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.