Skip to content

fix: modernize super() calls in AxiStreamDmaMon#1177

Merged
ruck314 merged 1 commit into
pre-releasefrom
fix-axi-stream-dma-mon
Apr 13, 2026
Merged

fix: modernize super() calls in AxiStreamDmaMon#1177
ruck314 merged 1 commit into
pre-releasefrom
fix-axi-stream-dma-mon

Conversation

@ruck314

@ruck314 ruck314 commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace deprecated Python 2 super(self.__class__, self).__init__() with Python 3 super().__init__() in all three AxiStreamDmaMon classes to prevent potential MRO infinite recursion with subclassing
  • Clarify BuffCount descriptions in Rx/Tx to document they are static driver configuration values (no polling needed)

Test plan

  • python3 -m compileall -f passes with zero errors
  • flake8 --count passes with zero violations
  • CI regression tests pass

…s in AxiStreamDmaMon

Replace deprecated Python 2 super(self.__class__, self) pattern with
Python 3 super() in all three AxiStreamDmaMon classes to prevent
potential MRO issues with subclassing. Update BuffCount descriptions
in Rx and Tx to clarify they are static driver configuration values
that do not change at runtime.

Copilot AI 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.

Pull request overview

This PR modernizes initialization in the AxiStreamDmaMon* device classes by switching to Python 3-style super() calls and clarifies the meaning of BuffCount so users understand it’s a static driver configuration value rather than a runtime-polled metric.

Changes:

  • Replace legacy super(self.__class__, self).__init__(...) with super().__init__(...) in Rx/Tx/top-level monitor classes.
  • Update BuffCount descriptions for both Rx and Tx monitors to explicitly state they are static configuration values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ruck314 ruck314 requested a review from bengineerd April 10, 2026 21:27
@ruck314 ruck314 merged commit 4260459 into pre-release Apr 13, 2026
11 checks passed
@ruck314 ruck314 deleted the fix-axi-stream-dma-mon branch April 13, 2026 17:24
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.

3 participants