Skip to content

__abc_list_repo__.py

__abc_list_repo__

Classes:

Name Description
ABCList

Abstrac class for lists manipulation.

JWTList

Protocol class for lists.

ABCList

ABCList(list_type: Literal['white', 'black'])

Bases: ABC

Abstrac class for lists manipulation.

Methods:

Name Description
add

Method for adding token to list.

check

Method for checking if a token is present in the list.

delete

Method for removing a token from a list.

add abstractmethod

add(token: str) -> None

Method for adding token to list.

check abstractmethod

check(token: str) -> bool

Method for checking if a token is present in the list.

delete abstractmethod

delete(token: str) -> None

Method for removing a token from a list.

JWTList

Bases: Protocol

Protocol class for lists.

Methods:

Name Description
add

Method for adding token to list.

check

Method for checking if a token is present in the list.

delete

Method for removing a token from a list.

add

add(token: str) -> None

Method for adding token to list.

check

check(token: str) -> bool

Method for checking if a token is present in the list.

delete

delete(token: str) -> None

Method for removing a token from a list.