Skip to content

Commit e6ba497

Browse files
committed
Fix Python stubs
1 parent 0d52344 commit e6ba497

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

umbral-pre-python/stubtest-allowlist.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

umbral-pre-python/umbral_pre/__init__.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PublicKey:
6464
@final
6565
class Signer:
6666

67-
def __init__(self, secret_key: SecretKey):
67+
def __new__(cls, secret_key: SecretKey):
6868
...
6969

7070
def sign(self, message: bytes) -> Signature:
@@ -237,7 +237,7 @@ class CurvePoint:
237237
@final
238238
class Parameters:
239239

240-
def __init__(self) -> None:
240+
def __new__(cls):
241241
...
242242

243243
u: CurvePoint
@@ -246,8 +246,8 @@ class Parameters:
246246
@final
247247
class ReencryptionEvidence:
248248

249-
def __init__(
250-
self,
249+
def __new__(
250+
cls,
251251
capsule: Capsule,
252252
vcfrag: VerifiedCapsuleFrag,
253253
verifying_pk: PublicKey,

0 commit comments

Comments
 (0)