Skip to content

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

Filter by

765 results
 (97 ms)

765 results

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

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 
    9 days ago
  • #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
  • Opened 
    11 days ago
  • #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 
    11 days ago
  • #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
  • 1
  • 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
  • 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

Part of the reason why attrs is so appealing is that all validations are essentially just plain functions that are run at certain times. However, I find myself pining for a little bit more control on how ...
  • redruin1
  • 1
  • Opened 
    on Mar 26
  • #1421

Consider the following @attrs.define class A: @functools.cached_property def x(self) - list[int]: print( caching ) return list(range(5)) The following behavior is expected: ...
  • Redoubts
  • 1
  • Opened 
    on Mar 21
  • #1420

@chrysle when you make a fork, now there s a checkbox ☑ Only copy the main branch which is selected by default. I suppose, that s why your fork doesn t have any tags. I don t think you really need them, ...
  • bijaykhatri23
  • Opened 
    on Mar 20
  • #1419
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 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