diff --git a/awscrt/io.py b/awscrt/io.py index 822fcaf63..ad1443f11 100644 --- a/awscrt/io.py +++ b/awscrt/io.py @@ -12,6 +12,7 @@ from awscrt import NativeResource from enum import IntEnum import threading +from typing import Union class LogLevel(IntEnum): @@ -374,7 +375,7 @@ def create_client_with_mtls(cert_buffer, key_buffer): @staticmethod def create_client_with_mtls_pkcs11(*, pkcs11_lib: 'Pkcs11Lib', - user_pin: str, + user_pin: Union[str, None], slot_id: int = None, token_label: str = None, private_key_label: str = None,