1
0
forked from VimPlug/jedi

Implement magic method return values, fixes #1577

This commit is contained in:
Dave Halter
2020-05-15 19:09:44 +02:00
parent be594f1498
commit 41c146a6f3
4 changed files with 61 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ a
(3 ** 3)
#? int() str()
(3 ** 'a')
#? int() str()
#? int()
(3 + 'a')
#? bool()
(3 == 'a')
@@ -147,3 +147,18 @@ a = foobarbaz + 'hello'
#? int() float()
{'hello': 1, 'bar': 1.0}[a]
# -----------------
# stubs
# -----------------
from datetime import datetime, timedelta
#?
(datetime - timedelta)
#? datetime()
(datetime() - timedelta())
#? timedelta()
(timedelta() - datetime())
#? timedelta()
(timedelta() - timedelta())