Telethon/DEVELOPING.md
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

272 B

Code generation:

pip install -e generator/
python -m telethon_generator.codegen api.tl client/src/telethon/_impl/tl
python -m telethon_generator.codegen mtproto.tl client/src/telethon/_impl/tl/mtproto

Formatting, type-checking and testing:

./check.sh