Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter 8108122347 Make string additions work for file path completion
With this most simple cases of file path completions should be working now, fixes #493
2019-08-05 01:43:50 +02:00
Dave Halter 45dada9552 Fix interpeter project path 2019-08-05 00:43:37 +02:00
Dave Halter 38e0cbc1d2 Fix the REPL completer for file path completions 2019-08-04 23:08:25 +02:00
Dave Halter e008a515e3 Fix a few more file name completion cases 2019-08-04 22:43:23 +02:00
Dave Halter fd1e6afd07 A first iteration for file path completions 2019-08-04 13:50:23 +02:00
Dave Halter 9dd088f3db Fix a test failure 2019-08-03 14:58:57 +02:00
Dave Halter 8e1417e3ce Add Definition.execute, fixes #1076 2019-08-03 02:01:30 +02:00
Dave Halter 97526aa320 Add tests to show that #516 is not working, yet 2019-08-02 22:31:26 +02:00
Dave Halter 16e0351897 List possible Definition.type in its docstring, fixes #1069. 2019-08-02 21:16:58 +02:00
Dave Halter c0c7c949fd Start writing the Changelog for 0.15.0 2019-08-02 17:17:25 +02:00
Dave Halter b8bc4060dd 3.8-dev should not be allowed to fail 2019-08-02 16:15:16 +02:00
Dave Halter c737e3ee40 Skip more Python 2 tests 2019-08-02 15:54:10 +02:00
Dave Halter 4c3d4508e9 Skipping of tests was done the wrong way again 2019-08-02 15:50:06 +02:00
Dave Halter 70bcc9405f Skip the right tests 2019-08-02 15:25:20 +02:00
Dave Halter 6a82f60901 Parameter.kind is not avaialble in Python 3.5 2019-08-02 13:49:01 +02:00
Dave Halter 814998253a Fix Python 2 test issues 2019-08-02 13:44:04 +02:00
Dave Halter a22c6da89f Add a few docstrings to make some things clearer 2019-08-02 13:16:18 +02:00
Dave Halter 876a6a5c22 Add ParamDefinition.kind, fixes #1361 2019-08-02 13:11:41 +02:00
Dave Halter 642e8f2aa6 Make it possible to format a param to a string, fixes #1074 2019-08-02 12:17:58 +02:00
Dave Halter a64ef2759c Add another test for signature annotations 2019-08-02 12:17:58 +02:00
Dave Halter d58bbce24f Add Signature.to_string() with proper tests, fixes #779, fixes #780 2019-08-02 12:17:13 +02:00
Dave Halter ca6a7215e2 Test infer_default 2019-08-02 10:41:04 +02:00
Dave Halter 93b7548f1a Use a helper to create definitions 2019-08-02 10:30:23 +02:00
Dave Halter 24db05841b Add a execute_annotation option to infer_annotation 2019-08-02 10:24:15 +02:00
Dave Halter 375d1d57fb Test infer_annotation 2019-08-02 10:00:17 +02:00
Dave Halter c2e50e1d0d Make it possible for users to infer annotations/defaults
Fixes #1039
2019-08-01 18:27:37 +02:00
Dave Halter 7988c1d11b A first iteration of adding signatures to the API, fixes #1139 2019-08-01 17:48:10 +02:00
Dave Halter 8ab2a5320e Fix a caching issue 2019-08-01 02:10:46 +02:00
Dave Halter b5a62825ce Forgot the right resolve_stars parameters in one place 2019-07-31 23:05:24 +02:00
Dave Halter ec70815318 Cache getting resolved param names 2019-07-31 22:54:29 +02:00
Dave Halter a739c17a6f Turn around resolve_stars, it shouldn't by default be resolved 2019-07-31 18:51:31 +02:00
Dave Halter ab5f4b6774 Remove a class that is not needed anymore 2019-07-31 18:44:57 +02:00
Dave Halter a5a544cb09 Revert "Use __str__ instead of to_string"
This reverts commit 1151700114.
2019-07-31 18:39:17 +02:00
Dave Halter 7d2374ed81 Fix the last remaining issues with function signature 2019-07-31 18:29:41 +02:00
Dave Halter 97b642a3e1 overloaded_functions should be private 2019-07-31 00:11:08 +02:00
Dave Halter 1151700114 Use __str__ instead of to_string 2019-07-31 00:07:38 +02:00
Dave Halter 75f654b944 Better repr for CallSignature 2019-07-30 23:55:58 +02:00
Dave Halter bb852c3e85 Fix some minor signature issues 2019-07-30 23:48:54 +02:00
Dave Halter 1fbb69b35a Remove the unused function signature_matches 2019-07-30 10:01:50 +02:00
Dave Halter 0352c3250a Fix signatures for __init__ calls when used with supers, fixes #1163 2019-07-30 01:44:53 +02:00
Dave Halter 268f828963 Fix some issues for args resolving in method calls 2019-07-30 01:28:51 +02:00
Dave Halter 21508a8c79 Remove a bit of code that i sprobably unused 2019-07-30 00:38:42 +02:00
Dave Halter f9de26f72c Move get_signatures from Function to FunctionMixin 2019-07-29 20:17:03 +02:00
Dave Halter 22580f771c Merge the signature changes
Fixes include
- Better @wraps(func) understanding
- *args, **kwargs in call signatures is now resolved as well as possible

Fixes #503, fixes #1058
Also look at #906, #634, #1163
2019-07-29 00:31:08 +02:00
Dave Halter 9b338f69a6 Add a comment about wraps 2019-07-29 00:28:12 +02:00
Dave Halter fa0424cfd6 Fix signatures for wraps, see #1058 2019-07-29 00:13:05 +02:00
Dave Halter f6808a96e0 Skip pre python 3.5 2019-07-28 20:40:32 +02:00
Dave Halter 02bd7e5bc7 Some small args adaptions 2019-07-28 20:22:28 +02:00
Dave Halter e8e3e8c111 Deal better with non-functions 2019-07-28 19:52:48 +02:00
Dave Halter c8588191f9 Some more small fixes 2019-07-28 18:09:08 +02:00
Dave Halter 97e7f608df Don't return multiple used names for signatures 2019-07-28 17:51:40 +02:00
Dave Halter fae2c8c060 Move args resolving to a different file 2019-07-28 17:41:28 +02:00
Dave Halter b4f2d82867 A new approach of getting arguments 2019-07-28 17:31:17 +02:00
Dave Halter 6a480780f8 Some more tests 2019-07-26 14:51:30 +02:00
Dave Halter 41dc5382fa Make nesting of *args/**kwargs possible to understand. 2019-07-26 14:42:20 +02:00
Dave Halter ba160e72ab Some more signature progress 2019-07-26 14:29:33 +02:00
Dave Halter 0703a69369 Some progress in signature understanding 2019-07-26 12:11:45 +02:00
Dave Halter c490d37c2d Start getting signature inferring working 2019-07-26 02:54:50 +02:00
Dave Halter 84219236a7 Remove an import 2019-07-25 14:15:52 +02:00
Dave Halter 57fd995727 Small refactoring 2019-07-25 14:15:26 +02:00
Dave Halter a803d687e2 Skipped Python 2 Interpreter tests the wrong way 2019-07-24 13:44:26 +02:00
Dave Halter c7927fb141 Remove a paragraph in docs that was arguing that stubs and generics (and other things) were not properly supported, fixes #1012 2019-07-24 13:41:33 +02:00
Dave Halter 05d9602032 Fix partial signatures for MixedObject
Now a MixedObject return the signatures of its CompiledObject all the time, fixes #1371
2019-07-24 12:58:20 +02:00
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