Commit Graph

11 Commits

Author SHA1 Message Date
Lonami Exo
8c00d2f088 Update error types used by generator 2023-09-17 22:49:10 +02:00
Lonami Exo
4b2d252fe1 Significantly clean-up imports
Sure wish I would've automated this.
2023-09-02 23:19:04 +02:00
Lonami Exo
f69e309b0b Use pytest-asyncio for client and sender tests 2023-09-01 14:02:24 +02:00
Lonami Exo
9ba6e2ded6 Generate deserializers for requests 2023-09-01 13:25:17 +02:00
Lonami Exo
9e582ca0fa Avoid storing memoryview in deserialized objects 2023-08-31 12:25:00 +02:00
Lonami Exo
84e14c2ec4 Make Request class a generic container 2023-08-31 10:34:36 +02:00
Lonami Exo
e12845c38b Fix deserialization of bools 2023-08-30 14:53:35 +02:00
Lonami Exo
269ee4f05f Port mtproto from grammers 2023-07-09 21:16:55 +02:00
Lonami Exo
e74332de75 Improve codegen
Avoid on-import modification of classes.
This makes it possible to have multiple namespaces work together.

Implement equality on all generated types.
This enables support in tests as well feeling similar to dataclasses.

Make generated code constructors keyword-only.
This increases readability and reduces risk of breakage during upgrades.
2023-07-08 12:15:11 +02:00
Lonami Exo
7b707cfc6c Port tl-types fromm grammers 2023-07-05 22:35:18 +02:00
Lonami Exo
fed06f40ed Port tl-gen from grammers 2023-07-03 19:19:20 +02:00