Comments (3)
Python 3.9 is end-of-life in 1.5 years.
from pytype.
This works on Python 3.9.18
, I think CI tests on the latests 3.9.x
version too.
from pytype.
Hmm, that's not what I'm seeing?
❯ pyenv global 3.9.18
❯ pipgi pytype
pytype==2024.4.11
❯ cat a.py
from __future__ import annotations
def f(x: None | str) -> None:
pass
❯ pytype a.py
Computing dependencies
Analyzing 1 sources with 0 local dependencies
ninja: Entering directory `.pytype'
[1/1] check a
FAILED: /home/neil/src/.pytype/pyi/a.pyi
/home/neil/.pyenv/versions/3.9.18/bin/python3.9 -m pytype.main --imports_info /home/neil/src/.pytype/imports/a.imports --module-name a --platform linux -V 3.9 -o /home/neil/src/.pytype/pyi/a.pyi --analyze-annotated --nofail --quick /home/neil/src/a.py
File "/home/neil/src/a.py", line 2, in <module>: unsupported operand type(s) for |: 'None: None' and 'str: Type[str]' [unsupported-operands]
No attribute '__or__' on 'None: None' or '__ror__' on 'str: Type[str]'
For more details, see https://google.github.io/pytype/errors.html#unsupported-operands
ninja: build stopped: subcommand failed.
Leaving directory '.pytype'
from pytype.
Related Issues (20)
- Feature request: warn when pytype-single would have failed
- pytype of a larger but not huge standalone script xen-bugtool never finishes HOT 1
- Pytype fails to start if `exclude` option includes paths with `.pyc` files HOT 1
- Error "pytype-single: not found" since last release (2024.02.09) HOT 6
- An asynccontextmanager method breaks __init__ inference for attrs classes
- Verifying match pattern fails on destructuring dataclass type HOT 2
- Support PEP 742 (TypeIs) HOT 2
- Documentation: How can I make pytype notice .pyi stub files without merge-pyi-ing them? HOT 2
- [PY3.11 | Pytype 2024.02.13] Pattern matching fail when not specifying all enum values HOT 2
- false positive attribute error with dataclasses and metaclasses
- Support PEP 696 - Type Defaults for Type Parameters
- Might mock.MagicMock be given a type parameter? HOT 1
- exit() builtin has return type NoneType, but should have return type NoReturn
- False positive with Union of collections
- pytype.tools.annotate_ast.annotate_source crashes with RecursionError: maximum recursion depth exceeded in __instancecheck__
- pytype fails on files with names that have spaces in them
- MacOS build wheels: missing Python versions on macos-latest
- Will this library not be updated in the future? HOT 3
- PyType does not support running in parallel? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytype.