Comments (8)
Hmm, not sure the actual version of typing_extensions should matter (at least at type check time, which OP's error definitely is); mypy should just be looking at the typeshed stubs.
(In fact, mypy thinks typing_extensions is part of the standard library, so you can actually type check without having it installed, like in the days before modular typeshed)
If OP could provide a script that reproduces the error, ideally from a fresh virtual environment, that would be very helpful!
from typing_extensions.
Maybe @nipunn1313 has some insight what could be wrong here.
from typing_extensions.
What mypy version are you using? Try 0.930
from typing_extensions.
It requires mypy 0.930
if you can’t resolve:
What version of mypy, mypy_protobuf, and python are you using?
from typing_extensions.
I used python 3.8.x , mypy 0.930 and my_protobuf 3.1.0 @nipunn1313
from typing_extensions.
@nipunn1313 , it will be good if you help me out with exact versions needed to resolve this issue
from typing_extensions.
Hmm.
Ok here's a hypothesis.
What version of typing_extensions do you have?
pip3 show typing_extensions
It looks like it was added with python/typing@6d287f0 in 3.7.4.2 (which released July 2020). Is it possible you have a version older than that installed?
If this is the case leading to the issue, I think the more permanent solution is to add it to the setup requirements for mypy-protobuf (https://github.com/dropbox/mypy-protobuf/blob/main/setup.cfg#L19), and the documentation.
Sorry for the trouble - hoping you can help validate if this hypothesis and see if it helps with the issue.
from typing_extensions.
We can mark this closed as I changed the mypy version to latest and it worked for me. Thanks everyone.
from typing_extensions.
Related Issues (20)
- Baffling error message if you forget to pass a deprecation message to `@deprecated` when it's decorating a class
- Third-party tests failed on Mon Nov 06 2023 HOT 3
- List of included items by the version in which they were included in Python. HOT 4
- Unreadable help() with Annotated[str, Doc(...)] HOT 3
- Referencing to bases of TypeVar HOT 1
- Multiple inheritance and ReadOnly issues? HOT 1
- Third-party tests failed on Thu Nov 30 2023 HOT 1
- Annotated/get_type_hints interaction in python <3.11 HOT 3
- Third-party tests failed on Fri Dec 08 2023 HOT 1
- PEP 585 + PEP 604 support HOT 9
- Hints for using typing_extensions with mypy HOT 7
- Third-party tests failed on Sat Dec 30 2023
- isinstance return different result with sys.setprofile HOT 1
- Third-party tests failed on Fri Jan 12 2024 HOT 1
- Third-party tests failed on Sat Jan 13 2024 HOT 2
- TypeError: Parameter list cannot be empty for TypeVarTuple
- Daily tests failed on Sat Jan 20 2024 HOT 2
- Third-party tests failed on Sun Jan 21 2024 HOT 1
- Unit tests fails with Python 3.13.0a2 HOT 2
- Different results in Python 3.12.1 vs Python 3.12.2 HOT 3
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 typing_extensions.