File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed
Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 11language : python
22matrix :
33 include :
4+ - python : 3.6
45 - python : 3.7
5- dist : xenial
66 - python : 3.8
7- dist : xenial
87 env : RUN_LINTER=1
98 - python : nightly
10- dist : xenial
119 allow_failures :
1210 - python : nightly
1311
Original file line number Diff line number Diff line change 662.0.0
77++++++++++++++++++
88
9- * IMPORTANT: Python 3.7 or greater is required. If you are using an older
9+ * IMPORTANT: Python 3.6 or greater is required. If you are using an older
1010 version, please use a 1.x.x release.
1111* Type hints have been added to the pure Python implementation.
1212
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ invalid IP address or an IPv6 address in an IPv4 database.
9393Requirements
9494------------
9595
96- This code requires Python 3.7 +. Older versions are not supported. The C
96+ This code requires Python 3.6 +. Older versions are not supported. The C
9797extension requires CPython.
9898
9999Versioning
Original file line number Diff line number Diff line change 55This module contains the pure Python database reader and related classes.
66
77"""
8- from __future__ import annotations
9-
108try :
119 import mmap
1210except ImportError :
@@ -109,7 +107,7 @@ def __init__(
109107 )
110108 self .closed = False
111109
112- def metadata (self ) -> Metadata :
110+ def metadata (self ) -> " Metadata" :
113111 """Return the metadata associated with the MaxMind DB file"""
114112 return self ._metadata
115113
@@ -234,7 +232,7 @@ def close(self) -> None:
234232 def __exit__ (self , * args ) -> None :
235233 self .close ()
236234
237- def __enter__ (self ) -> Reader :
235+ def __enter__ (self ) -> " Reader" :
238236 if self .closed :
239237 raise ValueError ("Attempt to reopen a closed MaxMind DB" )
240238 return self
You can’t perform that action at this time.
0 commit comments