Files
topologyviewer/http_auth.py
Tucker Polomik 94b148cf69 http_auth: fix Pylint warnings
Signed-off-by: Tucker Polomik <t.polomik@cablelabs.com>
2023-05-05 16:19:33 -06:00

15 lines
446 B
Python

# pylint: disable=too-few-public-methods
"""
Module that holds HTTP connection context data.
"""
class HTTPBasicAuthParams():
"""Class to hold HTTP basic authorization parameters (username, password).
"""
def __init__(self, user: str, password: str) -> None:
self.user = user
self.password = password
def __repr__(self) -> str:
return f"HTTPBasicAuthParams: username: {self.user}, pass: {self.password}"