mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
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:
parent
3f5a3d004a
commit
b77d92794e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue