From d745885a7108821d4edd1bad06405ac426c7acec Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 May 2021 21:20:56 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#129) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- src/sid/matching_probabilities.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e07b3ec8..0b8cc996 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: - id: text-unicode-replacement-char exclude_types: [jupyter] - repo: https://github.com/asottile/pyupgrade - rev: v2.16.0 + rev: v2.18.2 hooks: - id: pyupgrade args: [--py36-plus] @@ -76,7 +76,7 @@ repos: Pygments, ] - repo: https://github.com/nbQA-dev/nbQA - rev: 0.8.1 + rev: 0.9.0 hooks: - id: nbqa-black - id: nbqa-pyupgrade diff --git a/src/sid/matching_probabilities.py b/src/sid/matching_probabilities.py index 90e46108..9b8062dd 100644 --- a/src/sid/matching_probabilities.py +++ b/src/sid/matching_probabilities.py @@ -218,6 +218,6 @@ def _generate_einsum_signature(n_trans_prob): letters = string.ascii_letters[:n_letters] inputs = [letters[i : i + 2] for i in range(0, len(letters), 2)] - result = ["".join([duo[i] for duo in inputs]) for i in range(len(inputs[0]))] + result = ["".join(duo[i] for duo in inputs) for i in range(len(inputs[0]))] return ", ".join(inputs) + " -> " + "".join(result)