Comments (3)
I'll take this
from mypy.
This is still up for grabs.
from mypy.
This is an interesting one because there are cases that Python accepts that mypy doesn't as well, such as this:
def f(*x, y): pass
Also, notably, mypy's stub for print uses a syntax that is invalid in Python!
>>> def print_(*values, *, sep=u' ', end=u'\n', file=None): pass
File "<stdin>", line 1
def print_(*values, *, sep=u' ', end=u'\n', file=None): pass
^
SyntaxError: invalid syntax
I'm looking into it. I'm mostly done with a patch, but want to figure out what else mypy gets wrong here :)
from mypy.
Related Issues (20)
- (🐞) `TypeGuard`s incorrectly become the guard type when passed to a `TypeVar` HOT 2
- 1.9.0: change in tagging convention?🤔 HOT 2
- (🐞) `TypeGuard` passed to a `TypeVar` becomes `Any`, not `bool`
- Missing type narrowing with Literal[-1] HOT 1
- Annotate *args/**kwargs based on the signature of another class/function HOT 2
- Crash on `run_in_executor`
- Spurious error for dataclass(slots=True)
- `--extra-checks` is too strict when using `Concatenate` within a `Protocol` HOT 1
- `has no attribute "__aiter__"; maybe "__enter__"? (not async iterable)` when async iterating
- TypeVarTuple causes mypy crash
- Async iterator + inheritance = error HOT 1
- INTERNAL ERROR: maximum semantic analysis iteration count reached on self-referential union
- Restrictions on class patterns (match statement) are too strict / (possible cause: too eager to alias types) HOT 1
- INTERNAL ERROR on match-case statement HOT 1
- Possible false positive for override HOT 6
- MyPy doesn't report any errors when using TypeVars within TypeVar constraints HOT 1
- `TypeGuard` has no effect when nested in the presence of other problems
- Match exhaustiveness with class inheriting from tuple HOT 1
- Type of a function NOT allowed to raise an exception HOT 1
- Exhaustiveness check is not run for functions returning None 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 mypy.