mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-20 04:21:13 +08:00
better understanding of isinstance in executions (temporary commit)
This commit is contained in:
@@ -38,3 +38,12 @@ def fooooo(obj):
|
||||
if isinstance(obj, datetime.datetime):
|
||||
#? datetime.datetime
|
||||
obj
|
||||
|
||||
def fooooo2(obj):
|
||||
if isinstance(obj, datetime.datetime):
|
||||
return obj
|
||||
else:
|
||||
return 1
|
||||
|
||||
#? int() datetime.datetime
|
||||
fooooo2('')
|
||||
|
||||
Reference in New Issue
Block a user