Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't import pyi for 'tqdm.notebook' [pyi-error] #1838

Open
seangies opened this issue Nov 11, 2024 · 0 comments
Open

Couldn't import pyi for 'tqdm.notebook' [pyi-error] #1838

seangies opened this issue Nov 11, 2024 · 0 comments

Comments

@seangies
Copy link

The following import statement triggers a pyi error in pytype:

from tqdm.notebook import IProgress

To reproduce:
python-3.9.15
tqdm==4.67.0
pytype==2024.9.13

Test file is foo.py:

from tqdm.notebook import IProgress

def foo():
	pass

Run pytype on it:

~/src/clean ❯ python3 -m pytype foo.py
Computing dependencies
Analyzing 1 sources with 0 local dependencies
ninja: Entering directory `.pytype'
[1/1] check foo
FAILED: ~/src/clean/.pytype/pyi/foo.pyi 
~/.pyenv/versions/venv-clean/bin/python3 -m pytype.main --imports_info ~/src/clean/.pytype/imports/foo.imports --module-name foo --platform darwin -V 3.9 -o ~/src/clean/.pytype/pyi/foo.pyi --analyze-annotated --nofail --quick ~/src/clean/foo.py
~/src/clean/foo.py:1:1: error: in <module>: Couldn't import pyi for 'tqdm.notebook' [pyi-error]
  Unreplaced NamedType: 'tqdm.std.tqdm', referenced from 'tqdm.notebook'

from tqdm.notebook import IProgress~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from tqdm.notebook import IProgress



For more details, see https://google.github.io/pytype/errors.html#pyi-error
ninja: build stopped: subcommand failed.
Leaving directory '.pytype'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant