Skip to content

Commit

Permalink
chore: more simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 27, 2023
1 parent 100f4f7 commit 6740de2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
3 changes: 0 additions & 3 deletions src/netius/auth/address.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ class AddressAuth(Auth):
def __init__(self, allowed: list[str] = ..., *args, **kwargs) -> None: ...
@classmethod
def auth(cls, allowed: list[str] = ..., *args, **kwargs) -> bool: ...
@classmethod
def is_simple(cls) -> bool: ...
def auth_i(self, *args, **kwargs) -> bool: ...
12 changes: 3 additions & 9 deletions src/netius/auth/allow.pyi
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 AllowAuth(netius.auth.base.Auth):
@classmethod
def auth(cls, *args, **kwargs) -> Literal[True]: ...
@classmethod
def is_simple(cls) -> Literal[True]: ...
class AllowAuth(Auth):
pass
2 changes: 1 addition & 1 deletion src/netius/auth/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Auth:
@classmethod
def get_file(cls, path: PathLike[str], cache: bool = ..., encoding: str | None = ...) -> (Any | str | bytes): ...
@classmethod
def is_simple(cls) -> Literal[False]: ...
def is_simple(cls) -> bool: ...
def auth_i(self, *args, **kwargs) -> NoReturn: ...
def auth_assert_i(self, *args, **kwargs) -> None: ...
def is_simple_i(self) -> Literal[False]: ...

0 comments on commit 6740de2

Please sign in to comment.