Skip to content

Fix W0223 abstract-method warning in TestTorchConnector and TestTorch… - #1079

Merged
m-meller merged 3 commits into
stfc:mainfrom
AryanSilver24:fix-pylint-torch-abstract-methods
Nov 24, 2026
Merged

m-meller merged 3 commits into
stfc:mainfrom
AryanSilver24:fix-pylint-torch-abstract-methods

Conversation

@AryanSilver24

Copy link
Copy Markdown
Contributor

…Networks (#1078)

Pylint 4.1.x reports W0223 (abstract-method) for TestTorchConnector and TestTorchNetworks because they inherit from TestTorch (which defines abstract methods for unittest assertions) without directly implementing them (which is done by concrete subclasses that mix in QiskitMachineLearningTestCase).

Disabling abstract-method on these intermediate base classes restores 10/10 pylint score.

Summary

Details and comments

…Networks (stfc#1078)

Pylint 4.1.x reports W0223 (abstract-method) for TestTorchConnector and
TestTorchNetworks because they inherit from TestTorch (which defines abstract
methods for unittest assertions) without directly implementing them (which is done
by concrete subclasses that mix in QiskitMachineLearningTestCase).

Disabling abstract-method on these intermediate base classes restores 10/10 pylint score.
@CLAassistant

CLAassistant commented Oct 17, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 45205336039

Warning

No base build found for commit d691168 on main.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 89.802%

Details

  • Patch coverage: No coverable lines changed in this PR.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 6011
Covered Lines: 5398
Line Coverage: 89.8%
Coverage Strength: 0.9 hits per line

💛 - Coveralls

@m-meller m-meller left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@m-meller
m-meller merged commit 79b590d into stfc:main Nov 24, 2026
42 of 48 checks passed
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.

4 participants