mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
jwcrypto: Fix export_to_pem password argument (#14037)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Unused
|
||||
from collections.abc import Callable, Sequence
|
||||
from enum import Enum
|
||||
from typing import Any, Literal, NamedTuple, TypeVar, overload
|
||||
@@ -201,7 +202,10 @@ class JWK(dict[str, Any]):
|
||||
),
|
||||
) -> None: ...
|
||||
def import_from_pem(self, data: bytes, password: bytes | None = None, kid: str | None = None) -> None: ...
|
||||
def export_to_pem(self, private_key: bool = False, password: bool = False) -> bytes: ...
|
||||
@overload
|
||||
def export_to_pem(self, private_key: Literal[False] = False, password: Unused = False) -> bytes: ...
|
||||
@overload
|
||||
def export_to_pem(self, private_key: Literal[True], password: bytes | None) -> bytes: ...
|
||||
@classmethod
|
||||
def from_pyca(
|
||||
cls,
|
||||
|
||||
Reference in New Issue
Block a user