~homeworkprod/byceps

20ad8d568f0e1649b68596e50f870779b7852fd8 — Jochen Kupperschmidt 5 months ago da8025b
Explcitly cast return type to `bool`
1 files changed, 3 insertions(+), 2 deletions(-)

M byceps/util/image/typeguess.py
M byceps/util/image/typeguess.py => byceps/util/image/typeguess.py +3 -2
@@ 46,6 46,7 @@ def _is_svg(stream: BinaryIO) -> bool:
    header = stream.read(80)
    stream.seek(0)

    return header.startswith(b'<svg') or (
        header.startswith(b'<?xml version="1.0"') and header.find(b'<svg')
    return bool(
        header.startswith(b'<svg')
        or (header.startswith(b'<?xml version="1.0"') and header.find(b'<svg'))
    )