Skip to content

Commit 52ea7d2

Browse files
committed
Fix for mypy errors
1 parent 96fab69 commit 52ea7d2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sqlite_utils/db.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,18 +1704,18 @@ def create(
17041704
self,
17051705
columns: Dict[str, Any],
17061706
pk: Optional[Any] = DEFAULT,
1707-
foreign_keys: Optional[ForeignKeysType] = DEFAULT,
1708-
column_order: Optional[List[str]] = DEFAULT,
1709-
not_null: Optional[Iterable[str]] = DEFAULT,
1710-
defaults: Optional[Dict[str, Any]] = DEFAULT,
1711-
hash_id: Optional[str] = DEFAULT,
1712-
hash_id_columns: Optional[Iterable[str]] = DEFAULT,
1713-
extracts: Optional[Union[Dict[str, str], List[str]]] = DEFAULT,
1707+
foreign_keys: Union[Optional[ForeignKeysType], Default] = DEFAULT,
1708+
column_order: Union[Optional[List[str]], Default] = DEFAULT,
1709+
not_null: Union[Optional[Iterable[str]], Default] = DEFAULT,
1710+
defaults: Union[Optional[Dict[str, Any]], Default] = DEFAULT,
1711+
hash_id: Union[Optional[str], Default] = DEFAULT,
1712+
hash_id_columns: Union[Optional[Iterable[str]], Default] = DEFAULT,
1713+
extracts: Union[Optional[Union[Dict[str, str], List[str]]], Default] = DEFAULT,
17141714
if_not_exists: bool = False,
17151715
replace: bool = False,
17161716
ignore: bool = False,
17171717
transform: bool = False,
1718-
strict: bool = DEFAULT,
1718+
strict: Union[bool, Default] = DEFAULT,
17191719
) -> "Table":
17201720
"""
17211721
Create a table with the specified columns.

0 commit comments

Comments
 (0)