Skip to content

issues Search Results · repo:python-attrs/attrs language:Python

Filter by

768 results
 (76 ms)

768 results

inpython-attrs/attrs (press backspace or delete to remove)

Hi, I fear that there is probably a super obvious answer to this question, but I somehow cannot wrap my head around it: is there any way how I can extend the attrs-generated __eq__ method, similar to how ...
  • AdrianSosic
  • 1
  • Opened 
    5 hours ago
  • #1452

attrs doesn t currently support PEP 749 annotations. On Python 3.14, this works: class A: b: B class B: pass If we try using attrs, it doesn t: from attrs import define @define class A: ...
  • Tinche
  • Opened 
    yesterday
  • #1450

All dependencies now install on 3.14, however the tests don t pass and it s looking kinda wild: /Users/hynek/FOSS/attrs/tests/test_mypy.yml:1487: E pytest_mypy_plugins.utils.TypecheckAssertionError: ...
  • hynek
  • 1
  • Opened 
    22 days ago
  • #1443

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
  • #1438

I have been trying to implement a reactive change notification system on top of attrs using on_setattr handlers. However, on_setattr handlers are called before the value is assigned, in order to allow ...
  • burnpanck
  • 8
  • Opened 
    on Jun 25
  • #1437

Minimal repro: import attrs @attrs.define class Bar[K, V]: key: K value: V y = Bar[str, int]( hello , 123) get_args(y.__orig_class__) # AttributeError: Bar object has no attribute __orig_class__ ...
  • chansoo-google
  • 1
  • Opened 
    on Jun 25
  • #1436

Hi, I just noticed a typing problem when using factory classmethods as converters. The following code works properly with mypy when calling the constructor directly, but causes problems when calling the ...
  • AdrianSosic
  • 2
  • Opened 
    on Jun 2
  • #1435

Currently two test fail on 3.14: FAILED tests/test_make.py::TestClassBuilder::test_no_references_to_original_when_using_cached_property - AssertionError: assert [ class tests.test_make.TestClassBuilder.test_no_references_to_original_when_using_cached_property. ...
  • hynek
  • 8
  • Opened 
    on May 20
  • #1431

The documentation says: If __attrs_pre_init__ takes more than the self argument, the attrs-generated __init__ will call it with the same arguments it received itself. However, if those attributes are ...
  • redruin1
  • Opened 
    on Apr 18
  • #1427

A user might want to use attributes from an already @defined class to populate a new attrs class. However, _ClassBuilder expects all given attributes to be instances of _CountingAttr instead of Attribute ...
  • redruin1
  • 1
  • Opened 
    on Apr 6
  • #1424
Issue origami icon

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 Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

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 Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub