Skip to content

Commit c0f571c

Browse files
committed
Some changes for most recent Black
1 parent f57b42f commit c0f571c

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

sqlite_utils/db.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,37 +237,30 @@ class Default:
237237

238238
class AlterError(Exception):
239239
"Error altering table"
240-
pass
241240

242241

243242
class NoObviousTable(Exception):
244243
"Could not tell which table this operation refers to"
245-
pass
246244

247245

248246
class NoTable(Exception):
249247
"Specified table does not exist"
250-
pass
251248

252249

253250
class BadPrimaryKey(Exception):
254251
"Table does not have a single obvious primary key"
255-
pass
256252

257253

258254
class NotFoundError(Exception):
259255
"Record not found"
260-
pass
261256

262257

263258
class PrimaryKeyRequired(Exception):
264259
"Primary key needs to be specified"
265-
pass
266260

267261

268262
class InvalidColumns(Exception):
269263
"Specified columns do not exist"
270-
pass
271264

272265

273266
class DescIndex(str):
@@ -3852,7 +3845,7 @@ def jsonify_if_needed(value):
38523845

38533846

38543847
def resolve_extracts(
3855-
extracts: Optional[Union[Dict[str, str], List[str], Tuple[str]]]
3848+
extracts: Optional[Union[Dict[str, str], List[str], Tuple[str]]],
38563849
) -> dict:
38573850
if extracts is None:
38583851
extracts = {}

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ def test_query_json_with_json_cols(db_path):
916916

917917
@pytest.mark.parametrize(
918918
"content,is_binary",
919-
[(b"\x00\x0Fbinary", True), ("this is text", False), (1, False), (1.5, False)],
919+
[(b"\x00\x0fbinary", True), ("this is text", False), (1, False), (1.5, False)],
920920
)
921921
def test_query_raw(db_path, content, is_binary):
922922
Database(db_path)["files"].insert({"content": content})
@@ -931,7 +931,7 @@ def test_query_raw(db_path, content, is_binary):
931931

932932
@pytest.mark.parametrize(
933933
"content,is_binary",
934-
[(b"\x00\x0Fbinary", True), ("this is text", False), (1, False), (1.5, False)],
934+
[(b"\x00\x0fbinary", True), ("this is text", False), (1, False), (1.5, False)],
935935
)
936936
def test_query_raw_lines(db_path, content, is_binary):
937937
Database(db_path)["files"].insert_all({"content": content} for _ in range(3))

0 commit comments

Comments
 (0)