mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 19:03:46 +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.
14 lines
272 B
Markdown
14 lines
272 B
Markdown
Code generation:
|
|
|
|
```sh
|
|
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
|
|
```
|