Skip to content

Commit

Permalink
Simplify type check
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Sep 24, 2021
1 parent 2d6de80 commit dd8df1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ History

* The public API on ``geoip2.database`` is now explicitly defined by
setting ``__all__``.
* The return type of the ``metadata()`` method on ``Reader`` is now
``maxminddb.reader.Metadata`` rather than a union type.

4.3.0 (2021-09-20)
++++++++++++++++++
Expand Down
2 changes: 1 addition & 1 deletion geoip2/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def _flat_model_for(

def metadata(
self,
) -> Union[maxminddb.reader.Metadata, "maxminddb.extension.Metadata"]:
) -> maxminddb.reader.Metadata:
"""The metadata for the open database.
:returns: :py:class:`maxminddb.reader.Metadata` object
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aiohttp>=3.6.2,<4.0.0
maxminddb>=2.1.0,<3.0.0
maxminddb>=2.2.0,<3.0.0
requests>=2.24.0,<3.0.0
urllib3>=1.25.2,<2.0.0

0 comments on commit dd8df1b

Please sign in to comment.