From e533a3985ebb236adeab4fd56ffde4f14d18ce76 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:03:27 +0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#151) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) * Style fix --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dacheng Xu --- .pre-commit-config.yaml | 2 +- appletree/component.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b85779d..06c19e9c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: docformatter - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.9.0 hooks: - id: mypy additional_dependencies: [types-PyYAML, types-tqdm] diff --git a/appletree/component.py b/appletree/component.py index bf250928..99d697f5 100644 --- a/appletree/component.py +++ b/appletree/component.py @@ -25,9 +25,9 @@ class Component: rate_name: str = "" norm_type: str = "" - add_eps_to_hist: bool = ( - True # add_eps_to_hist==True was introduced as only a workaround for likelihood blowup problem when using meshgrid binning - ) + # add_eps_to_hist==True was introduced as only a workaround + # for likelihood blowup problem when using meshgrid binning + add_eps_to_hist: bool = True force_no_eff: bool = False def __init__(self, name: Optional[str] = None, llh_name: Optional[str] = None, **kwargs):