mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-13 20:14:24 +02:00
Compatible with latest black
This commit is contained in:
parent
753a53eede
commit
b3942fb34f
2 changed files with 3 additions and 10 deletions
|
|
@ -237,37 +237,30 @@ if pd:
|
|||
|
||||
class AlterError(Exception):
|
||||
"Error altering table"
|
||||
pass
|
||||
|
||||
|
||||
class NoObviousTable(Exception):
|
||||
"Could not tell which table this operation refers to"
|
||||
pass
|
||||
|
||||
|
||||
class NoTable(Exception):
|
||||
"Specified table does not exist"
|
||||
pass
|
||||
|
||||
|
||||
class BadPrimaryKey(Exception):
|
||||
"Table does not have a single obvious primary key"
|
||||
pass
|
||||
|
||||
|
||||
class NotFoundError(Exception):
|
||||
"Record not found"
|
||||
pass
|
||||
|
||||
|
||||
class PrimaryKeyRequired(Exception):
|
||||
"Primary key needs to be specified"
|
||||
pass
|
||||
|
||||
|
||||
class InvalidColumns(Exception):
|
||||
"Specified columns do not exist"
|
||||
pass
|
||||
|
||||
|
||||
class DescIndex(str):
|
||||
|
|
@ -3852,7 +3845,7 @@ def jsonify_if_needed(value):
|
|||
|
||||
|
||||
def resolve_extracts(
|
||||
extracts: Optional[Union[Dict[str, str], List[str], Tuple[str]]]
|
||||
extracts: Optional[Union[Dict[str, str], List[str], Tuple[str]]],
|
||||
) -> dict:
|
||||
if extracts is None:
|
||||
extracts = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue