Skip to content

Commit 5c4b8da

Browse files
committed
Reformat code
1 parent 3a83c72 commit 5c4b8da

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pymongosql/result_set.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ def _build_description(self) -> None:
6969
if not self._execution_plan.projection_stage:
7070
# No projection specified, build description from column names if available
7171
if self._column_names:
72-
self._description = [
73-
(col_name, str, None, None, None, None, None) for col_name in self._column_names
74-
]
72+
self._description = [(col_name, str, None, None, None, None, None) for col_name in self._column_names]
7573
else:
7674
# Will be built dynamically when columns are established
7775
self._description = None

tests/test_cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def test_description_projection(self, conn):
282282
assert "email" in col_names
283283
for d in desc:
284284
if d[0] in ("name", "email"):
285-
assert (isinstance(d[1], type) or d[1] is None)
285+
assert isinstance(d[1], type) or d[1] is None
286286

287287
def test_cursor_pagination_fetchmany_triggers_getmore(self, conn, monkeypatch):
288288
"""Test that cursor.fetchmany triggers getMore when executing SQL that yields a paginated cursor

0 commit comments

Comments
 (0)