File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 : int ) -> None :
59+ def ttl_in_seconds (self , new_ttl_in_seconds : Optional [ int ] ) -> None :
6060 self ._ttl_in_seconds = new_ttl_in_seconds
6161
6262
Original file line number Diff line number Diff line change @@ -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 not in self .HTTP_METHODS :
130+ if val is not None and val not in self .HTTP_METHODS :
131131 raise ValueError (f'{ val } is the invalid HTTP verb.' )
132132 self ._http_verb = val
133133
You can’t perform that action at this time.
0 commit comments