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
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.

2 participants