-
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.
- Loading branch information
Showing
4 changed files
with
15 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,8 +1,8 @@ | ||
from typing import Any, BinaryIO, Callable | ||
from typing import Any, BinaryIO, Callable, Mapping | ||
|
||
from netius import BaseAdapter | ||
|
||
class MemoryAdapter(BaseAdapter): | ||
def __init__(self): ... | ||
def _ensure(self, owner: str) -> dict[str, Any]: ... | ||
def _ensure(self, owner: str) -> Mapping[str, Any]: ... | ||
def _build_close(self, file: BinaryIO, key: str) -> Callable[[], None]: ... |
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
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,25 +1,23 @@ | ||
from typing import Any | ||
from typing import Any, Mapping | ||
|
||
from netius import Auth | ||
|
||
class MemoryAuth(Auth): | ||
def __init__( | ||
self, registry: dict[str, Any] | None = ..., *args, **kwargs | ||
): ... | ||
def __init__(self, registry: Mapping[str, Any] | None = ..., *args, **kwargs): ... | ||
@classmethod | ||
def auth( | ||
cls, | ||
username: str, | ||
password: str, | ||
registry: dict[str, Any] | None = ..., | ||
registry: Mapping[str, Any] | None = ..., | ||
*args, | ||
**kwargs | ||
) -> bool: ... | ||
@classmethod | ||
def meta( | ||
cls, username: str, registry: dict[str, Any] | None = ..., *args, **kwargs | ||
) -> dict[str, Any]: ... | ||
cls, username: str, registry: Mapping[str, Any] | None = ..., *args, **kwargs | ||
) -> Mapping[str, Any]: ... | ||
@classmethod | ||
def get_registry(cls) -> dict[str, Any]: ... | ||
def get_registry(cls) -> Mapping[str, Any]: ... | ||
@classmethod | ||
def load_registry(cls) -> dict[str, Any]: ... | ||
def load_registry(cls) -> Mapping[str, Any]: ... |
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