Skip to content

Commit

Permalink
feat: add src/netius/adapters/base.pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-gomes committed Dec 21, 2023
1 parent b33d943 commit 9f76840
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/netius/adapters/base.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import netius as netius

import typing

class BaseAdapter:
def set(self, value: typing.Any, owner: str = ...) -> None: ...
def get(self, key: str) -> str | netius.legacy.StringIO: ...
def get_file(self, key: str, mode: str = ...) -> netius.legacy.StringIO: ...
def delete(self, key: str, owner: str = ...) -> None: ...
def append(self, key:str , value: typing.Any) -> None: ...
def truncate(self, key:str , count: int) -> None: ...
def size(self, key:str ) -> int: ...
def sizes(self, owner: str | None = ...) -> list[int]: ...
def total(self, owner: str | None = ...) -> int: ...
def reserve(self, owner: str = ...) -> None: ...
def count(self, owner: str | None = ...) -> int: ...
def list(self, owner: str | None = ...) -> tuple[()]: ...
def generate(self) -> str: ...

0 comments on commit 9f76840

Please sign in to comment.