Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz committed Jan 31, 2025
1 parent 3de9c15 commit 533d518
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/library_rust_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ jobs:
CORES=$(node -e 'console.log(os.cpus().length)')
make transpile_rust TRANSPILE_TESTS_IN_RUST=1 CORES=$CORES
- name: Test Linter for Rust examples and implementation_from_dafny.rs
working-directory: ${{ matrix.library }}/runtimes/rust
shell: bash
run: |
cargo clippy
- name: Test ${{ matrix.library }} Rust
shell: bash
working-directory: ./${{ matrix.library }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def __repr__(self) -> str:


def _symmetric_signature_algorithm_from_dict(
d: Dict[str, Any]
d: Dict[str, Any],
) -> SymmetricSignatureAlgorithm:
if "HMAC" in d:
return SymmetricSignatureAlgorithmHMAC.from_dict(d)
Expand Down Expand Up @@ -1504,7 +1504,7 @@ def as_dict(self) -> Dict[str, Any]:

@staticmethod
def from_dict(
d: Dict[str, Any]
d: Dict[str, Any],
) -> "KmsEcdhStaticConfigurationsKmsPublicKeyDiscovery":
if len(d) != 1:
raise TypeError(f"Unions may have exactly 1 value, but found {len(d)}")
Expand Down Expand Up @@ -1535,7 +1535,7 @@ def as_dict(self) -> Dict[str, Any]:

@staticmethod
def from_dict(
d: Dict[str, Any]
d: Dict[str, Any],
) -> "KmsEcdhStaticConfigurationsKmsPrivateKeyToStaticPublicKey":
if len(d) != 1:
raise TypeError(f"Unions may have exactly 1 value, but found {len(d)}")
Expand Down Expand Up @@ -1591,7 +1591,7 @@ def __repr__(self) -> str:


def _kms_ecdh_static_configurations_from_dict(
d: Dict[str, Any]
d: Dict[str, Any],
) -> KmsEcdhStaticConfigurations:
if "KmsPublicKeyDiscovery" in d:
return KmsEcdhStaticConfigurationsKmsPublicKeyDiscovery.from_dict(d)
Expand Down Expand Up @@ -3252,7 +3252,7 @@ def as_dict(self) -> Dict[str, Any]:

@staticmethod
def from_dict(
d: Dict[str, Any]
d: Dict[str, Any],
) -> "CreateDefaultCryptographicMaterialsManagerInput":
"""Creates a CreateDefaultCryptographicMaterialsManagerInput from a
dictionary."""
Expand Down Expand Up @@ -3630,7 +3630,7 @@ def as_dict(self) -> Dict[str, Any]:

@staticmethod
def from_dict(
d: Dict[str, Any]
d: Dict[str, Any],
) -> "RawEcdhStaticConfigurationsRawPrivateKeyToStaticPublicKey":
if len(d) != 1:
raise TypeError(f"Unions may have exactly 1 value, but found {len(d)}")
Expand Down Expand Up @@ -3664,7 +3664,7 @@ def as_dict(self) -> Dict[str, Any]:

@staticmethod
def from_dict(
d: Dict[str, Any]
d: Dict[str, Any],
) -> "RawEcdhStaticConfigurationsEphemeralPrivateKeyToStaticPublicKey":
if len(d) != 1:
raise TypeError(f"Unions may have exactly 1 value, but found {len(d)}")
Expand Down Expand Up @@ -3721,7 +3721,7 @@ def __repr__(self) -> str:


def _raw_ecdh_static_configurations_from_dict(
d: Dict[str, Any]
d: Dict[str, Any],
) -> RawEcdhStaticConfigurations:
if "PublicKeyDiscovery" in d:
return RawEcdhStaticConfigurationsPublicKeyDiscovery.from_dict(d)
Expand Down

0 comments on commit 533d518

Please sign in to comment.