Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter e76120da06 Fix partial signatures, fixes #1371 2019-07-24 02:28:49 +02:00
Dave Halter 25bbecc269 Make sure with a test that the staticmethod signature is also correct 2019-07-24 01:15:48 +02:00
Dave Halter 08bb9cfae7 Fix classmethod signature, fixes #498 2019-07-24 01:06:49 +02:00
Dave Halter 703b747a31 Deal with annotation on *args and **kwargs correctly, fixes #980 2019-07-23 23:56:30 +02:00
Dave Halter ff149b74e0 Use LazyContextWrapper more 2019-07-23 13:59:08 +02:00
Dave Halter 3d08eb92d5 Very small refactoring 2019-07-23 13:08:57 +02:00
Dave Halter 18eb7622ba Skip numpydoc tests for Python 2 2019-07-22 00:49:40 +02:00
Dave Halter 13dd173664 Remove code that didn't mean anything 2019-07-22 00:39:19 +02:00
Dave Halter 73c078ec7a Fix docstrings for wrapped functions, fixes #906 2019-07-21 12:19:22 +02:00
Dave Halter cdf50e2a69 Fix an isue about dict ordering in Python before 3.6. 2019-07-19 12:54:22 +02:00
Dave Halter 2b0b29f921 Make it clearer when get_param is used. 2019-07-19 11:57:55 +02:00
Dave Halter 0dc60fb535 A small dataclass refactoring 2019-07-19 11:44:11 +02:00
Dave Halter 5722a3458e Evaluate annotations for dataclasses when infer is called on param 2019-07-19 11:42:08 +02:00
Dave Halter 93c52f615a Get inheritance of dataclass right 2019-07-19 11:35:13 +02:00
Dave Halter 050d686a27 A first working iteration of dataclass signatures, fixes #1213 2019-07-19 02:01:36 +02:00
Dave Halter 7156ddf607 Remove an unused function 2019-07-19 01:32:27 +02:00
Dave Halter 1cccc832b6 Dataclass progress 2019-07-19 01:27:37 +02:00
Dave Halter fd4eca5e03 Add enum changes to changelog 2019-07-18 12:19:21 +02:00
Dave Halter 1d9b9cff47 Fix a recursion error about getting metaclasses 2019-07-18 12:02:27 +02:00
Dave Halter f4fe113c0f One test about recursion issues only applied to Python 2 2019-07-18 12:00:47 +02:00
Dave Halter c7fc715535 Use class filters in instances differently so metaclass plugins work, fixes #1090 2019-07-18 11:20:54 +02:00
Dave Halter eeea88046e First step in working with metaclasses in plugins, see #1090. 2019-07-18 11:20:28 +02:00
Dave Halter dea887d27d Refactor the plugin registry 2019-07-16 12:48:54 +02:00
Dave Halter 8329e2e969 Remove classes from plugins and use decorators instead 2019-07-16 10:23:19 +02:00
Dave Halter 60415033b4 Prepare the v0.14.1 release 2019-07-13 16:00:27 +02:00
Dave Halter a06d760f45 Use fixture names everywhere 2019-07-10 23:26:59 -07:00
Dave Halter b7687fcfb7 Cleanup a test file 2019-07-10 23:23:18 -07:00
Dave Halter 0ec86d5034 Use parametrize instead of TestCase 2019-07-10 23:22:10 -07:00
Dave Halter cef23f44cd Remove a TestCase class usage 2019-07-10 19:32:19 -07:00
Dave Halter e889a4923e Use pytest.mark.parametrize for something instad of a class 2019-07-10 19:04:12 -07:00
Dave Halter 114aba462c Use the names fixture even more 2019-07-10 19:00:24 -07:00
Dave Halter 26c7cec7b5 Use the names fixture more 2019-07-10 18:39:33 -07:00
Dave Halter 3e3a33ab79 A small rename 2019-07-10 18:38:24 -07:00
Dave Halter 7f386e0e68 Refactor names tests 2019-07-10 18:34:40 -07:00
Dave Halter 82d970d2b8 A small refactoring 2019-07-10 18:24:21 -07:00
Dave Halter 3ed9e836cc Make sure __wrapped__ works properly when using an Interpreter, fixes #1353 2019-07-10 16:12:57 -07:00
Dave Halter f984e8d6ef Small refactoring 2019-07-10 15:38:41 -07:00
Dave Halter 670cf4d394 Make API param names appear without leading double underscores, fixes #1357 again 2019-07-10 12:10:12 -07:00
Dave Halter e85fba844c Fix some call signature tests 2019-07-09 00:46:53 -07:00
Dave Halter ee5557ddf6 Make expected index work in Python 3 2019-07-09 00:37:33 -07:00
Dave Halter 42f72b219b Test both closing brackets and non-closing brackets for CallSignature.index 2019-07-09 00:16:53 -07:00
Dave Halter 374721b789 Fix a case with errors 2019-07-09 00:04:53 -07:00
Dave Halter 01cec186ae Move some code around 2019-07-08 22:52:04 -07:00
Dave Halter 3fb89f9f9b Fix some kwargs cases 2019-07-08 22:38:22 -07:00
Dave Halter a0b4e76c1a Fix some *args issues 2019-07-08 17:03:45 -07:00
Dave Halter 97bf83aa03 Deal better with some error nodes 2019-07-08 14:26:11 -07:00
Dave Halter ca7658cab7 Delete unused code 2019-07-08 13:29:46 -07:00
Dave Halter dd78f4cfbf Fix some error node handling for call signatures 2019-07-08 13:22:07 -07:00
Dave Halter 08019075c3 Fix CallSignature index for a looot of cases, fixes #1364,#1363 2019-07-08 12:40:58 -07:00
Dave Halter 943617a94f Use recursion rather than other stuff 2019-07-05 23:51:24 -07:00
Dave Halter d579c0ad57 Even more refactorings 2019-07-05 15:24:39 -07:00
Dave Halter 76c6104415 small name refactoring 2019-07-05 14:35:48 -07:00
Dave Halter ef9d803ce3 Refactor some call details 2019-07-05 14:30:59 -07:00
Dave Halter a26cb42d07 Disable a test for Python 2 2019-07-04 09:31:22 -07:00
Dave Halter 6b9b2836ba Fix pow() signature, fixes #1357
This commit changes how params starting with __ are viewed as positional only params
2019-07-04 00:29:57 -07:00
Dave Halter abdb8de89d Merge branch 'master' of github.com:davidhalter/jedi 2019-07-03 23:49:18 -07:00
Dave Halter ac492ef598 Fix signature to_string 2019-07-03 23:44:58 -07:00
Dave Halter 947bfe7b78 Fix an issue with keyword params, fixes #1356 2019-07-03 22:35:46 -07:00
Dave Halter be6c90d135 Simplify some test code for param defaults, see #1356 2019-07-03 19:43:32 -07:00
Dave Halter 8cb059deda Merge branch 'function_signature_in_interpreter' of https://github.com/linupi/jedi 2019-07-03 19:11:36 -07:00
Dave Halter de138e9114 Improve a bit of dataclasses support, so at least the attributes can be seen
see #1213
2019-07-03 09:21:57 -07:00
Dave Halter 4c132d94b9 Make sure in tests that pep 0526 variables are also able to be used when using self, see #933 2019-07-01 23:34:28 -07:00
Dave Halter cb95dbc707 Cannot use pytest 5 yet 2019-07-01 22:30:59 -07:00
Dave Halter 1e3b6a201d Fix filters for classes and functions 2019-07-01 22:24:29 -07:00
Dave Halter 3829ef4785 Fix some small things to get more tests passing 2019-07-01 21:52:03 -07:00
Dave Halter b382f06be0 A better repr for Definition 2019-07-01 19:40:06 -07:00
Dave Halter 94faceb57c Merge branch 'master' of github.com:davidhalter/jedi 2019-06-30 22:14:02 -07:00
Dave Halter a9ff58683e Fix ClassVar filter for instances 2019-06-26 22:56:30 +02:00
Dave Halter fafd6b2ac6 Keyword completions are no longer possible directly after a number, fixes #1085 2019-06-26 15:04:46 +02:00
Dave Halter 265abe1d08 Fix super call goto for multiple inheritance, fixes #1311 2019-06-24 09:53:56 +02:00
Dave Halter ebdae87821 goto should always goto definitions, fixes #1304 2019-06-24 01:25:26 +02:00
Dave Halter 56ec79d62a Fix star imports checks, fixes #1235 2019-06-22 16:45:56 +02:00
Dave Halter c413b486fb Actually import IsADirectoryError 2019-06-22 15:43:11 +02:00
Dave Halter cb0a0d228a Add 3.8 to supported versions 2019-06-22 14:45:22 +02:00
Dave Halter 3ae4a154f9 Fix project search if a directory is called manage.py, fixes #1314 2019-06-22 14:04:32 +02:00
Dave Halter aa2dc6be09 Return annotations for compiled objects now help to infer
However only if it's a type, if it's a string, it doesn't work, yet

Fixes #1347
2019-06-22 00:15:20 +02:00
Dave Halter 454447d422 Fix an invalid escape sequence 2019-06-20 21:43:52 +02:00
Dave Halter 02d10a3aff Some small CHANGELOG changes 2019-06-20 21:27:06 +02:00
Dave Halter 4479b866ff CompiledContext should not have a file 2019-06-20 20:30:23 +02:00
Dave Halter 907fdaa153 Fix some minor errors 2019-06-20 09:53:40 +02:00
Dave Halter b85c0db72e Fix a typo 2019-06-19 18:32:09 +02:00
Dave Halter 8852745cf3 Add stub files to the list of features 2019-06-19 18:30:02 +02:00
Dave Halter d1501527a2 Add a script for profiling pytest 2019-06-19 18:28:45 +02:00
Dave Halter ccd7939a92 Remove the linter, since it's no longer developed 2019-06-19 18:27:34 +02:00
Dave Halter db716d96e5 Use the same intro text in README 2019-06-19 18:25:59 +02:00
Dave Halter 5f81353182 Make the jedi documentation more concise 2019-06-19 18:25:11 +02:00
Dave Halter b71a851081 Write a better introduction text 2019-06-19 10:12:23 +02:00
Dave Halter 474dcb857a Some small docs improvements 2019-06-19 09:59:21 +02:00
Dave Halter 5ad0e3d72e Ignore some tests for Python 3.4, because it's end of life soon and the typing library doesn't exist for it 2019-06-19 01:37:16 +02:00
Dave Halter 2cf1797465 Caching for get_parent_scope 2019-06-18 10:04:10 +02:00
Dave Halter f2f54f2864 Create a better cache to avoid the amount of get_definition/is_definition calls in parso 2019-06-18 09:29:39 +02:00
Dave Halter 38232fe133 Fix issues with Python 3.7 tests 2019-06-15 22:26:34 +02:00
Dave Halter 4405c4f190 Skip stub tests for Python 2 2019-06-15 21:59:54 +02:00
Dave Halter c3a0fec2d9 Fix tests for stubs 2019-06-15 21:47:03 +02:00
Dave Halter 8e3caaca7f Improve the stub test a bit 2019-06-15 02:20:15 +02:00
Dave Halter 860f627f48 Merge branch 'master' of github.com:davidhalter/jedi 2019-06-15 02:14:29 +02:00
Dave Halter 3ddbee1666 Fix issues for socket 2019-06-15 02:07:30 +02:00
Dave Halter fc20faf8f8 Remove _apply_qualified_name_changes, because it's really not needed 2019-06-15 01:58:54 +02:00
Dave Halter 0749e5091a Apparently a change we made does not seem to be needed 2019-06-15 01:57:59 +02:00
Dave Halter e61949da66 Fix some collections.deque issues 2019-06-15 01:56:49 +02:00