From f9d550fadcbec82a9dcb32c2071d8ee91db0cd3f Mon Sep 17 00:00:00 2001 From: rvztz Date: Tue, 24 Oct 2023 16:54:51 -0600 Subject: [PATCH] linting --- unstructured/ingest/cli/cmds/hubspot.py | 5 +++-- unstructured/ingest/connector/hubspot.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/unstructured/ingest/cli/cmds/hubspot.py b/unstructured/ingest/cli/cmds/hubspot.py index 0884697120..ba14b4ad50 100644 --- a/unstructured/ingest/cli/cmds/hubspot.py +++ b/unstructured/ingest/cli/cmds/hubspot.py @@ -1,10 +1,10 @@ -import logging import typing as t from dataclasses import dataclass import click -from unstructured.ingest.cli.interfaces import CliMixin, DelimitedString + from unstructured.ingest.cli.base.src import BaseSrcCmd +from unstructured.ingest.cli.interfaces import CliMixin, DelimitedString from unstructured.ingest.connector.hubspot import HubSpotObjectTypes from unstructured.ingest.interfaces import BaseConfig from unstructured.ingest.logger import logger @@ -69,6 +69,7 @@ def get_cli_options() -> t.List[click.Option]: ] return options + def get_base_src_cmd() -> BaseSrcCmd: cmd_cls = BaseSrcCmd( cmd_name="hubspot", diff --git a/unstructured/ingest/connector/hubspot.py b/unstructured/ingest/connector/hubspot.py index 670560ddd9..4b919ef776 100644 --- a/unstructured/ingest/connector/hubspot.py +++ b/unstructured/ingest/connector/hubspot.py @@ -134,7 +134,8 @@ def _fetch_obj(self, check_only=False): get_by_id_method = self._resolve_getter() try: response = get_by_id_method( - self.object_id, properties=([] if check_only else self.content_properties) + self.object_id, + properties=([] if check_only else self.content_properties), ) except NotFoundException as e: logger.error(e)