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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2024-04-30 09:00:45 +00:00
commit b77d92794e

View file

@ -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