From 25d0ac653452eba2f788a5d33ac579b0ab0ba7e3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 16 Oct 2020 22:29:59 +0200 Subject: [PATCH] ci: bump pyright version --- azure-pipelines.yml | 2 +- passbook/flows/management/commands/benchmark.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index df92f4d11..e8c371262 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -89,7 +89,7 @@ stages: versionSpec: '3.8' - task: CmdLine@2 inputs: - script: npm install -g pyright@1.1.75 + script: npm install -g pyright@1.1.79 - task: CmdLine@2 inputs: script: | diff --git a/passbook/flows/management/commands/benchmark.py b/passbook/flows/management/commands/benchmark.py index 3672c78d9..1cd6e7a09 100644 --- a/passbook/flows/management/commands/benchmark.py +++ b/passbook/flows/management/commands/benchmark.py @@ -91,8 +91,8 @@ class Command(BaseCommand): # pragma: no cover def output_overview(self, values): """Output results human readable""" - total_max = max([max(inner) for inner in values]) - total_min = min([min(inner) for inner in values]) + total_max: int = max([max(inner) for inner in values]) + total_min: int = min([min(inner) for inner in values]) total_avg = sum([sum(inner) for inner in values]) / sum( [len(inner) for inner in values] )