-
You can add a generic serializer which works for all Enums like so
```
@JSONSerializer.register_serializer(Enum)
def Enum_serializer(obj: Enum) -> str:
return obj.name
@JSONSerializer.regis…
-
[2024-08-09 17:29:22,420] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to mps (auto detect)
[2024-08-09 17:29:22,567] torch.distributed.elastic.multiprocessing.redirects: […
-
### 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…
-
### 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…
-
https://github.com/python-desert/desert/blob/631de5f98d0f3edd3ecbab57100c5664a43bf3d5/src/desert/__init__.py#L55-L66
Below is my attempt to minimally recreate the issue and show some not-working op…
-
Here's a weird one.
I'm using `ProcessPoolExecutor` and sometimes that causes in contention on my databases.
I already use `tenacity` elsewhere, so I figure can just wrap in `retry_if_exception_ty…
-
### 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…
-
**Bug Report**
mypy should consider how the fields of a dataclass is initialized by the default constructor.
**To Reproduce**
```python
from __future__ import annotations
from dataclasses i…
-
### 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…
-
### 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…