Skip to content

Commit eaf98ef

Browse files
author
Hanson Wei
committed
Altered line length to satisfy pre-commit conditions
1 parent 97d7c52 commit eaf98ef

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

gs/backend/data/tables/main_tables.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,18 @@ class MainCommand(BaseSQLModel, table=True):
4444
@model_validator(mode="after")
4545
def validate_params_format(self) -> "MainCommand":
4646
"""
47-
Returns self if params and format are both None or have the same number of comma-separated values.
48-
If one of params or format is missing, or the numbers of comma-separated values do not match, raise DatabaseError.
47+
Returns self if params and format are both None or have the same number
48+
of comma-separated values. If one of params or format is missing, or the
49+
numbers of comma-separated values do not match, raise DatabaseError.
4950
"""
5051
if self.format is None and self.params is None:
5152
return self
5253

53-
elif self.params is not None and self.format is not None and self.params.count(",") == self.format.count(","):
54+
elif (
55+
self.params is not None
56+
and self.format is not None
57+
and self.params.count(",") == self.format.count(",")
58+
):
5459
return self
5560

5661
if self.params is None:

0 commit comments

Comments
 (0)