diff --git a/tests/bloom_test.py b/tests/bloom_test.py index 93d68d8..9a393e9 100755 --- a/tests/bloom_test.py +++ b/tests/bloom_test.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 """Unittest class""" +from __future__ import annotations + import hashlib import os import sys diff --git a/tests/countingbloom_test.py b/tests/countingbloom_test.py index 6527945..5d8f9e7 100755 --- a/tests/countingbloom_test.py +++ b/tests/countingbloom_test.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 """Unittest class""" +from __future__ import annotations + import hashlib import os import sys diff --git a/tests/countingcuckoo_test.py b/tests/countingcuckoo_test.py index e600cbc..93e505e 100755 --- a/tests/countingcuckoo_test.py +++ b/tests/countingcuckoo_test.py @@ -1,7 +1,8 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- """Unittest class""" +from __future__ import annotations + import hashlib import os import sys diff --git a/tests/countminsketch_test.py b/tests/countminsketch_test.py index 910e14d..827fe2c 100755 --- a/tests/countminsketch_test.py +++ b/tests/countminsketch_test.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 """Unittest class""" +from __future__ import annotations + import hashlib import os import sys diff --git a/tests/cuckoo_test.py b/tests/cuckoo_test.py index c49e23b..158e624 100755 --- a/tests/cuckoo_test.py +++ b/tests/cuckoo_test.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 """Unittest class""" +from __future__ import annotations + import hashlib import os import sys diff --git a/tests/expandingbloom_test.py b/tests/expandingbloom_test.py index 468aefa..d1ed6a4 100755 --- a/tests/expandingbloom_test.py +++ b/tests/expandingbloom_test.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 """Unittest class""" +from __future__ import annotations + import hashlib import os import sys diff --git a/tests/hashes_test.py b/tests/hashes_test.py index 2322325..3b60083 100755 --- a/tests/hashes_test.py +++ b/tests/hashes_test.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 """Unittest class""" +from __future__ import annotations + import hashlib import sys import unittest diff --git a/tests/quotientfilter_test.py b/tests/quotientfilter_test.py index f6dde1f..0c9fe54 100644 --- a/tests/quotientfilter_test.py +++ b/tests/quotientfilter_test.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 """Unittest class""" +from __future__ import annotations + import os import random import sys diff --git a/tests/test_utilities.py b/tests/test_utilities.py index 10fc721..c01d61d 100755 --- a/tests/test_utilities.py +++ b/tests/test_utilities.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 """probables utilitites tests""" +from __future__ import annotations + import os import sys import unittest diff --git a/tests/utilities.py b/tests/utilities.py index 9d0e875..802a5ef 100644 --- a/tests/utilities.py +++ b/tests/utilities.py @@ -1,14 +1,15 @@ """utility functions""" +from __future__ import annotations + from hashlib import md5 from pathlib import Path -from typing import Union from probables.constants import UINT64_T_MAX from probables.hashes import KeyT -def calc_file_md5(filename: Union[str, Path]) -> str: +def calc_file_md5(filename: str | Path) -> str: """calc the md5 of a file""" with open(filename, "rb") as filepointer: res = filepointer.read()