Currently:
|
def load_cert_chain( |
|
self, |
|
certfile: PathLike, |
|
keyfile: Optional[PathLike] = None, |
|
password: Optional[Union[bytes, str]] = None, |
|
) -> None: |
Given this is just passed into open, I'd have expected the type signature to allow something like open's argument:
FileDescriptorOrPath: TypeAlias = int | StrOrBytesPath
Or, potentially more likely, just StrOrBytesPath:
StrOrBytesPath: TypeAlias = str | bytes | PathLike[str] | PathLike[bytes] # stable