mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-14 04:24:26 +02:00
Format with Black, remove unused imports, fix implicitly concatenated string
This commit is contained in:
parent
15f15933b1
commit
9c9fdc3790
11 changed files with 95 additions and 112 deletions
|
|
@ -9,7 +9,7 @@ import json
|
|||
import os
|
||||
import sys
|
||||
from . import recipes
|
||||
from typing import Dict, cast, BinaryIO, Optional, Tuple, Type
|
||||
from typing import cast, BinaryIO, Optional
|
||||
from collections.abc import Iterable
|
||||
|
||||
import click
|
||||
|
|
@ -226,9 +226,7 @@ def _extra_key_strategy(
|
|||
yield row
|
||||
elif not extras_key:
|
||||
extras = row.pop(None) # type: ignore
|
||||
raise RowError(
|
||||
f"Row {row} contained these extra values: {extras}"
|
||||
)
|
||||
raise RowError(f"Row {row} contained these extra values: {extras}")
|
||||
else:
|
||||
row[extras_key] = row.pop(None) # type: ignore
|
||||
yield row
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue