mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
e74332de75
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.
272 B
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