Skip to content

Commit fe19de7

Browse files
authored
Merge pull request #36 from Oli4/main
fix(core.pyi): replaces typing.TypeAlias by typing_extensions.TypeAlias for compatibility with python3.9
2 parents 5c0ea2e + c5ffc14 commit fe19de7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

construct-stubs/core.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ from construct.lib import (
2020
from cryptography.hazmat.primitives.ciphers import Cipher
2121
from cryptography.hazmat.primitives.ciphers.aead import AESCCM, AESGCM, ChaCha20Poly1305
2222
from cryptography.hazmat.primitives.ciphers.modes import Mode
23-
from typing_extensions import Buffer
23+
from typing_extensions import Buffer, TypeAlias
2424

2525
# unfortunately, there are a few duplications with "typing", e.g. Union and Optional, which is why the t. prefix must be used everywhere
2626

@@ -29,7 +29,7 @@ from typing_extensions import Buffer
2929
# - Higher Kinded Types: https://github.com/python/typing/issues/548
3030
# - Higher Kinded Types: https://sobolevn.me/2020/10/higher-kinded-types-in-python
3131

32-
ReadableBuffer: t.TypeAlias = Buffer
32+
ReadableBuffer: TypeAlias = Buffer
3333
StreamType = t.IO[bytes]
3434
FilenameType = t.Union[str, bytes, os.PathLike[str], os.PathLike[bytes]]
3535
PathType = str

0 commit comments

Comments
 (0)