Fix for mypy errors

This commit is contained in:
Simon Willison 2025-11-23 15:53:19 -08:00
commit 52ea7d21f4

View file

@ -1704,18 +1704,18 @@ class Table(Queryable):
self,
columns: Dict[str, Any],
pk: Optional[Any] = DEFAULT,
foreign_keys: Optional[ForeignKeysType] = DEFAULT,
column_order: Optional[List[str]] = DEFAULT,
not_null: Optional[Iterable[str]] = DEFAULT,
defaults: Optional[Dict[str, Any]] = DEFAULT,
hash_id: Optional[str] = DEFAULT,
hash_id_columns: Optional[Iterable[str]] = DEFAULT,
extracts: Optional[Union[Dict[str, str], List[str]]] = DEFAULT,
foreign_keys: Union[Optional[ForeignKeysType], Default] = DEFAULT,
column_order: Union[Optional[List[str]], Default] = DEFAULT,
not_null: Union[Optional[Iterable[str]], Default] = DEFAULT,
defaults: Union[Optional[Dict[str, Any]], Default] = DEFAULT,
hash_id: Union[Optional[str], Default] = DEFAULT,
hash_id_columns: Union[Optional[Iterable[str]], Default] = DEFAULT,
extracts: Union[Optional[Union[Dict[str, str], List[str]]], Default] = DEFAULT,
if_not_exists: bool = False,
replace: bool = False,
ignore: bool = False,
transform: bool = False,
strict: bool = DEFAULT,
strict: Union[bool, Default] = DEFAULT,
) -> "Table":
"""
Create a table with the specified columns.