ewwink · GitHub

Bug report

Bug description:

on Windows 10 guess_file_type() checking .webp file return tuple('', None) not tuple('image/webp', None)

The problem is db.read_windows_registry() overwrite default types_map .webp = 'image/webp' into .webp = ''

if files is None or _db is None:
db = MimeTypes()
# Quick return if not supported
db.read_windows_registry()

CPython versions tested on:

3.11, 3.12, 3.13

Operating systems tested on:

Windows

Linked PRs

Read the original on github.com ↗