refactor fast_parent_copy, use new_elements_default to hand in a dictionary, that contains all the generated duplicates.
This commit is contained in:
1 parent
3cf8bfa8e1
commit
0ef030848d
3 files changed
+24
-20
No files matched your search
@@ -43,11 +43,12 @@ def fooooo(obj):
|
||||
|
||||
|
||||
def fooooo2(obj):
|
||||
if isinstance(obj, datetime.datetime):
|
||||
if isinstance(obj, datetime.date):
|
||||
return obj
|
||||
else:
|
||||
return 1
|
||||
|
||||
a
|
||||
# In earlier versions of Jedi, this returned both datetime and int, but now
|
||||
# Jedi does flow checks and realizes that the top return isn't executed.
|
||||
#? int()
|
||||
|
||||
Reference in new issue
Block a user