Skip to content

Commit 24f07d3

Browse files
committed
feat: update " and ' in lower_bound.py and upper_bound.py
1 parent 8806584 commit 24f07d3

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

eventsourcingdb_client_python/handlers/lower_bound.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22

33
from eventsourcingdb_client_python.errors.invalid_parameter_error import InvalidParameterError
44

5+
# TODO: id must be a string.
56
@dataclass
67
class 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
)

eventsourcingdb_client_python/handlers/upper_bound.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)