Skip to content

Commit be0f53d

Browse files
committed
k
1 parent 1a31f1e commit be0f53d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/danswer/connectors/cross_connector_utils/miscellaneous_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
from danswer.utils.text_processing import is_valid_email
1212

1313

14+
T = TypeVar("T")
15+
U = TypeVar("U")
16+
17+
1418
def datetime_to_utc(dt: datetime) -> datetime:
1519
if dt.tzinfo is None or dt.tzinfo.utcoffset(dt) is None:
1620
dt = dt.replace(tzinfo=timezone.utc)
@@ -49,10 +53,6 @@ def get_experts_stores_representations(
4953
return [owner for owner in reps if owner is not None]
5054

5155

52-
T = TypeVar("T")
53-
U = TypeVar("U")
54-
55-
5656
def process_in_batches(
5757
objects: list[T], process_function: Callable[[T], U], batch_size: int
5858
) -> Iterator[list[U]]:

0 commit comments

Comments
 (0)