mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 15:40:12 +01:00
fix(lint): improved type checking and code quality (77% error reduction)
This commit is contained in:
parent
3c45a31aa3
commit
83fe527979
37 changed files with 423 additions and 303 deletions
|
|
@ -12,7 +12,7 @@ class LandOptimizationMixin:
|
|||
Provides optimize_tapped_lands and run_land_step8 (moved from monolithic builder).
|
||||
"""
|
||||
|
||||
def optimize_tapped_lands(self): # type: ignore[override]
|
||||
def optimize_tapped_lands(self):
|
||||
df = getattr(self, '_combined_cards_df', None)
|
||||
if df is None or df.empty:
|
||||
return
|
||||
|
|
@ -146,7 +146,7 @@ class LandOptimizationMixin:
|
|||
new_tapped += 1
|
||||
self.output_func(f" Tapped Lands After : {new_tapped} (threshold {threshold})")
|
||||
|
||||
def run_land_step8(self): # type: ignore[override]
|
||||
def run_land_step8(self):
|
||||
self.optimize_tapped_lands()
|
||||
self._enforce_land_cap(step_label="Tapped Opt (Step 8)")
|
||||
if self.color_source_matrix_baseline is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue