Skip to content

Commit

Permalink
Docs: Correct typehint from format_process_state
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Jun 18, 2024
1 parent cd0f9ac commit 70494d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aiida/tools/query/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from __future__ import annotations

from datetime import datetime
from typing import Union

from aiida.common import timezone
from aiida.common.utils import str_timedelta
Expand Down Expand Up @@ -54,7 +55,7 @@ def format_state(process_state: str, paused: bool | None = None, exit_status: in
return f'{symbol} {format_process_state(process_state)}'


def format_process_state(process_state: str) -> str:
def format_process_state(process_state: Union[str, None]) -> str:
"""Return a string formatted representation of the given process state.
:param process_state: The process state.
Expand Down

0 comments on commit 70494d5

Please sign in to comment.