Skip to content

chore: Improve HathorSettings imports#1223

Merged
msbrogli merged 1 commit intomasterfrom
chore/fix-settings-import
Feb 14, 2025
Merged

chore: Improve HathorSettings imports#1223
msbrogli merged 1 commit intomasterfrom
chore/fix-settings-import

Conversation

@msbrogli
Copy link
Member

@msbrogli msbrogli commented Feb 14, 2025

Motivation

Some files are still causing circular imports. This PR improve some imports to avoid it.

Acceptance Criteria

  1. Move HathorSettings to the TYPE_CHECKING condition.
  2. Add from __future__ import annotations in some files.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@msbrogli msbrogli requested a review from jansegre as a code owner February 14, 2025 17:46
@github-actions
Copy link

github-actions bot commented Feb 14, 2025

🐰 Bencher Report

Branchchore/fix-settings-import
Testbedubuntu-22.04
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
minutes (m)
(Result Δ%)
Lower Boundary
minutes (m)
(Limit %)
Upper Boundary
minutes (m)
(Limit %)
sync-v2 (up to 20000 blocks)📈 view plot
🚷 view threshold
1.59
(-2.65%)Baseline: 1.63
1.47
(92.45%)
1.80
(88.50%)
🐰 View full continuous benchmarking report in Bencher

@codecov
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.47%. Comparing base (00b82d9) to head (91e2bd8).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1223      +/-   ##
==========================================
+ Coverage   84.38%   84.47%   +0.08%     
==========================================
  Files         320      320              
  Lines       24565    24559       -6     
  Branches     3762     3762              
==========================================
+ Hits        20730    20747      +17     
+ Misses       3092     3077      -15     
+ Partials      743      735       -8     

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

@msbrogli msbrogli force-pushed the chore/fix-settings-import branch from 9ac6181 to 91e2bd8 Compare February 14, 2025 18:09
@msbrogli msbrogli merged commit 91e2bd8 into master Feb 14, 2025
9 checks passed
@msbrogli msbrogli deleted the chore/fix-settings-import branch February 14, 2025 18:16
@jansegre jansegre mentioned this pull request Jul 22, 2025
2 tasks
@jansegre jansegre mentioned this pull request Aug 7, 2025
2 tasks
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