Skip to content

Commit

Permalink
Future type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Dec 2, 2024
1 parent d0e4e73 commit e3c2ae8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/plumpy/base/state_machine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""The state machine for processes"""

from __future__ import annotations

import enum
import functools
import inspect
Expand Down
4 changes: 3 additions & 1 deletion src/plumpy/process_comms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""Module for process level communication functions and classes"""

from __future__ import annotations

import asyncio
import logging
from typing import TYPE_CHECKING, Any, Dict, Optional, Sequence, Union, cast
Expand Down Expand Up @@ -42,7 +44,7 @@ class Intent:
STATUS: str = 'status'


MessageType = dict[str, Any]
MessageType = Dict[str, Any]

# PAUSE_MSG: MessageType = {INTENT_KEY: Intent.PAUSE, MESSAGE_KEY: None}
# PLAY_MSG: MessageType = {INTENT_KEY: Intent.PLAY, MESSAGE_KEY: None}
Expand Down
2 changes: 2 additions & 0 deletions src/plumpy/process_states.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import annotations

import sys
import traceback
from enum import Enum
Expand Down

0 comments on commit e3c2ae8

Please sign in to comment.