From b77d92794e4ab3140a52e2c411d7c935c1a3581c Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 30 Apr 2024 09:00:45 +0000 Subject: [PATCH] python-tools.sh: Fix __path__ type check in __init__.py Don't check __path__ as Interable[str] anylonger, this somehow broke (Don't remember how). Use type: ignore instead. Signed-off-by: Jan Lindemann --- scripts/python-tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/python-tools.sh b/scripts/python-tools.sh index 47ba373d..543571fe 100644 --- a/scripts/python-tools.sh +++ b/scripts/python-tools.sh @@ -27,7 +27,7 @@ cmd_create_init() echo "# >> $del >>" echo "from pkgutil import extend_path" echo "from typing import Iterable" - echo "__path__ = extend_path(__path__, __name__) # type: Iterable[str]" + echo "__path__ = extend_path(__path__, __name__) # type: ignore" # was "type Iterable[str]" files="$*" for f in $files; do test -d $f && continue