From 94dbc3ca23c5d00a56d4787c3ebd8742f3ebb6e7 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 5 May 2025 20:33:45 +0200 Subject: [PATCH] Update in_.py Deleted superfluous modulus operation --- stdnum/jp/in_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdnum/jp/in_.py b/stdnum/jp/in_.py index d21f58ae..cdd45a14 100644 --- a/stdnum/jp/in_.py +++ b/stdnum/jp/in_.py @@ -61,7 +61,7 @@ def calc_check_digit(number: str) -> str: """Calculate the check digit. The number passed should not have the check digit included.""" weights = (6, 5, 4, 3, 2, 7, 6, 5, 4, 3, 2) - s = sum(w * int(n) for w, n in zip(weights, number)) % 11 + s = sum(w * int(n) for w, n in zip(weights, number)) return str(-s % 11 % 10)