Update ormsgpack (#5034)

* Update ormsgpack

- Now supports bytearray/memoryview passthrough

* Lint
This commit is contained in:
Nuno Campos
2025-06-10 00:30:58 +00:00
committed by GitHub
parent 1519b90414
commit 67b1dc602e
9 changed files with 7392 additions and 7397 deletions
@@ -54,6 +54,7 @@
" if not os.environ.get(var):\n",
" os.environ[var] = getpass.getpass(f\"Please provide your {var}\")\n",
"\n",
"\n",
"_set_if_undefined(\"OPENAI_API_KEY\")\n",
"_set_if_undefined(\"TAVILY_API_KEY\")"
]
Generated
+3059 -3059
View File
File diff suppressed because it is too large Load Diff
+703 -703
View File
File diff suppressed because it is too large Load Diff
+651 -650
View File
File diff suppressed because it is too large Load Diff
@@ -320,13 +320,6 @@ def _msgpack_default(obj: Any) -> str | ormsgpack.Ext:
(obj.__class__.__module__, obj.__class__.__name__, obj.hex),
),
)
elif isinstance(obj, bytearray):
return ormsgpack.Ext(
EXT_CONSTRUCTOR_SINGLE_ARG,
_msgpack_enc(
(obj.__class__.__module__, obj.__class__.__name__, bytes(obj)),
),
)
elif isinstance(obj, decimal.Decimal):
return ormsgpack.Ext(
EXT_CONSTRUCTOR_SINGLE_ARG,
+1 -1
View File
@@ -13,7 +13,7 @@ license = "MIT"
license-files = ['LICENSE']
dependencies = [
"langchain-core>=0.2.38",
"ormsgpack>=1.8.0",
"ormsgpack>=1.10.0",
]
[project.urls]
+648 -648
View File
File diff suppressed because it is too large Load Diff
+1586 -1586
View File
File diff suppressed because it is too large Load Diff
+743 -743
View File
File diff suppressed because it is too large Load Diff