fix exception
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
2
layercake/uv.lock
generated
@@ -589,7 +589,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "layercake"
|
||||
version = "0.3.3"
|
||||
version = "0.3.4"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "arnparse" },
|
||||
|
||||
Reference in New Issue
Block a user