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

variable referenced before assignment fix. #11628

Conversation

jchanvfx
Copy link

Subject: bugfix to some variables being referenced before assignment.

Feature or Bugfix

  • Bugfix
/opt/hostedtoolcache/Python/3.9.17/x64/lib/python3.9/site-packages/autodocsumm/__init__.py:223: RemovedInSphinx80Warning: The tuple interface of ObjectMember is deprecated. Use (obj.__name__, obj.object) instead.
  members = [(membername, member) for (membername, member) in members

Exception occurred:
  File "/opt/hostedtoolcache/Python/3.9.17/x64/lib/python3.9/site-packages/sphinx/ext/autodoc/__init__.py", line 779, in filter_members
    self.name, membername, member, exc, type='autodoc')
UnboundLocalError: local variable 'membername' referenced before assignment

@AA-Turner
Copy link
Member

Please may you add a test?

A

@AA-Turner
Copy link
Member

Fixed by #11651 and in Sphinx 7.2.4. Thanks for the PR!

A

@AA-Turner AA-Turner closed this Aug 28, 2023
@jchanvfx jchanvfx deleted the variable_referenced_before_assignment_fix branch August 28, 2023 04:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants