Skip to content

Conversation

@AlexanderWells-diamond
Copy link
Collaborator

@AlexanderWells-diamond AlexanderWells-diamond commented Mar 28, 2025

Python3 fully supports use of super() without additional required parameters, unlike Python2.

__init__class__ and the associated metaclass logic are no longer required as __init__subclass__ does exactly what we want; running once per subclass created.

Fixes #167

Python3 fully supports use of super() without additional required
parameters, unlike Python2.
__init__class__ and the associated metaclass logic are no longer
required as __init__subclass__ does exactly what we want; running once
per subclass type.
@codecov
Copy link

codecov bot commented Mar 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.13%. Comparing base (ba24655) to head (9b24380).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
- Coverage   88.30%   88.13%   -0.17%     
==========================================
  Files          15       15              
  Lines        1274     1256      -18     
==========================================
- Hits         1125     1107      -18     
  Misses        149      149              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@Araneidae Araneidae left a comment

Choose a reason for hiding this comment

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

Nice and simple.

Comment on lines -95 to -99
# Create an empty device directory.
# (Potentially this belongs in a mix-in for resolving the linkage
# between record and instances, but for now this is hard-wired here.)
cls.__device_directory = {}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting: I can find no trace of this symbol anywhere else (even using git log -S)! I guess this was an idea that either never happened or has been erased.

Pointed out during code review.
@AlexanderWells-diamond AlexanderWells-diamond merged commit de1e43d into master Apr 1, 2025
43 checks passed
@AlexanderWells-diamond AlexanderWells-diamond deleted the remove___super_attribute branch April 1, 2025 08:44
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.

Remove __super attribute

3 participants