-
__Expected behaviour__: When (de)serializing a dataclass that subclasses from `Generic[T]` and it has a member that uses `T`, we should be able to handle the member annotated with `T` gracefully when …
-
[Generic type aliases](https://mypy.readthedocs.io/en/stable/generics.html#generic-type-aliases) are not currently supported for autocompletion. For context, for a codebase I'm developing, I'm working…
-
Hi guys,
I am trying to add mypy support for dataclassy, which is a replacement for standard dataclasses.
You can see the code here:
https://github.com/biqqles/dataclassy/blob/15cef524b55df2c65…
-
At the current time the events.py and frame_protocol.py files cannot be mypyc compiled. The former is probably due to Generic dataclasses and the latter is probably related to https://github.com/mypyc…
-
In VSCode, `dataclass` from `dataclasses` allows me to see the attributes of my dataclass when creating an object. For example, if I have a dataclass called `MyClass` and I write somewhere `MyClass(` …
-
BPO | [39134](https://bugs.python.org/issue39134)
--- | :---
Nosy | @gvanrossum, @ericvsmith, @ahirner
Files | [dc_repro.py](https://bugs.python.org/file48802/dc_repro.py "Uploaded as text/plain at 20…
-
### 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 f…
-
**Describe the bug**
Exception is thrown in dacite when using `from_dict` in certain scenarios on dataclass with ` | None` field, eg `str | None`
**To Reproduce**
```
import dataclasses
import …
-
### 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…
-
In Python 3.7, type enforcing creates an error with the example code below.
Given that this is valid Python, I would expect that this runs (even if the inner `str` type cannot be checked)
```
fr…