python-attrs / cattrs

Composable custom class converters for attrs, dataclasses and friends.
https://catt.rs
MIT License
781 stars 108 forks source link

Cattrs lib issue #468

Closed Raghuveer123 closed 7 months ago

Raghuveer123 commented 7 months ago

Description

Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.

Get intermittent failures with this lib.

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

line 355, in make_dict_structure_fn ian = a.alias AttributeError: 'Attribute' object has no attribute 'alias'

Tinche commented 7 months ago

Hello,

Looks like your version of attrs is too old. Which version are you using?

That shouldn't be possible since cattrs 23.2 depends on attrs >= 23.1.0, which should support aliases.

Raghuveer123 commented 7 months ago

Yes…This issue can be closed now..This got fixed by matching the versions cattrs 23.2 and attrs >=23.1.0..

Raghuveer123 commented 7 months ago

Closed