mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +02:00
chore: linting
This commit is contained in:
parent
0a012dbc79
commit
ce952d2ad1
127 changed files with 821 additions and 517 deletions
|
|
@ -1,2 +1 @@
|
|||
"""Base gateway interfaces."""
|
||||
|
||||
|
|
|
|||
|
|
@ -62,9 +62,10 @@ class BasePlatformAdapter(ABC):
|
|||
async def validate_credentials(self) -> dict[str, Any]:
|
||||
"""Validate configured credentials and return account metadata."""
|
||||
|
||||
async def fetch_updates(self, *, offset: int | None) -> AsyncIterator[dict[str, Any]]:
|
||||
async def fetch_updates(
|
||||
self, *, offset: int | None
|
||||
) -> AsyncIterator[dict[str, Any]]:
|
||||
"""Yield provider updates for long-polling adapters."""
|
||||
if False:
|
||||
yield {} # pragma: no cover
|
||||
raise NotImplementedError("This adapter does not support long-polling")
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ def hash_external_id(value: str | int | None) -> str | None:
|
|||
if not normalized:
|
||||
return None
|
||||
return hashlib.sha256(normalized.encode("utf-8")).hexdigest()
|
||||
|
||||
|
|
|
|||
|
|
@ -25,4 +25,3 @@ class BaseStreamTranslator(ABC):
|
|||
@abstractmethod
|
||||
async def translate(self, events: AsyncIterator[GatewayStreamEvent]) -> None:
|
||||
"""Consume agent stream events and emit platform messages."""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue