Skip to content

Add override annotations #1767

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

Merged

Conversation

pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Apr 6, 2025

Reason for this pull request

This will enable MyPy to flag
methods that no longer override
their base class method when
refactoring the base class.

Proposed changes

  • Closes #xxxx

  • Tests added / passed

  • Fully documented, including docs/about/whats_new.rst for all changes


📚 Documentation preview 📚: https://datacube-core--1767.org.readthedocs.build/en/1767/

Copy link

codecov bot commented Apr 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.70%. Comparing base (a7d50b9) to head (b86b526).
Report is 467 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1767      +/-   ##
===========================================
+ Coverage    85.17%   85.70%   +0.52%     
===========================================
  Files          149      149              
  Lines        15553    16122     +569     
===========================================
+ Hits         13248    13817     +569     
  Misses        2305     2305              

☔ 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.

pjonsson added 2 commits April 7, 2025 02:51
This will enable MyPy to flag
methods that no longer override
their base class method when
refactoring the base class.
Putting this directive in mypy.ini
did not work, so move the content
of mypy.ini to a mypy-section in
pyproject.toml, and then add
enable_error_code for explicit-override.
@pjonsson pjonsson force-pushed the add-override-annotations branch from 33e2bb2 to b86b526 Compare April 7, 2025 00:51
@pjonsson pjonsson requested a review from omad April 7, 2025 00:52
Copy link
Contributor

@SpacemanPaul SpacemanPaul left a comment

Choose a reason for hiding this comment

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

Again, please document this in whats_new.rst

@SpacemanPaul SpacemanPaul merged commit a4600c3 into opendatacube:develop Apr 7, 2025
19 checks passed
@pjonsson pjonsson deleted the add-override-annotations branch April 7, 2025 08:36
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