Fix generated code showing the incorrent type hint for datetime

This commit is contained in:
Lonami Exo 2017-09-19 13:20:34 +02:00
parent 1d3273a306
commit 81d4d76d16

View File

@ -249,7 +249,7 @@ class TLArg:
'int': 'int',
'long': 'int',
'string': 'str',
'date': 'datetime',
'date': 'datetime.datetime',
'bytes': 'bytes',
'true': 'bool',
}.get(self.type, 'TLObject')