Closed VincentVanlaer closed 1 year ago
Unfortunately I don't know the history of this code -- is there a reason why the stubs aren't just importing attr
and using it? That would solve the attrs versioning problem at least and offer more complete stubs.
Perhaps it would be better to apply the stubs to the outcome repo. Especially since the stubs are only 55 lines.
I'll take this for now and we can pursue upstreaming the stubs to outcome
under separate cover. I think when I first wrote trio-typing there wasn't good type checker support for attrs classes.
attrs provides
__match_args__
automatically, so these only need to be added to the stubs.Note: this is only the case since attrs 21.3.0. Should we then also bump the required attrs version in outcome to 21.3.0?