Skip to content

Fix adding incorrect attributes from __init__ #497

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

tannewt
Copy link
Contributor

@tannewt tannewt commented Oct 24, 2024

These cases in __init__ are fixed:

  • local_variable : int = 1
  • local_variable = 1
  • self.foo.bar = 1 (Isn't .bar in the object.)

This assumes that the first parameter to __init__ is called "self".

These cases in __init__ are fixed:
* `local_variable : int = 1`
* `local_variable = 1`
* `self.foo.bar = 1` (Isn't .bar in the object.)

This assumes that the first parameter to __init__ is called "self".
@AWhetter AWhetter merged commit 9dd7851 into readthedocs:main Oct 25, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants