mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Use classes when type hinting primitives
This commit is contained in:
@@ -120,8 +120,8 @@ def _write_modules(
|
||||
for c in constructors)))
|
||||
|
||||
imports = {}
|
||||
primitives = ('int', 'long', 'int128', 'int256', 'string',
|
||||
'date', 'bytes', 'true')
|
||||
primitives = {'int', 'long', 'int128', 'int256', 'double',
|
||||
'string', 'date', 'bytes', 'Bool', 'true'}
|
||||
# Find all the types in other files that are used in this file
|
||||
# and generate the information required to import those types.
|
||||
for t in tlobjects:
|
||||
|
Reference in New Issue
Block a user