Skip to content

Commit

Permalink
review src/typings/netius/adapters/memory.pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-gomes committed Dec 14, 2023
1 parent 1e0b15a commit 7e425b1
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/typings/netius/adapters/memory.pyi
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import netius as netius
import netius.adapters.base
import netius.adapters.base as base
from _typeshed import Incomplete

__version__: str
__revision__: str
__date__: str
from typing import Any

class MemoryAdapter(netius.adapters.base.BaseAdapter):
def __init__(self) -> None: ...
def set(self, value, owner: str = ...): ...
def get_file(self, key, mode: str = ...): ...
def delete(self, key, owner: str = ...): ...
def append(self, key, value): ...
def truncate(self, key, count): ...
def size(self, key): ...
def count(self, owner: Incomplete | None = ...): ...
def list(self, owner: Incomplete | None = ...): ...
def _ensure(self, owner): ...
def _build_close(self, file, key): ...
def set(self, value, owner: str = ...) -> str: ...
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: Any) -> None: ...
def truncate(self, key: str, count: int) -> None: ...
def size(self, key: str) -> int: ...
def count(self, owner: str | None = ...) -> int: ...
def list(self, owner: str | None = ...) -> tuple[()]: ...
def _ensure(self, owner: str) -> dict: ...
def _build_close(self, file: netius.legacy.StringIO, key: str) -> function: ...

0 comments on commit 7e425b1

Please sign in to comment.