Skip to content
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

Fix adding incorrect attributes from __init__ #497

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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
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.

None yet

2 participants