-
### 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…
-
At the moment, I wrote in #172 a mini-serialization library based on `dataclass`es, it is currently called `DictLike`.
Now, `dataclass` already provides natively `.asdict()` and `.from_dict()` anal…
-
Example class:
`test_pytype.py`
```py
from typing import overload, Literal, Optional
class A:
@overload
@staticmethod
def f(x: None) -> None:
...
@overload
…
-
BPO | [37948](https://bugs.python.org/issue37948)
--- | :---
Nosy | @ericvsmith, @serhiy-storchaka, @ilevkivskyi, @a-recknagel
*Note: these values reflect the state of the issue at the time it was mi…
-
### Steps to reproduce
I use simple classproperty decorator:
```python
class classproperty(classmethod):
def __init__(self, fget):
if isinstance(fget, (classmethod, staticmethod)):
…
ghost updated
1 month ago
-
It looks like PEP 681 is almost accepted (pending a few wording changes). It aims to add some typing decorators to help type checkers understand that something is "dataclass-like" or "field-like". Cyt…
-
This project offers a way to ensure typing between **Components** and **Models**. But we still have typing issues within **Models** since `yield` ends up with an `any` return type, as is explained und…
-
```py
from typing import Callable
def f(a: Callable[[int], None] | Callable[[int, str], None]) -> None: ...
f(lambda x: reveal_type(x)) # Any
```
[playground](https://mypy-play.net/?mypy=m…
-
### How do you use Sentry?
Sentry Saas (sentry.io)
### Version
2.13.0
### Steps to Reproduce
1) Crash happened on this line (see full traceback below)
```python
File "/home/artsiom/dev/project/…
-
# Feature or enhancement
Add the class `dataclasses.Dataclass` that
- supports instance and subclass checks using similar logic as `dataclasses.is_dataclass`, and
- blocks inheritance in `__init_…