From 6390eab720aac91caee19be2936158510554f72a Mon Sep 17 00:00:00 2001 From: Urvashi Mohnani Date: Tue, 7 Nov 2023 08:17:00 -0500 Subject: [PATCH] Add some pylint disables This is used towork around some invalid-name issue and cyclic import issue which seems to be a bug in pylint Signed-off-by: Urvashi Mohnani --- podman/api/ssh.py | 1 + podman/api/uds.py | 1 + podman/errors/exceptions.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/podman/api/ssh.py b/podman/api/ssh.py index 8ec17626..ccac8c6d 100644 --- a/podman/api/ssh.py +++ b/podman/api/ssh.py @@ -203,6 +203,7 @@ def connect(self) -> None: class SSHConnectionPool(urllib3.HTTPConnectionPool): """Specialized HTTPConnectionPool for holding SSH connections.""" + # pylint: disable=invalid-name ConnectionCls = SSHConnection diff --git a/podman/api/uds.py b/podman/api/uds.py index e159f0cd..72133daf 100644 --- a/podman/api/uds.py +++ b/podman/api/uds.py @@ -90,6 +90,7 @@ def connect(self) -> None: class UDSConnectionPool(urllib3.HTTPConnectionPool): """Specialization of HTTPConnectionPool for holding UNIX domain sockets.""" + # pylint: disable=invalid-name ConnectionCls = UDSConnection diff --git a/podman/errors/exceptions.py b/podman/errors/exceptions.py index e24ed754..eabfde53 100644 --- a/podman/errors/exceptions.py +++ b/podman/errors/exceptions.py @@ -9,7 +9,7 @@ # Break circular import if typing.TYPE_CHECKING: from podman.domain.containers import Container - from podman.api.client import APIResponse + from podman.api.client import APIResponse # pylint: disable=cyclic-import class APIError(HTTPError):