From 100f4f7661782036212e5e83db0fe10003d496fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Wed, 27 Dec 2023 15:14:55 +0000 Subject: [PATCH] fix: address interface --- src/netius/auth/address.pyi | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/netius/auth/address.pyi b/src/netius/auth/address.pyi index fadb11e7..cc98cf64 100644 --- a/src/netius/auth/address.pyi +++ b/src/netius/auth/address.pyi @@ -1,12 +1,9 @@ -import netius.auth.base -import netius.auth.base as base +from netius import Auth -from typing import Literal - -class AddressAuth(netius.auth.base.Auth): - def __init__(self, allowed: list = ..., *args, **kwargs) -> None: ... +class AddressAuth(Auth): + def __init__(self, allowed: list[str] = ..., *args, **kwargs) -> None: ... @classmethod - def auth(cls, allowed: list = ..., *args, **kwargs) -> bool: ... + def auth(cls, allowed: list[str] = ..., *args, **kwargs) -> bool: ... @classmethod - def is_simple(cls) -> Literal[True]: ... + def is_simple(cls) -> bool: ... def auth_i(self, *args, **kwargs) -> bool: ...