fix exception

This commit is contained in:
2025-05-24 11:29:37 -03:00
parent c7cf30859a
commit be177a9b40
3 changed files with 4 additions and 4 deletions

View File

@@ -313,8 +313,8 @@ class TransactKey:
pairs: tuple[KeyPair, ...] = ()
def __add__(self, other: SortKey | KeyPair) -> 'TransactKey':
if not isinstance(other, SortKey):
raise TypeError('Can only add a SortKey to a TransactKey')
if not isinstance(other, (SortKey, KeyPair)):
raise TypeError('Can only add a SortKey and KeyPair to a TransactKey')
if isinstance(other, SortKey):
other = KeyPair(self.pk, other)

View File

@@ -1,6 +1,6 @@
[project]
name = "layercake"
version = "0.3.4"
version = "0.3.5"
description = "Packages shared dependencies to optimize deployment and ensure consistency across functions."
readme = "README.md"
authors = [

2
layercake/uv.lock generated
View File

@@ -589,7 +589,7 @@ wheels = [
[[package]]
name = "layercake"
version = "0.3.3"
version = "0.3.4"
source = { editable = "." }
dependencies = [
{ name = "arnparse" },