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, self,
columns: Dict[str, Any], columns: Dict[str, Any],
pk: Optional[Any] = DEFAULT, pk: Optional[Any] = DEFAULT,
foreign_keys: Optional[ForeignKeysType] = DEFAULT, foreign_keys: Union[Optional[ForeignKeysType], Default] = DEFAULT,
column_order: Optional[List[str]] = DEFAULT, column_order: Union[Optional[List[str]], Default] = DEFAULT,
not_null: Optional[Iterable[str]] = DEFAULT, not_null: Union[Optional[Iterable[str]], Default] = DEFAULT,
defaults: Optional[Dict[str, Any]] = DEFAULT, defaults: Union[Optional[Dict[str, Any]], Default] = DEFAULT,
hash_id: Optional[str] = DEFAULT, hash_id: Union[Optional[str], Default] = DEFAULT,
hash_id_columns: Optional[Iterable[str]] = DEFAULT, hash_id_columns: Union[Optional[Iterable[str]], Default] = DEFAULT,
extracts: Optional[Union[Dict[str, str], List[str]]] = DEFAULT, extracts: Union[Optional[Union[Dict[str, str], List[str]]], Default] = DEFAULT,
if_not_exists: bool = False, if_not_exists: bool = False,
replace: bool = False, replace: bool = False,
ignore: bool = False, ignore: bool = False,
transform: bool = False, transform: bool = False,
strict: bool = DEFAULT, strict: Union[bool, Default] = DEFAULT,
) -> "Table": ) -> "Table":
""" """
Create a table with the specified columns. Create a table with the specified columns.