From 982a453abe9e19b7aeb32b2622ffb71565951dcf Mon Sep 17 00:00:00 2001 From: Mark Campanelli Date: Thu, 9 May 2024 06:51:02 -0600 Subject: [PATCH] Update black major version bump --- pvfit/modeling/dc/common.py | 14 ++++++-------- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/pvfit/modeling/dc/common.py b/pvfit/modeling/dc/common.py index 01834ba..9150858 100644 --- a/pvfit/modeling/dc/common.py +++ b/pvfit/modeling/dc/common.py @@ -95,8 +95,7 @@ def get_scaled_thermal_voltage( class IamFunction(Protocol): """Type definition for incident-angle modifier functions.""" - def __call__(self, *, angle_deg: FloatArray) -> FloatArray: - ... + def __call__(self, *, angle_deg: FloatArray) -> FloatArray: ... def iam_factory(*, iam_angle_deg: FloatArray, iam_frac: FloatArray) -> IamFunction: @@ -120,8 +119,7 @@ def iam(*, angle_deg: FloatArray) -> FloatArray: class ConstantThenLinearDegradationFunction(Protocol): """Type definition for constant-then-linear degradation functions.""" - def __call__(self, *, years_since_commissioning: FloatArray) -> FloatArray: - ... + def __call__(self, *, years_since_commissioning: FloatArray) -> FloatArray: ... def constant_then_linear_degredation_factory( @@ -145,10 +143,10 @@ def constant_then_linear_degredation( 0 <= years_since_commissioning, years_since_commissioning <= 1 ) ] = first_year_degredation - fractional_degredation[ - 1 < years_since_commissioning - ] = first_year_degredation + subsequent_year_degredation * ( - years_since_commissioning[1 < years_since_commissioning] - 1 + fractional_degredation[1 < years_since_commissioning] = ( + first_year_degredation + + subsequent_year_degredation + * (years_since_commissioning[1 < years_since_commissioning] - 1) ) return fractional_degredation diff --git a/pyproject.toml b/pyproject.toml index 46e6dc6..3ac7f15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ [project.optional-dependencies] dev = [ "build >=1.2.1, <2", - "black >=23, <24", + "black >=24, <25", "check-manifest >=0.49, <0.50", "pylint >=2, <3", ]