Skip to content

Commit

Permalink
refactor: remove any
Browse files Browse the repository at this point in the history
  • Loading branch information
liammoat committed May 16, 2024
1 parent 1adbd0a commit fae0701
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/backend/batch/batch_push_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.setLevel(level=os.environ.get("LOGLEVEL", "INFO").upper())


def _get_file_name_from_message(message_body: any) -> str:
def _get_file_name_from_message(message_body) -> str:
return message_body.get(
"filename",
"/".join(
Expand Down Expand Up @@ -44,7 +44,7 @@ def batch_push_results(msg: func.QueueMessage) -> None:
raise NotImplementedError(f"Unknown event type received: {event_type}")


def _process_document_created_event(message_body: any) -> None:
def _process_document_created_event(message_body) -> None:
env_helper: EnvHelper = EnvHelper()

blob_client = AzureBlobStorageClient()
Expand All @@ -55,7 +55,7 @@ def _process_document_created_event(message_body: any) -> None:
embedder.embed_file(file_sas, file_name)


def _process_document_deleted_event(message_body: any) -> None:
def _process_document_deleted_event(message_body) -> None:
env_helper: EnvHelper = EnvHelper()
search_handler = Search.get_search_handler(env_helper)

Expand Down

0 comments on commit fae0701

Please sign in to comment.