Skip to content

Conversation

@Tpt
Copy link
Contributor

@Tpt Tpt commented Oct 23, 2025

__new__ returns the object whereas __init__ is mutating it.

Example in type stub doc: https://typing.python.org/en/latest/guides/writing_stubs.html#syntax-example

@Tpt Tpt force-pushed the tpt/introspection-new-ret branch from 3be40b8 to 8914eee Compare October 23, 2025 17:03
@Tpt Tpt marked this pull request as ready for review October 23, 2025 17:59
@davidhewitt davidhewitt added this pull request to the merge queue Oct 31, 2025
Merged via the queue into PyO3:main with commit 058f90f Oct 31, 2025
41 of 42 checks passed
@Tpt Tpt deleted the tpt/introspection-new-ret branch November 4, 2025 14:27
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.

3 participants