updates to help with typing

pull/1323/head
Chris Caron 2025-05-24 20:28:08 -04:00
parent b20c34bd6c
commit 1a275bc6fe
1 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ import os
import json
import base64
import struct
from typing import Optional
from ..utils.base64 import base64_urlencode, base64_urldecode
from ..apprise_attachment import AppriseAttachment
from ..asset import AppriseAsset
@ -494,7 +495,7 @@ class ApprisePEMController:
def encrypt_webpush(self, message: str | bytes,
# Information required
public_key: ec.EllipticCurvePublicKey,
public_key: 'ec.EllipticCurvePublicKey',
auth_secret: bytes) -> bytes:
"""
Encrypt a WebPush message using the recipient's public key and auth
@ -568,7 +569,7 @@ class ApprisePEMController:
def encrypt(self,
message: str | bytes,
public_key: ec.EllipticCurvePublicKey | None = None,
public_key: 'Optional[ec.EllipticCurvePublicKey]' = None,
salt: bytes | None = None) -> str | None:
"""
Encrypts a message using the recipient's public key (or self public