Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi297 committed Dec 2, 2024
1 parent 88d55fd commit b1fc031
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions airbyte_cdk/sources/streams/concurrent/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@
import functools
import logging
from abc import ABC, abstractmethod
from typing import Any, Callable, Iterable, List, Mapping, MutableMapping, Optional, Protocol, Tuple
from typing import (
Any,
Callable,
Iterable,
List,
Mapping,
MutableMapping,
Optional,
Protocol,
Tuple,
Union,
)

from airbyte_cdk.sources.connector_state_manager import ConnectorStateManager
from airbyte_cdk.sources.message import MessageRepository
Expand Down Expand Up @@ -175,7 +186,7 @@ def __init__(
self.start, self._concurrent_state = self._get_concurrent_state(stream_state)
self._lookback_window = lookback_window
self._slice_range = slice_range
self._most_recent_cursor_value_per_partition: MutableMapping[StreamSlice, Any] = {}
self._most_recent_cursor_value_per_partition: MutableMapping[Union[StreamSlice, Mapping[str, Any], None], Any] = {}
self._has_closed_at_least_one_slice = False
self._cursor_granularity = cursor_granularity
# Flag to track if the logger has been triggered (per stream)
Expand Down

0 comments on commit b1fc031

Please sign in to comment.