issues Search Results · repo:python-attrs/cattrs language:Python
Filter by
359 results
(59 ms)359 results
inpython-attrs/cattrs (press backspace or delete to remove)Hi @Tinche,
Probably I just can t see the wood for the trees, but I m somehow stuck getting this simple scenario to work. Can you
give a quick hint what is:
- generally the right way to extend an existing ...
question
AdrianSosic
- 3
- Opened yesterday
- #632
Hi cattrs team, I encountered a seemingly quite surprising feature of cattrs, namely that the ordering of registered
hooks could affect the serialization outcome of nested attrs or dataclasses. See the ...
documentation
ngchihuan
- 2
- Opened 4 days ago
- #630
Using cattrs 24.1.2 and attrs 25.1.0
Repro
from typing import Literal
import attrs
import cattrs.preconf.bson
ThingType = Literal[ a , b ]
@attrs.define
class UserDoc:
things: dict[ThingType, ...
jrpat
- 3
- Opened 12 days ago
- #629
In Fedora, we’re already testing Python packages with pre-releases of Python 3.14, which will be included in Fedora 43
in late 2025. This report is based on a downstream issue that was filed as part of ...
musicinmybrain
- 1
- Opened 27 days ago
- #626
When structuring a bool as an int, the behavior is to convert it to an int:
converter = cattrs.Converter()
result = converter.structure(True, int)
assert type(result) is int
assert result == 1
But when ...
danielnelson
- 1
- Opened on Jan 30
- #623
- cattrs version: Current main (5c5876e0fb9327079811beb2d5a83d456eec7b54)
- Python version: 3.13
- Operating System: Linux
Description
Trying to structure a value to TypedDict with a NonRequired ...
bluetech
- 3
- Opened on Jan 7
- #619
- cattrs version: 24.1.0
- Python version: 3.11
- Operating System: Linux
Description
I am structuring a TypedDict type. The input is arbitrary (from JSON), and I want to offload the validation ...
bluetech
- 5
- Opened on Jan 5
- #615
- cattrs version: 24.1.2
- Python version: 3.12.7
Description
So I ve seen #452 and that type alises should work, but I think generic ones are missing.
What I Did
In [2]: import cattrs
In [3]: ...
enhancement
rafales
- 2
- Opened on Dec 12, 2024
- #611
- cattrs version: 24.1.2
- Python version: 3.13
- Operating System: Mac
Description
I want cattrs to not restructure an attrs instance that s already the correct type.
For example
import attrs ...
delfick
- 4
- Opened on Dec 7, 2024
- #608
- cattrs version: 24.1.2
- Python version:
import sys
sys.version_info
sys.version_info(major=3, minor=11, micro=9, releaselevel= final , serial=0)
- Operating System: macOS Ventura
Description ...
vreuter
- 3
- Opened on Nov 21, 2024
- #602

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.