File tree 3 files changed +21
-4
lines changed
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 3
3
History
4
4
-------
5
5
6
+ 4.4.0
7
+ ++++++++++++++++++
8
+
9
+ * The public API on ``geoip2.database `` is now explicitly defined by
10
+ setting ``__all__ ``.
11
+ * The return type of the ``metadata() `` method on ``Reader `` is now
12
+ ``maxminddb.reader.Metadata `` rather than a union type.
13
+
6
14
4.3.0 (2021-09-20)
7
15
++++++++++++++++++
8
16
Original file line number Diff line number Diff line change 10
10
11
11
import maxminddb
12
12
13
- # pylint: disable=unused-import
14
- from maxminddb import ( # type: ignore
13
+ from maxminddb import (
15
14
MODE_AUTO ,
16
15
MODE_MMAP ,
17
16
MODE_MMAP_EXT ,
35
34
ISP ,
36
35
)
37
36
37
+ __all__ = [
38
+ "MODE_AUTO" ,
39
+ "MODE_MMAP" ,
40
+ "MODE_MMAP_EXT" ,
41
+ "MODE_FILE" ,
42
+ "MODE_MEMORY" ,
43
+ "MODE_FD" ,
44
+ "Reader" ,
45
+ ]
46
+
38
47
39
48
class Reader :
40
49
"""GeoIP2 database Reader object.
@@ -260,7 +269,7 @@ def _flat_model_for(
260
269
261
270
def metadata (
262
271
self ,
263
- ) -> Union [ maxminddb .reader .Metadata , "maxminddb.extension.Metadata" ] :
272
+ ) -> maxminddb .reader .Metadata :
264
273
"""The metadata for the open database.
265
274
266
275
:returns: :py:class:`maxminddb.reader.Metadata` object
Original file line number Diff line number Diff line change 1
1
aiohttp >= 3.6.2 ,< 4.0.0
2
- maxminddb >= 2.1 .0 ,< 3.0.0
2
+ maxminddb >= 2.2 .0 ,< 3.0.0
3
3
requests >= 2.24.0 ,< 3.0.0
4
4
urllib3 >= 1.25.2 ,< 2.0.0
You can’t perform that action at this time.
0 commit comments