Skip to content

Commit

Permalink
fix ruff lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed May 1, 2024
1 parent 5edc8e0 commit cfc148a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions airbyte/cloud/_api_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion airbyte/cloud/workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfc148a

Please sign in to comment.