Commit Graph

17 Commits

Author SHA1 Message Date
Dave Halter
d821451a64 Upgrade typeshed 2021-01-01 03:18:49 +01:00
Dave Halter
50b85153ce Remove a lot of test references to Python 2/3.5 2020-07-02 00:17:21 +02:00
Peter Law
c62cbd6654 Explicitly handle a not in b operator comparison
This avoids a `KeyError` from operator_to_magic_method lookup for
this case. Jedi probably could check for `__contains__` here, however
as it doesn't do so for `in` checks I'm following that lead for now.

Fixes https://github.com/davidhalter/jedi/issues/1594.
2020-05-23 12:49:53 +01:00
Dave Halter
d16355fcf2 Fix tests in Python 2 2020-05-16 17:47:33 +02:00
Dave Halter
b3fc10a6e4 Magic methods fixes for reverse methods 2020-05-16 15:39:48 +02:00
Dave Halter
41c146a6f3 Implement magic method return values, fixes #1577 2020-05-15 23:53:44 +02:00
Dave Halter
11a12d6ca8 Refactor execute_operation a bit 2020-01-12 13:01:08 +01:00
Dave Halter
1c80705276 Fix power operation, fixes #1268 2018-12-25 00:51:22 +01:00
Dave Halter
8d65129a19 Power operation was not implemented before. 2015-11-20 18:26:39 +01:00
Dave Halter
5334f8dbad Implemented the in operator in a very simple fashion: It returns nothing. 2015-01-09 16:05:09 +01:00
Dave Halter
774ade955d Fixing for loop additions. 2014-12-04 17:58:01 +01:00
Dave Halter
bdcbac160b fix string/array (sequence) multiplications with integer. 2014-06-26 00:49:56 +02:00
Dave Halter
b685101efb Nothing + string literal should not result in string literal but in a string type (because we don't know how the string literal could have looked like 2014-04-22 15:16:48 +02:00
Dave Halter
70efa159f2 fix for slices which have been screwed up in a few previous commits... again... 2014-04-22 10:21:15 +02:00
Dave Halter
eaf54942fc fix a slice issue with precedences. 2014-04-21 02:30:17 +02:00
Dave Halter
ab154d46d5 fixed a very nasty problem with exponential growth in precedence for loops 2014-04-20 12:42:53 +02:00
Dave Halter
6f17000fa8 test/completion/operators.py -> precedence.py 2014-04-20 12:14:07 +02:00