Skip to content

Commit

Permalink
fix(types): make callable worker's BaseModel not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
B4rtware committed Jul 16, 2020
1 parent 3d91b99 commit 593377e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions morpho/types.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from enum import Enum

# from morpho.rest.models import ServiceInfo
from typing import Callable, Dict, NewType, Optional
from typing import Callable, Dict, NewType
from pydantic import BaseModel

# if TYPE_CHECKING:
# # FIXME: change to type checking import and wait for issue answer
# from morpho.config import BaseConfig

# fmt: off
Worker = Callable[[str, Optional[BaseModel]], str]
Worker = Callable[[str, BaseModel], str]
# fmt: on

# must resides here because otherwise circular import
Expand Down

0 comments on commit 593377e

Please sign in to comment.