Skip to content

Commit d9b9d06

Browse files
committed
Ignore pylint's consider-using-with in Disk.fetch
1 parent d20ddb3 commit d9b9d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diskcache/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def fetch(self, mode, filename, value, read):
261261
:return: corresponding Python value
262262
263263
"""
264-
# pylint: disable=no-self-use,unidiomatic-typecheck
264+
# pylint: disable=no-self-use,unidiomatic-typecheck,consider-using-with
265265
if mode == MODE_RAW:
266266
return bytes(value) if type(value) is sqlite3.Binary else value
267267
elif mode == MODE_BINARY:

0 commit comments

Comments
 (0)