Skip to content

Commit

Permalink
refactor: removed explicit None return type in types
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 27, 2023
1 parent 9be3f06 commit a74c275
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/netius/adapters/fs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from netius import BaseAdapter
class FsAdapter(BaseAdapter):
base_path: str

def __init__(self, base_path: str | None = ...) -> None: ...
def __init__(self, base_path: str | None = ...): ...
def _path(self, owner: str | None = ...) -> str: ...
def _ensure(self, owner: str) -> str: ...
def _symlink(self, source: PathLike[str], target: PathLike[str]) -> None: ...
def _symlink(self, source: PathLike[str], target: PathLike[str]): ...
2 changes: 1 addition & 1 deletion src/netius/auth/address.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ from typing import Sequence
from netius import Auth

class AddressAuth(Auth):
def __init__(self, allowed: Sequence[str] = ..., *args, **kwargs) -> None: ...
def __init__(self, allowed: Sequence[str] = ..., *args, **kwargs): ...
@classmethod
def auth(cls, allowed: Sequence[str] = ..., *args, **kwargs) -> bool: ...
2 changes: 1 addition & 1 deletion src/netius/auth/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ from typing import Any, Literal, NoReturn, PathLike
HashType = Literal["plain", "md5", "sha1", "sha256", "sha512"]

class Auth:
def __init__(self, *args, **kwargs) -> None: ...
def __init__(self, *args, **kwargs): ...
@classmethod
def auth(cls, *args, **kwargs) -> bool: ...
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion src/netius/auth/dummy.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from netius import Auth

class DummyAuth(Auth):
def __init__(self, value: bool = ..., *args, **kwargs) -> None: ...
def __init__(self, value: bool = ..., *args, **kwargs): ...
@classmethod
def auth(cls, value: bool = ..., *args, **kwargs) -> bool: ...
2 changes: 1 addition & 1 deletion src/netius/auth/memory.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from netius import Auth
class MemoryAuth(Auth):
def __init__(
self, registry: dict[str, Any] | None = ..., *args, **kwargs
) -> None: ...
): ...
@classmethod
def auth(
cls,
Expand Down
2 changes: 1 addition & 1 deletion src/netius/auth/passwd.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ from typing import PathLike
from netius import Auth

class PasswdAuth(Auth):
def __init__(self, path: PathLike[str] | None = ..., *args, **kwargs) -> None: ...
def __init__(self, path: PathLike[str] | None = ..., *args, **kwargs): ...
@classmethod
def auth(
cls, username: str, password: str, path: str = ..., *args, **kwargs
Expand Down
2 changes: 1 addition & 1 deletion src/netius/auth/simple.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from netius import Auth
class SimpleAuth(Auth):
def __init__(
self, username: str | None = ..., password: str | None = ..., *args, **kwargs
) -> None: ...
): ...
@classmethod
def auth(
cls,
Expand Down

0 comments on commit a74c275

Please sign in to comment.