From 0dba57fb0dbc9180bb5a3c7259488a56fdf678b8 Mon Sep 17 00:00:00 2001 From: Henrik Blidh Date: Mon, 29 Apr 2024 09:49:26 +0200 Subject: [PATCH] Another attempt to fix mypy number 2 --- tests/test_exceptions.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 0a5d462..3addd7c 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -1,12 +1,16 @@ -from builtins import type as Type from collections import namedtuple +import sys from typing import Union import pytest import bankid - +if sys.version_info >= (3, 9): + from builtins import type as Type +else: + # Remove once PyBankID no longer support Python 3.8 or lower + from typing import Type @pytest.mark.parametrize(