-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
review src/typings/netius/adapters/memory.pyi
- Loading branch information
1 parent
1e0b15a
commit 7e425b1
Showing
1 changed file
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ... |