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

General cleanup #1988

Merged
merged 1 commit into from
Oct 22, 2023
Merged

General cleanup #1988

merged 1 commit into from
Oct 22, 2023

Conversation

LilSpazJoekp
Copy link
Member

General codebase cleanup

@LilSpazJoekp LilSpazJoekp force-pushed the general-cleanup branch 2 times, most recently from 9e86455 to 82f226d Compare October 22, 2023 20:55
msg = "Either id or _data needs to be given."
raise ValueError(msg)

if reason_id:
self.id = reason_id
if _reason_id:
Copy link
Member

Choose a reason for hiding this comment

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

Since you are using this value, it seems a little strange to _ prefix it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think a linter was whining about it possibly mutating reason_id. Looking at self._warn_reason_id, that shouldn't be an issue.

@LilSpazJoekp LilSpazJoekp merged commit 73d2a36 into master Oct 22, 2023
28 checks passed
@LilSpazJoekp LilSpazJoekp deleted the general-cleanup branch October 22, 2023 21:42
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