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

complete if-else branch to fix pylint error #1604

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

AyiStar
Copy link
Contributor

@AyiStar AyiStar commented Nov 27, 2023

make checkall gets pylint error as follows:
openage/convert/entity_object/conversion/aoc/genie_unit.py:483:31: E0601: Using variable 'head_unit_connection' before assignment (used-before-assignment)
It is caused by an incomplete if-else block, and can be fixed by adding an else-branch raising ValueError.

Copy link
Member

@TheJJ TheJJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! a shorthand for {repr(self)} is {self!r} in formatstrings btw :)

@TheJJ TheJJ merged commit e2dd1dc into SFTtech:master Nov 27, 2023
@AyiStar AyiStar deleted the fix-pylint-error branch December 5, 2023 02:02
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