Skip to content

Commit 0f9b19a

Browse files
committed
Linting
1 parent bea1954 commit 0f9b19a

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

durabletask/entities/durable_entity.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ def _initialize_entity_context(self, context: EntityContext):
1111
self.entity_context = context
1212

1313
@overload
14-
def get_state(self, intended_type: Type[TState], default: TState) -> TState: ...
14+
def get_state(self, intended_type: Type[TState], default: TState) -> TState:
15+
...
1516

1617
@overload
17-
def get_state(self, intended_type: Type[TState]) -> Optional[TState]: ...
18+
def get_state(self, intended_type: Type[TState]) -> Optional[TState]:
19+
...
1820

1921
@overload
20-
def get_state(self, intended_type: None = None, default: Any = None) -> Any: ...
22+
def get_state(self, intended_type: None = None, default: Any = None) -> Any:
23+
...
2124

2225
def get_state(self, intended_type: Optional[Type[TState]] = None, default: Optional[TState] = None) -> Optional[TState] | Any:
2326
return self.entity_context.get_state(intended_type, default)

durabletask/internal/entity_state_shim.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ def __init__(self, start_state):
1414
self._actions_checkpoint_state: int = 0
1515

1616
@overload
17-
def get_state(self, intended_type: Type[TState], default: TState) -> TState: ...
17+
def get_state(self, intended_type: Type[TState], default: TState) -> TState:
18+
...
1819

1920
@overload
20-
def get_state(self, intended_type: Type[TState]) -> Optional[TState]: ...
21+
def get_state(self, intended_type: Type[TState]) -> Optional[TState]:
22+
...
2123

2224
@overload
23-
def get_state(self, intended_type: None = None, default: Any = None) -> Any: ...
25+
def get_state(self, intended_type: None = None, default: Any = None) -> Any:
26+
...
2427

2528
def get_state(self, intended_type: Optional[Type[TState]] = None, default: Optional[TState] = None) -> Optional[TState] | Any:
2629
if self._current_state is None and default is not None:

durabletask/task.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,13 +549,16 @@ def operation(self) -> str:
549549
return self._operation
550550

551551
@overload
552-
def get_state(self, intended_type: Type[TState], default: TState) -> TState: ...
552+
def get_state(self, intended_type: Type[TState], default: TState) -> TState:
553+
...
553554

554555
@overload
555-
def get_state(self, intended_type: Type[TState]) -> Optional[TState]: ...
556+
def get_state(self, intended_type: Type[TState]) -> Optional[TState]:
557+
...
556558

557559
@overload
558-
def get_state(self, intended_type: None = None, default: Any = None) -> Any: ...
560+
def get_state(self, intended_type: None = None, default: Any = None) -> Any:
561+
...
559562

560563
def get_state(self, intended_type: Optional[Type[TState]] = None, default: Optional[TState] = None) -> Optional[TState] | Any:
561564
return self._state.get_state(intended_type, default)

0 commit comments

Comments
 (0)