-
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.
chore: removed base elements and ran black
- Loading branch information
Showing
23 changed files
with
54 additions
and
1,484 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,6 +1,8 @@ | ||
from typing import Sequence | ||
|
||
from netius import Auth | ||
|
||
class AddressAuth(Auth): | ||
def __init__(self, allowed: list[str] = ..., *args, **kwargs) -> None: ... | ||
def __init__(self, allowed: Sequence[str] = ..., *args, **kwargs) -> None: ... | ||
@classmethod | ||
def auth(cls, allowed: list[str] = ..., *args, **kwargs) -> bool: ... | ||
def auth(cls, allowed: Sequence[str] = ..., *args, **kwargs) -> bool: ... |
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,10 +1,4 @@ | ||
import netius.auth.base | ||
import netius.auth.base as base | ||
from netius import Auth | ||
|
||
from typing import Literal | ||
|
||
class DenyAuth(netius.auth.base.Auth): | ||
@classmethod | ||
def auth(cls, *args, **kwargs) -> Literal[False]: ... | ||
@classmethod | ||
def is_simple(cls) -> Literal[True]: ... | ||
class DenyAuth(Auth): | ||
pass |
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,12 +1,6 @@ | ||
import netius.auth.base | ||
import netius.auth.base as base | ||
from netius import Auth | ||
|
||
from typing import Literal | ||
|
||
class DummyAuth(netius.auth.base.Auth): | ||
class DummyAuth(Auth): | ||
def __init__(self, value: bool = ..., *args, **kwargs) -> None: ... | ||
@classmethod | ||
def auth(cls, value: bool = ..., *args, **kwargs) -> bool: ... | ||
@classmethod | ||
def is_simple(cls) -> Literal[True]: ... | ||
def auth_i(self, *args, **kwargs) -> bool: ... |
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,17 +1,25 @@ | ||
import netius as netius | ||
import netius.auth.base | ||
import netius.auth.base as base | ||
from typing import Any | ||
|
||
from typing import Dict | ||
from netius import Auth | ||
|
||
class MemoryAuth(netius.auth.base.Auth): | ||
def __init__(self, registry: Dict | None = ..., *args, **kwargs) -> None: ... | ||
class MemoryAuth(Auth): | ||
def __init__( | ||
self, registry: dict[str, Any] | None = ..., *args, **kwargs | ||
) -> None: ... | ||
@classmethod | ||
def auth(cls, username: str, password: str, registry: dict | None = ..., *args, **kwargs) -> bool: ... | ||
def auth( | ||
cls, | ||
username: str, | ||
password: str, | ||
registry: dict[str, Any] | None = ..., | ||
*args, | ||
**kwargs | ||
) -> bool: ... | ||
@classmethod | ||
def meta(cls, username: str, registry: Dict | None = ..., *args, **kwargs) -> Dict: ... | ||
def meta( | ||
cls, username: str, registry: dict[str, Any] | None = ..., *args, **kwargs | ||
) -> dict[str, Any]: ... | ||
@classmethod | ||
def get_registry(cls) -> Dict: ... | ||
def get_registry(cls) -> dict[str, Any]: ... | ||
@classmethod | ||
def load_registry(cls) -> Dict: ... | ||
def auth_i(self, username: str, password: str, *args, **kwargs) -> bool: ... | ||
def load_registry(cls) -> dict[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import netius.auth.base | ||
import netius.auth.base as base | ||
from typing import PathLike | ||
|
||
from typing import PathLike, Any, Dict | ||
from netius import Auth | ||
|
||
class PasswdAuth(netius.auth.base.Auth): | ||
class PasswdAuth(Auth): | ||
def __init__(self, path: PathLike[str] | None = ..., *args, **kwargs) -> None: ... | ||
@classmethod | ||
def auth(cls, username: str, password: str, path: str = ..., *args, **kwargs) -> bool: ... | ||
def auth( | ||
cls, username: str, password: str, path: str = ..., *args, **kwargs | ||
) -> bool: ... | ||
@classmethod | ||
def get_passwd(cls, path: PathLike[str], cache: bool = ...) -> (Any | Dict): ... | ||
def get_passwd(cls, path: PathLike[str], cache: bool = ...) -> dict[str, str]: ... | ||
def auth_i(self, username: str, password: str, *args, **kwargs) -> bool: ... |
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,10 +1,18 @@ | ||
import netius.auth.base | ||
import netius.auth.base as base | ||
from typing import Sequence | ||
|
||
from typing import Tuple | ||
from netius import Auth | ||
|
||
class SimpleAuth(netius.auth.base.Auth): | ||
def __init__(self, username: str | None = ..., password: str | None = ..., *args, **kwargs) -> None: ... | ||
class SimpleAuth(Auth): | ||
def __init__( | ||
self, username: str | None = ..., password: str | None = ..., *args, **kwargs | ||
) -> None: ... | ||
@classmethod | ||
def auth(cls, username: str, password: str, target: Tuple[str:str] | None = ..., *args, **kwargs) -> bool: ... | ||
def auth_i(self, username:str , password: str, *args, **kwargs) -> bool: ... | ||
def auth( | ||
cls, | ||
username: str, | ||
password: str, | ||
target: Sequence[str, str] | None = ..., | ||
*args, | ||
**kwargs | ||
) -> bool: ... | ||
def auth_i(self, username: str, password: str, *args, **kwargs) -> bool: ... |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.