mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 19:12:29 +00:00
Sort constructors on the documentation for predictable results
This commit is contained in:
@@ -218,6 +218,9 @@ def generate_documentation(scheme_file):
|
|||||||
else:
|
else:
|
||||||
dictionary[tlobject.result] = [tlobject]
|
dictionary[tlobject.result] = [tlobject]
|
||||||
|
|
||||||
|
for tltype, constructors in tltypes.items():
|
||||||
|
tltypes[tltype] = list(sorted(constructors, key=lambda c: c.name))
|
||||||
|
|
||||||
for tlobject in tlobjects:
|
for tlobject in tlobjects:
|
||||||
filename = get_create_path_for(tlobject)
|
filename = get_create_path_for(tlobject)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user