Skip to content

Commit 7ed2f21

Browse files
committed
Ignore pylint false positive
1 parent 2f0e10b commit 7ed2f21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

maxminddb/reader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def __init__(self, database, mode=MODE_AUTO):
4646
* MODE_MEMORY - load database into memory.
4747
* MODE_AUTO - tries MODE_MMAP and then MODE_FILE. Default.
4848
"""
49+
# pylint: disable=redefined-variable-type
4950
if (mode == MODE_AUTO and mmap) or mode == MODE_MMAP:
5051
with open(database, 'rb') as db_file:
5152
self._buffer = mmap.mmap(

0 commit comments

Comments
 (0)