Skip to content

Commit 0dba57f

Browse files
committed
Another attempt to fix mypy number 2
1 parent 9b71945 commit 0dba57f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_exceptions.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
from builtins import type as Type
21
from collections import namedtuple
2+
import sys
33
from typing import Union
44

55
import pytest
66

77
import bankid
88

9-
9+
if sys.version_info >= (3, 9):
10+
from builtins import type as Type
11+
else:
12+
# Remove once PyBankID no longer support Python 3.8 or lower
13+
from typing import Type
1014

1115

1216
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)