Skip to content

[Python][CodeQL] Avoid explicitly returning a value from __init__#22706

Open
siliataider wants to merge 1 commit into
root-project:masterfrom
siliataider:code-quality
Open

[Python][CodeQL] Avoid explicitly returning a value from __init__#22706
siliataider wants to merge 1 commit into
root-project:masterfrom
siliataider:code-quality

Conversation

@siliataider

Copy link
Copy Markdown
Contributor

This Pull request:

Changes or fixes:

Minor cleanup: CodeQL flags explicit returns from __init__ since Python raises TypeError if it returns anything other than None. self._init currently returns None, so there's no behavior change here

@siliataider siliataider self-assigned this Jun 25, 2026

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@github-actions

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 7h 12m 30s ⏱️
 3 871 tests  3 868 ✅ 0 💤  3 ❌
75 247 runs  75 192 ✅ 0 💤 55 ❌

For more details on these failures, see this check.

Results for commit c2fa8d1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants