mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
If branch inference should not trigger for things we don't know, fixes #1530
This commit is contained in:
@@ -43,6 +43,9 @@ else:
|
||||
|
||||
def addition(a, b):
|
||||
if type(a) == type(b):
|
||||
# Might still be a type error, we might want to change this in the
|
||||
# future.
|
||||
#! 9 type-error-operation
|
||||
return a + b
|
||||
else:
|
||||
#! 9 type-error-operation
|
||||
|
||||
Reference in New Issue
Block a user