Skip to content

Commit

Permalink
Fix OCS OpFuncType
Browse files Browse the repository at this point in the history
  • Loading branch information
jlashner committed Sep 16, 2024
1 parent f544a68 commit 315a294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ ignore_missing_imports = True
ignore_missing_imports = True

[mypy-spt3g.*]
ignore_missing_imports = True
ignore_missing_imports = True
8 changes: 5 additions & 3 deletions ocs/ocs_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
from typing import Tuple, Optional, Callable, Dict, Any, Union, TypeVar, Generator, Union


OpReturnType = Union[Tuple[bool, str], Deferred[Tuple[bool, str]]]
OpFuncType = Callable[["OpSession", Optional[Dict[str, Any]]], OpReturnType]
InlineCallbackOpType = Generator[Any, Any, OpReturnType]
OpFuncType = Union[
Callable[["OpSession", Optional[Dict[str, Any]]], Tuple[bool, str]],
Callable[["OpSession", Optional[Dict[str, Any]]], Deferred[Tuple[bool, str]]],
]
InlineCallbackOpType = Generator[Any, Any, Tuple[bool, str]]


def init_site_agent(
Expand Down

0 comments on commit 315a294

Please sign in to comment.