-
example
```py
import dataclasses
import aioinject
@dataclasses.dataclass(slots=True)
class FooBase[T]:
bar: dict[T] = dataclasses.field(default_factory=dict)
def baz(self):
raise N…
-
### Initial Checks
- [X] I confirm that I'm using Pydantic V2
### Description
```
Traceback (most recent call last):
File "test.py", line 14, in
@pydantic.dataclasses.dataclass(config=pyd…
-
### Privileged issue
- [X] I'm @tiangolo or he asked me directly to create an issue here.
### Issue Content
The combination of using:
* Pydantic v2
* dataclasses (instead of Pydantic models)
*…
-
```py
from dataclasses import dataclass
@dataclass(frozen=True)
class Foo:
a: object
@dataclass(frozen=True)
class Bar(Foo):
a: int
def do[T: Foo](f: T) -> T:
return f…
-
in a python3.13t venv:
```
pip install shortfin --upgrade --pre -f https://github.com/nod-ai/SHARK-Platform/releases/expanded_assets/dev-wheels
pip install transformers pillow dataclasses-json
pyt…
-
**Describe the bug**
A clear and concise description of what the bug is.
`@pydantic.dataclasses.dataclass`'s `__init__` type hint stop working
**To Reproduce**
Steps to reproduce the behavior…
-
Python 3.7 introduces dataclasses, which essentially are an optional way to have stricter type system within Python.
This is a way to set up abstract classes with interfaces, i.e. with canonical se…
-
I stumbled upon this when providing a column name in all caps, but it seems to happen when you provide any bad schema.
```
good_schema = [{"name": "colname", "type": "varchar"}]
all_caps_colname_…
-
Hi,
We have a performance critical section of code that looks like
`orjson.dumps(CustomSerializer.dump(message)).decode()`
The serializer uses serpyco-rs to dump to python object, which is then …
-
#### Expected behaviour
Hover and click actions are consistent when `dataClasses` are used. Cursor does not flicker and click events process cleanly.
#### Actual behaviour
IE11 hover/click events…