Skip to content

Commit 5805397

Browse files
Revert "Fixes type linter errors"
Signed-off-by: Elena Kolevska <[email protected]>
1 parent 963a673 commit 5805397

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dapr/actor/runtime/state_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def ttl_in_seconds(self) -> Optional[int]:
5656
return self._ttl_in_seconds
5757

5858
@ttl_in_seconds.setter
59-
def ttl_in_seconds(self, new_ttl_in_seconds: Optional[int]) -> None:
59+
def ttl_in_seconds(self, new_ttl_in_seconds: int) -> None:
6060
self._ttl_in_seconds = new_ttl_in_seconds
6161

6262

dapr/clients/grpc/_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __init__(
109109
super(InvokeMethodRequest, self).__init__(())
110110

111111
self._content_type = content_type
112-
self._http_verb: Optional[str] = None
112+
self._http_verb = None
113113
self._http_querystring: Dict[str, str] = {}
114114

115115
self.set_data(data)
@@ -127,7 +127,7 @@ def http_verb(self) -> Optional[str]:
127127
@http_verb.setter
128128
def http_verb(self, val: Optional[str]) -> None:
129129
"""Sets HTTP method to Dapr invocation request."""
130-
if val is not None and val not in self.HTTP_METHODS:
130+
if val not in self.HTTP_METHODS:
131131
raise ValueError(f'{val} is the invalid HTTP verb.')
132132
self._http_verb = val
133133

0 commit comments

Comments
 (0)