Skip to content
This repository was archived by the owner on Dec 17, 2022. It is now read-only.

Commit 03898e9

Browse files
committed
Suppress pylint issue
1 parent 47ee0e1 commit 03898e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bitlyshortener/shortener.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ def _init_executor(self) -> None:
6868
log.debug("Max number of worker threads is %s.", self._max_workers)
6969
self._thread_local = threading.local()
7070
self._init_requests_session() # For conditional non-parallel execution.
71-
self._executor = concurrent.futures.ThreadPoolExecutor(max_workers=self._max_workers, thread_name_prefix="Requester", initializer=self._init_requests_session)
71+
self._executor = concurrent.futures.ThreadPoolExecutor( # pylint: disable=consider-using-with
72+
max_workers=self._max_workers, thread_name_prefix="Requester", initializer=self._init_requests_session
73+
)
7274
log.debug("Initialized thread pool executor.")
7375

7476
@staticmethod

0 commit comments

Comments
 (0)