helpers: toml: fix mypy on import (MR 2344)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-07-08 15:55:12 +02:00
parent 6301212d99
commit 7741f74d44
No known key found for this signature in database
GPG key ID: 0583312B195F64B6

View file

@ -8,7 +8,7 @@ try:
from tomllib import load, TOMLDecodeError # novermin from tomllib import load, TOMLDecodeError # novermin
except ImportError: except ImportError:
# Python < 3.11 # Python < 3.11
from tomli import load, TOMLDecodeError # type:ignore[import-not-found,no-redef] from tomli import load, TOMLDecodeError # type:ignore[import-not-found,no-redef,assignment]
@Cache("path") @Cache("path")