Fix modern type hint on older Python

This commit is contained in:
Tobias Gruetzmacher 2023-06-10 22:33:33 +02:00
parent 0d44632d01
commit 41b2c0dc94
No known key found for this signature in database

View file

@ -3,6 +3,8 @@
# SPDX-FileCopyrightText: © 2012 Bastian Kleineidam
# SPDX-FileCopyrightText: © 2015 Tobias Gruetzmacher
# SPDX-FileCopyrightText: © 2019 Daniel Ring
from __future__ import annotations
import json
import re
from contextlib import suppress