issues Search Results · repo:python-attrs/cattrs language:Python
Filter by
384 results
(85 ms)384 results
inpython-attrs/cattrs (press backspace or delete to remove)This is the same as #648, except I m using the tagged union strategy. test_parents_with_generics fails with this
strategy:
cattrs.strategies.include_subclasses(GenericParent[str], converter, union_strategy=cattrs.strategies.configure_tagged_union) ...
danarmak
- Opened yesterday
- #682
============================================================== FAILURES ===============================================================
___________________________________________________ test_310_union_field_roundtrip ...
mgorny
- 3
- Opened 3 days ago
- #681
Suppose there is an object that is expressed on the wire as a dictionary, defined like this:
class OnWire(TypedDict):
command: Literal[ DoThingForUserA , DoThingForUserB ]
A better structured representation ...
rgov
- 2
- Opened 6 days ago
- #680
Trivial example:
import cattrs
import enum
import cattr.preconf.json
c = cattr.preconf.json.make_converter()
class TE(enum.Enum):
A = 1
class TE2(enum.Enum):
C = TE.A
print(repr(c.unstructure(TE2.C))) ...
reversefold
- Opened 10 days ago
- #679
from __future__ import annotations
from attrs import define
from cattrs import Converter
from cattrs.strategies import configure_tagged_union
@define
class Add:
left: Expr
right: Expr
type Expr ...
adament
- 1
- Opened 28 days ago
- #678
python: 3.12 cattrs: 25.1.1; 24.1.3; 23.2.3
from dataclasses import dataclass,field
from typing import List
import cattrs
converter = cattrs.Converter()
@dataclass
class top_class:
num:int=1
...
gnzsnz
- 5
- Opened on Jul 20
- #675
- cattrs version 24.1.2
- Python version 3.12.8
tmp.py:
from dataclasses import dataclass
from cattrs import Converter, structure
@dataclass(kw_only=True, slots=True)
class MyClass:
a: int ...
blthayer
- 1
- Opened on Jul 10
- #674
Hi! We run the cattrs test suite every night in typing_extensions s CI (to make sure that we haven t accidentally broken
cattrs due to not-yet-released changes on the typing_extensions main branch). The ...
AlexWaygood
- 2
- Opened on Jul 6
- #669
This examples should clairfy the issue:
from attrs import define, field
from cattrs import Converter
from cattrs.gen import make_dict_structure_fn, make_dict_unstructure_fn, override
from cattrs.strategies ...
luca-penasa
- 1
- Opened on Jun 27
- #664
Hi @Tinche, could it be that there is a line for type resolution missing somewhere in cattrs? I just noticed the
situation shown below, which doesn t occur if I add an explicit resolve_types call (see ...
AdrianSosic
- 3
- Opened on Jun 24
- #661

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!
Press the /
key to activate the search input again and adjust your query.
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.