fix exception
This commit is contained in:
@@ -313,8 +313,8 @@ class TransactKey:
|
|||||||
pairs: tuple[KeyPair, ...] = ()
|
pairs: tuple[KeyPair, ...] = ()
|
||||||
|
|
||||||
def __add__(self, other: SortKey | KeyPair) -> 'TransactKey':
|
def __add__(self, other: SortKey | KeyPair) -> 'TransactKey':
|
||||||
if not isinstance(other, SortKey):
|
if not isinstance(other, (SortKey, KeyPair)):
|
||||||
raise TypeError('Can only add a SortKey to a TransactKey')
|
raise TypeError('Can only add a SortKey and KeyPair to a TransactKey')
|
||||||
|
|
||||||
if isinstance(other, SortKey):
|
if isinstance(other, SortKey):
|
||||||
other = KeyPair(self.pk, other)
|
other = KeyPair(self.pk, other)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "layercake"
|
name = "layercake"
|
||||||
version = "0.3.4"
|
version = "0.3.5"
|
||||||
description = "Packages shared dependencies to optimize deployment and ensure consistency across functions."
|
description = "Packages shared dependencies to optimize deployment and ensure consistency across functions."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [
|
authors = [
|
||||||
|
|||||||
2
layercake/uv.lock
generated
2
layercake/uv.lock
generated
@@ -589,7 +589,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "layercake"
|
name = "layercake"
|
||||||
version = "0.3.3"
|
version = "0.3.4"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "arnparse" },
|
{ name = "arnparse" },
|
||||||
|
|||||||
Reference in New Issue
Block a user