From f5ad561c512e5c6979fd8f80525d27a8d6fbf7b2 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 16 May 2020 14:57:57 +0200 Subject: [PATCH] Use __truediv__ instead of __div__ This ignores Python 2, but that shouldn't be an issue, since we are going to drop it anyway. --- jedi/inference/syntax_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/inference/syntax_tree.py b/jedi/inference/syntax_tree.py index 015b1b92..a3f379af 100644 --- a/jedi/inference/syntax_tree.py +++ b/jedi/inference/syntax_tree.py @@ -35,7 +35,7 @@ operator_to_magic_method = { '+': '__add__', '-': '__sub__', '*': '__mul__', - '/': '__div__', + '/': '__truediv__', '//': '__floordiv__', '%': '__mod__', '**': '__pow__',