Significant perfomance improve about x10 more times. Replace pydantic to msgspec.

This commit is contained in:
mor 2023-05-11 13:20:55 +03:00
parent cf269e15f4
commit b1ba862539
141 changed files with 695 additions and 617 deletions

View file

@ -13,11 +13,18 @@ class TestTelegramMethodRemoveUnset:
[
[{}, set()],
[{"foo": "bar"}, {"foo"}],
[{"foo": "bar", "baz": sentinel.DEFAULT}, {"foo"}],
[
{
"foo": "bar",
},
{"foo"},
],
],
)
def test_remove_unset(self, values, names):
validated = TelegramMethod.remove_unset(values)
import msgspec
validated = msgspec.to_builtins(values)
assert set(validated.keys()) == names