Skip to content

Commit

Permalink
[Key Vault] Prepare for mypy 1.13.0 (Azure#38935)
Browse files Browse the repository at this point in the history
  • Loading branch information
mccoyp authored Dec 18, 2024
1 parent 95f91d4 commit 7c22c81
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import abc
import sys

from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.asymmetric import utils
Expand All @@ -13,13 +10,6 @@
from ..transform import SignatureTransform
from ..._enums import SignatureAlgorithm as KeyVaultSignatureAlgorithm

if sys.version_info < (3, 3):
abstractproperty = abc.abstractproperty
else: # abc.abstractproperty is deprecated as of 3.3
import functools

abstractproperty = functools.partial(property, abc.abstractmethod)


class _EcdsaSignatureTransform(SignatureTransform):
def __init__(self, key, hash_algorithm):
Expand All @@ -39,10 +29,6 @@ class _Ecdsa(SignatureAlgorithm):
def create_signature_transform(self, key):
return _EcdsaSignatureTransform(key, self.default_hash_algorithm)

@abstractproperty
def coordinate_length(self):
pass


class Ecdsa256(_Ecdsa):
_name = KeyVaultSignatureAlgorithm.es256_k
Expand Down

0 comments on commit 7c22c81

Please sign in to comment.