Skip to content

Commit

Permalink
correcting cosmosdb trigger types
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvictoria committed Nov 18, 2024
1 parent 48a5758 commit 89694c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions azure/functions/decorators/cosmosdb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from datetime import time
from typing import Optional, Union

from azure.functions.decorators.constants import COSMOS_DB, COSMOS_DB_TRIGGER
Expand Down Expand Up @@ -189,8 +188,8 @@ def __init__(self,
lease_expiration_interval: Optional[int] = None,
lease_renew_interval: Optional[int] = None,
max_items_per_invocation: Optional[int] = None,
start_from_beginning: Optional[time] = None,
start_from_time: Optional[time] = None,
start_from_beginning: Optional[bool] = None,
start_from_time: Optional[str] = None,
preferred_locations: Optional[str] = None,
data_type: Optional[Union[DataType]] = None,
**kwargs):
Expand Down
5 changes: 2 additions & 3 deletions azure/functions/decorators/function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import json
import logging
from abc import ABC
from datetime import time
from typing import Any, Callable, Dict, List, Optional, Union, \
Iterable

Expand Down Expand Up @@ -1031,8 +1030,8 @@ def cosmos_db_trigger(self,
lease_expiration_interval: Optional[int] = None,
lease_renew_interval: Optional[int] = None,
max_items_per_invocation: Optional[int] = None,
start_from_beginning: Optional[time] = None,
start_from_time: Optional[time] = None,
start_from_beginning: Optional[bool] = None,
start_from_time: Optional[str] = None,
preferred_locations: Optional[str] = None,
data_type: Optional[
Union[DataType, str]] = None,
Expand Down

0 comments on commit 89694c6

Please sign in to comment.