File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 99* The type hints for the database file in the ``Reader `` constructor have
1010 been expanded to match those specified by ``maxmindb.open_database ``. In
1111 particular, ``os.PathLike `` and ``IO `` have been added.
12-
12+ * Corrected the type hint for the ``metadata() `` method on ``Reader ``. It
13+ will return a ``maxminddb.extension.Metadata `` if the C extension is being
14+ used.
1315
14164.2.0 (2021-05-12)
1517++++++++++++++++++
Original file line number Diff line number Diff line change @@ -258,7 +258,9 @@ def _flat_model_for(
258258 record ["prefix_len" ] = prefix_len
259259 return model_class (record )
260260
261- def metadata (self ) -> maxminddb .reader .Metadata :
261+ def metadata (
262+ self ,
263+ ) -> Union [maxminddb .reader .Metadata , "maxminddb.extension.Metadata" ]:
262264 """The metadata for the open database.
263265
264266 :returns: :py:class:`maxminddb.reader.Metadata` object
You can’t perform that action at this time.
0 commit comments