df
This commit is contained in:
@@ -101,20 +101,7 @@ def _required_keys_for(store_cls: Type[BaseStore]) -> list[str]:
|
||||
return keys
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Legacy __new__.keys support
|
||||
keys = getattr(store_cls.__new__, "keys", None)
|
||||
if keys is None:
|
||||
return []
|
||||
if isinstance(keys, dict):
|
||||
return [str(k) for k in keys.keys()]
|
||||
if isinstance(keys, (list, tuple, set, frozenset)):
|
||||
return [str(k) for k in keys]
|
||||
if isinstance(keys, str):
|
||||
return [keys]
|
||||
raise TypeError(
|
||||
f"Unsupported __new__.keys type for {store_cls.__name__}: {type(keys)}"
|
||||
)
|
||||
return []
|
||||
|
||||
|
||||
# Store type names that have been converted to providers-only.
|
||||
|
||||
Reference in New Issue
Block a user