Use classes when type hinting primitives

This commit is contained in:
Lonami Exo
2019-05-02 19:12:11 +02:00
parent cb56c54351
commit 63ef7284f7
2 changed files with 4 additions and 2 deletions

View File

@@ -170,9 +170,11 @@ class TLArg:
'long': 'int',
'int128': 'int',
'int256': 'int',
'double': 'float',
'string': 'str',
'date': 'Optional[datetime]', # None date = 0 timestamp
'bytes': 'bytes',
'Bool': 'bool',
'true': 'bool',
}.get(cls, "'Type{}'".format(cls))
if self.is_vector: