- The minimum version of
maxminddbis now 3.3.0. This version raises
InvalidDatabaseErrorfor more kinds of corrupt databases, and it fixes
memory-safety and free-threading bugs in the C extension. It also lets
geoip2.database.Readeropen a binary file object withMODE_AUTO. See
themaxminddb 3.3.0 release notes <https://github.com/maxmind/MaxMind-DB-Reader-python/releases/tag/v3.3.0>_. - The type hint for the
fileishargument ofgeoip2.database.Readeris
nowmaxminddb.types.DatabaseSource. WithMODE_FDorMODE_AUTO,
it accepts any object whoseread()method returnsbytes, such as a
gzip.GzipFile. It no longer accepts a text file object, which never
worked.