We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Discovered by @ltindall.
$ pytype --version 2022.06.06 $ python3 --version Python 3.10.4 $ cat test.py print(memoryview(b'123').nbytes) $ python3 test.py 3 $ pytype test.py Computing dependencies Analyzing 1 sources with 0 local dependencies ninja: Entering directory `.pytype' [1/1] check test FAILED: /home/josh/tmp/.pytype/pyi/test.pyi /usr/bin/python3 -m pytype.single --imports_info /home/josh/tmp/.pytype/imports/test.imports --module-name test --platform linux -V 3.10 -o /home/josh/tmp/.pytype/pyi/test.pyi --analyze-annotated --nofail --quick /home/josh/tmp/test.py File "/home/josh/tmp/test.py", line 1, in : No attribute 'nbytes' on memoryview [attribute-error]
For more details, see https://google.github.io/pytype/errors.html#attribute-error ninja: build stopped: subcommand failed. Leaving directory '.pytype'
The text was updated successfully, but these errors were encountered:
Huh, nbytes has been around since Python 3.3! I'm surprised we've gone this long without anyone noticing it was missing.
Sorry, something went wrong.
cdc0c22
rchen152
No branches or pull requests
Discovered by @ltindall.
$ pytype --version
2022.06.06
$ python3 --version
Python 3.10.4
$ cat test.py
print(memoryview(b'123').nbytes)
$ python3 test.py
3
$ pytype test.py
Computing dependencies
Analyzing 1 sources with 0 local dependencies
ninja: Entering directory `.pytype'
[1/1] check test
FAILED: /home/josh/tmp/.pytype/pyi/test.pyi
/usr/bin/python3 -m pytype.single --imports_info /home/josh/tmp/.pytype/imports/test.imports --module-name test --platform linux -V 3.10 -o /home/josh/tmp/.pytype/pyi/test.pyi --analyze-annotated --nofail --quick /home/josh/tmp/test.py
File "/home/josh/tmp/test.py", line 1, in : No attribute 'nbytes' on memoryview [attribute-error]
For more details, see https://google.github.io/pytype/errors.html#attribute-error
ninja: build stopped: subcommand failed.
Leaving directory '.pytype'
The text was updated successfully, but these errors were encountered: