Skip to content

Commit b02dcdb

Browse files
committed
backwards compatibility
1 parent f6d598f commit b02dcdb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

refinery/lib/zip.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import zlib
1212

1313
from datetime import datetime
14-
from typing import Iterable, NamedTuple, Self
14+
from typing import NamedTuple, TYPE_CHECKING
1515

1616
from Cryptodome.Cipher import AES, ARC2, ARC4, DES, DES3, Blowfish
1717
from Cryptodome.Hash import HMAC, SHA1
@@ -26,6 +26,9 @@
2626
from refinery.lib.types import buf
2727
from refinery.units.misc.datefix import datefix
2828

29+
if TYPE_CHECKING:
30+
from typing import Self, Iterable
31+
2932

3033
class PasswordRequired(Exception):
3134
pass

0 commit comments

Comments
 (0)