From d3a3ee1b539a9f5ea9b8f091e1e2a8af6d75654c Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 22 Apr 2024 22:07:12 +0300 Subject: [PATCH] Fixed for mypy errors --- slpkg/blacklist.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slpkg/blacklist.py b/slpkg/blacklist.py index cd05d355..1f8386ba 100644 --- a/slpkg/blacklist.py +++ b/slpkg/blacklist.py @@ -1,10 +1,12 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- +# mypy: disable-error-code="no-redef" + try: import tomli except ModuleNotFoundError: - import tomllib as tomli + import tomllib as tomli # type: ignore[import-not-found] from pathlib import Path