dfdsf
This commit is contained in:
@@ -40,6 +40,17 @@ _PROVIDERS: Dict[str, Type[Provider]] = {
|
||||
}
|
||||
|
||||
|
||||
def is_known_provider_name(name: str) -> bool:
|
||||
"""Return True if `name` matches a registered provider key.
|
||||
|
||||
This is intentionally cheap (no imports/instantiation) so callers can
|
||||
probe UI strings (table names, store names, etc.) without triggering
|
||||
noisy 'Unknown provider' logs.
|
||||
"""
|
||||
|
||||
return (name or "").strip().lower() in _PROVIDERS
|
||||
|
||||
|
||||
def _supports_search(provider: Provider) -> bool:
|
||||
return provider.__class__.search is not Provider.search
|
||||
|
||||
|
||||
Reference in New Issue
Block a user