Skip to content

Commit 315a294

Browse files
committed
Fix OCS OpFuncType
1 parent f544a68 commit 315a294

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ ignore_missing_imports = True
2020
ignore_missing_imports = True
2121

2222
[mypy-spt3g.*]
23-
ignore_missing_imports = True
23+
ignore_missing_imports = True

ocs/ocs_agent.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
from typing import Tuple, Optional, Callable, Dict, Any, Union, TypeVar, Generator, Union
3535

3636

37-
OpReturnType = Union[Tuple[bool, str], Deferred[Tuple[bool, str]]]
38-
OpFuncType = Callable[["OpSession", Optional[Dict[str, Any]]], OpReturnType]
39-
InlineCallbackOpType = Generator[Any, Any, OpReturnType]
37+
OpFuncType = Union[
38+
Callable[["OpSession", Optional[Dict[str, Any]]], Tuple[bool, str]],
39+
Callable[["OpSession", Optional[Dict[str, Any]]], Deferred[Tuple[bool, str]]],
40+
]
41+
InlineCallbackOpType = Generator[Any, Any, Tuple[bool, str]]
4042

4143

4244
def init_site_agent(

0 commit comments

Comments
 (0)