Skip to content

Add attrs usage notes to contributor guide - #3598

Closed
swastiktawate wants to merge 1 commit into
python-trio:mainfrom
swastiktawate:fix-3116-attrs-contributor-guide
Closed

swastiktawate wants to merge 1 commit into
python-trio:mainfrom
swastiktawate:fix-3116-attrs-contributor-guide

Conversation

@swastiktawate

Copy link
Copy Markdown

Closes #3116.

Adds a short "Using attrs" section to the contributor guide. It covers why Trio uses attrs, the underscore plus alias convention for constructor arguments, and when to use slots=False, eq=False and @attrs.frozen. Each point is based on the current code, for example NurseryManager for slots=False and the Statistics classes for @attrs.frozen.

Docs only, no code changes.

@A5rocks A5rocks closed this Nov 18, 2026
@swastiktawate

Copy link
Copy Markdown
Author

Hi, I noticed all three of my PRs were closed. Could you let me know the reason? I want to understand what was wrong with them so I can do the work properly.

@A5rocks

A5rocks commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

LLM generated docs are not useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Describe our attrs usage in contributor guide

2 participants