From c6b4fad2be39598ddbfacee52368f2834bff6f86 Mon Sep 17 00:00:00 2001 From: Milad Khoshdel Date: Mon, 14 Sep 2026 23:05:11 +0330 Subject: [PATCH 1/2] fix: support Python 3.8 type annotations --- luhn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luhn.py b/luhn.py index 6d20498..e6bf069 100644 --- a/luhn.py +++ b/luhn.py @@ -2,7 +2,9 @@ from __future__ import annotations -NumberLike = str | int +from typing import Union + +NumberLike = Union[str, int] REMOVE_CHARS = " -./\\," DIGIT_CLEANUP_TABLE = str.maketrans("", "", REMOVE_CHARS) From 65da423616b1c6b52e7e41d130aad146a6bca30c Mon Sep 17 00:00:00 2001 From: Milad Khoshdel Date: Mon, 14 Sep 2026 23:07:06 +0330 Subject: [PATCH 2/2] add more python version to tests --- .github/workflows/python-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index d7512d3..f0cbdae 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - name: Check out repository