Skip to content

Commit

Permalink
Linting refactor of handicap code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jatkinson1000 committed Sep 2, 2023
1 parent 7515065 commit dfcc7e2
Show file tree
Hide file tree
Showing 2 changed files with 302 additions and 205 deletions.
4 changes: 3 additions & 1 deletion archeryutils/handicaps/handicap_equations.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,15 @@ def sigma_r(
return sig_r


def arrow_score( # pylint: disable=too-many-branches
def arrow_score(
target: targets.Target,
handicap: Union[float, npt.NDArray[np.float_]],
hc_sys: str,
hc_dat: HcParams,
arw_d: Optional[float] = None,
) -> Union[float, np.float_, npt.NDArray[np.float_]]:
# Six too many branches. Makes sense due to different target faces => disable
# pylint: disable=too-many-branches
"""
Calculate the average arrow score for a given target and handicap rating.
Expand Down
Loading

0 comments on commit dfcc7e2

Please sign in to comment.