File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
eventsourcingdb_client_python/handlers Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 22
33from eventsourcingdb_client_python .errors .invalid_parameter_error import InvalidParameterError
44
5+ # TODO: id must be a string.
56@dataclass
67class LowerBound :
78 id : int
89 type : str
910
1011 def __post_init__ (self ):
11- if self .type not in {" inclusive" , " exclusive" }:
12+ if self .type not in {' inclusive' , ' exclusive' }:
1213 raise InvalidParameterError (
1314 parameter_name = "LowerBound" ,
14- reason = " type must be either ' inclusive' or ' exclusive'"
15+ reason = ' type must be either " inclusive" or " exclusive"'
1516 )
1617
1718 if self .id < 0 :
1819 raise InvalidParameterError (
19- parameter_name = " LowerBound" ,
20- reason = " id must be non-negative"
20+ parameter_name = ' LowerBound' ,
21+ reason = ' id must be non-negative'
2122 )
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ class UpperBound:
99 type : str
1010
1111 def __post_init__ (self ):
12- if self .type not in {" inclusive" , " exclusive" }:
12+ if self .type not in {' inclusive' , ' exclusive' }:
1313 raise InvalidParameterError (
14- parameter_name = " UpperBound" ,
15- reason = " type must be either ' inclusive' or ' exclusive'"
14+ parameter_name = ' UpperBound' ,
15+ reason = ' type must be either " inclusive" or " exclusive"'
1616 )
You can’t perform that action at this time.
0 commit comments