Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.3k
Add signature for attr.evolve#14526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
cd832cc64a9e58c1455143477d2d056ac668b7f3cad9762021bdd3154c8138d46026fe2316b065148e5fcf756d134c8c9487a4c0b0976f86babf91f5443d515271233bfcb3660b79cc1File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1775,7 +1775,7 @@ def copy_modified( | ||
| self: CT, | ||
| arg_types: Bogus[Sequence[Type]] = _dummy, | ||
| arg_kinds: Bogus[list[ArgKind]] = _dummy, | ||
| arg_names: Bogus[list[str | None]] = _dummy, | ||
| arg_names: Bogus[Sequence[str | None]] = _dummy, | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for this change? I'd prefer to avoid touching the mypy core in this PR. ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because of list's invariance — otherwise, this fails since it passes arg_names=["inst"] +attrs_init_type.arg_names[1:],
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Broke out into #14840 — can merge then update this branch. | ||
| ret_type: Bogus[Type] = _dummy, | ||
| fallback: Bogus[Instance] = _dummy, | ||
| name: Bogus[str | None] = _dummy, | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JelleZijlstra now that we got this merged 😅 what would be the right place to discuss whether this should be promoted to be formal plugin API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open an issue, I suppose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👉 #14845