Comments (4)
See also pythoneval test case testGenericFunctionTypeInferenceProblem
.
from mypy.
There seems to be at least two related bugs. The first one is #410.
from mypy.
However, the original example now works correctly -- originally there must have been three bugs around this issue!
from mypy.
testGenericFunctionTypeInferenceProblem
was actually broken, and there only seems to be the related bug #410.
from mypy.
Related Issues (20)
- Generic class clone method using property variable for type arg produces name-defined error
- False Positive error: "yield from" can't be applied to "Foo" [misc] where Foo has explicit __iter__(self) HOT 1
- False positive "Missing return statement" for coroutine result pattern matching HOT 1
- Infering return type as a union of all returns in type-checked functions HOT 5
- Stack overflow on callable protocol with Self annotation HOT 3
- Export types from a plugin as `pyi`
- (🐞) `type.__call__` not checked properly HOT 4
- False-positive "Non-overlapping equality check" comparing `Enum`s `self` to members
- Crash on overlapping check for overloads with Unpack types
- KeyError: mypy.nodes.MemberExpr object HOT 2
- false positive flags superclass method as undefined
- [Feature] a new lint rule to require that each block must end with #. or # or a new line. HOT 1
- (🐞) overloaded instance not accepted as instance
- segfault on recursive generic protocols of certain form HOT 7
- False positive: unreachable case when using Literal
- Accessing a `NotRequired` field in a `TypedDict` does not error HOT 1
- Any is inferred with a certain combination of overloads and generics
- Flow typing doesn't infer generic arguments
- Truthyness inference incorrect for some `Enum` types HOT 1
- (🐞) Invalid error when inplace operator is an instance, not 'function'
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 mypy.