diff --git a/airbyte/cloud/_api_util.py b/airbyte/cloud/_api_util.py index 3d538fd8..051eb952 100644 --- a/airbyte/cloud/_api_util.py +++ b/airbyte/cloud/_api_util.py @@ -302,17 +302,17 @@ def list_resources( if isinstance(name_filter, str): # Redefine name_filter as a function - def resource_filter_fn(resource: Any) -> bool: + def resource_filter_fn(resource: Any) -> bool: # noqa: ANN401 # Intentional use of Any return name_filter in resource.name elif name_filter is None: # "Always True" filter - def resource_filter_fn(resource: Any) -> bool: + def resource_filter_fn(resource: Any) -> bool: # noqa: ANN401 # Intentional use of Any _ = resource return True else: - def resource_filter_fn(resource: Any) -> bool: + def resource_filter_fn(resource: Any) -> bool: # noqa: ANN401 # Intentional use of Any return name_filter(resource.name) if resource_type == ResourceTypeEnum.CONNECTION: diff --git a/airbyte/cloud/workspaces.py b/airbyte/cloud/workspaces.py index 43d52d8b..0373426f 100644 --- a/airbyte/cloud/workspaces.py +++ b/airbyte/cloud/workspaces.py @@ -22,12 +22,12 @@ from airbyte.cloud.connectors import CloudConnector from airbyte.cloud.constants import ConnectorTypeEnum from airbyte.cloud.sync_results import SyncResult -from airbyte.sources.base import Source if TYPE_CHECKING: from airbyte._util.api_imports import DestinationResponse from airbyte.caches.base import CacheBase + from airbyte.sources.base import Source # Decorator for resolving connection objects