-
Moved from https://github.com/python/mypy/issues/10122
**Bug Report**
A function that is wrapped in a decorator can not be pickled when the function (and its decorator) are compiled.
compile.…
-
### Initial Checks
- [X] I have searched Google & GitHub for similar requests and couldn't find anything
- [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think this feat…
-
The initial work we did to use ESDoc for our documentation was good, but it's not ideal for all of our use cases (like writing guides, describing caveats, etc). I'm currently working with the Ember Le…
-
In plain FastAPI I can add headers to my response as described [here](https://fastapi.tiangolo.com/advanced/response-headers/#use-a-response-parameter)
```python
def get_headers(response: Response):…
-
I'm not sure if this would be within the scope of `pylint` features, but a [similar question](https://github.com/PyCQA/pylint/issues/1061) was looked at previously, so I may as well mention the pr…
-
### Describe the bug
The pure python mode of Cython is excellent, and should make it much easier to adopt cython code into Python codebases. However, there are a number of issues with the design choi…
-
At the point at which the decorator is applied, the class method isn't a callable yet. It's a classmethod object that replies to `__get__` to produce the bound method. Yet, MyPy already thinks it's …
-
If I define a passed in function using the Callable syntax, mypy complains if I then call a keyword argument on that function. This is makes writing things like decorators problematic
Sample code:
`…
-
```py
from typing import TypeAlias
Values: TypeAlias = dict[str, int]
a = Values(foo="") # no error
```
[playground](https://mypy-play.net/?mypy=master&python=3.10&flags=show-error-codes%2Ca…
-
```py
from typing import TypeGuard
def foo(value: TypeGuard[int]) -> None: ... # no error
bar: TypeGuard[int] = True # no error
```
https://mypy-play.net/?mypy=master&python=3.10&flags=show…