chore(lint): restore green gate

This commit is contained in:
2026-09-04 22:55:49 +02:00
parent bc5bf918b5
commit 7336109ab2
9 changed files with 733 additions and 540 deletions
+7 -4
View File
@@ -2,6 +2,8 @@
from __future__ import annotations
from typing import Literal
from pf1e_simulator.abilities import (
ALERTNESS,
DODGE,
@@ -9,6 +11,7 @@ from pf1e_simulator.abilities import (
IRON_WILL,
LIGHTNING_REFLEXES,
POINT_BLANK_SHOT,
AbilitySpec,
weapon_focus,
)
from pf1e_simulator.combat import CombatantState, CombatEngine
@@ -30,16 +33,16 @@ from pf1e_simulator.rng import ScriptedRng
def _make_hero(
cid: str = "hero",
*,
features: list[object] | None = None,
features: list[AbilitySpec] | None = None,
weapon_name: str = "sword",
weapon_kind: str = "melee",
weapon_kind: Literal["melee", "ranged", "touch"] = "melee",
attack_bonus: int = 5,
damage_bonus: int = 2,
) -> Combatant:
attack = AttackSpec(
id=f"{cid}-w",
name=weapon_name,
kind=weapon_kind, # type: ignore[arg-type]
kind=weapon_kind,
attack_bonus=attack_bonus,
damage=[DamageComponent(formula=parse_dice("1d8"), types=["slashing"])],
damage_bonus=damage_bonus,
@@ -61,7 +64,7 @@ def _make_hero(
speed_land_ft=30,
saves=Saves(fort=5, ref=4, will=3),
attacks=[attack],
features=features or [], # type: ignore[arg-type]
features=features or [],
)