import bleach
a: Dict[str, bool | List[str]] = { # line 1
'a': True,
'b': ['text'],
'c': []
}
b = a.copy();
bleach.clean( # line 9
'string', tags=tag_names, attributes=b, strip=True)
Я попробовал аннотировать переменную A с DICT [Str, Bool | Список [str]] , как показано в вышеуказанном коде, но затем приведены ниже ошибки -
из строки 1
При запросе некоторых параметров в конечной точке:
duplicate_integration = select(Integration).where(
integration_create.provider_accounting_id == Integration.provider_accounting_id,
integration_create.provider_webshop_id ==...