Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter 3fcecb3d6d Move the filter search to a different place 2019-08-23 16:29:13 +02:00
Dave Halter ead0964282 _get_origin_scope is no longer really used 2019-08-23 16:21:14 +02:00
Dave Halter 0cbd1e6cff Avoid passing of contexts in multiple ways for self name filters 2019-08-23 15:45:26 +02:00
Dave Halter b38da47981 Prefer readability 2019-08-23 15:33:15 +02:00
Dave Halter c393a406ee Refactoring of the contexts to properly use inheritance 2019-08-23 15:28:55 +02:00
Dave Halter 7573e2033a Fix comprehension parent issues, fixes #1215 2019-08-23 14:34:16 +02:00
Dave Halter ecc574025c Merge branch 'ngates/comprehension-parent' of https://github.com/gatesn/jedi into refactoring 2019-08-23 13:52:25 +02:00
Dave Halter 51ac055a38 Another _value removal 2019-08-23 13:42:07 +02:00
Dave Halter c9e4cdaba1 Get rid of another private access 2019-08-23 13:34:04 +02:00
Dave Halter aceef78a21 Get rid of a private access 2019-08-23 13:19:53 +02:00
Dave Halter 86f4f7be45 Remove a private access 2019-08-23 11:55:49 +02:00
Dave Halter 041fd992b3 create_value can deal with modules now 2019-08-23 00:45:59 +02:00
Dave Halter 05ce1c8237 Remove a test that tested a removed function 2019-08-23 00:26:15 +02:00
Dave Halter 3e684519e6 Very small refactoring 2019-08-23 00:24:30 +02:00
Dave Halter 9f3a2f93c4 Remove get_statement_of_position. It's not used anymore 2019-08-23 00:13:18 +02:00
Dave Halter 193ba47f50 Simplify get_user_context 2019-08-23 00:10:56 +02:00
Dave Halter 05fe29a156 Get rid of the node_is_value parameter 2019-08-23 00:02:39 +02:00
Dave Halter bd754718e1 Fix a string escape 2019-08-22 23:32:52 +02:00
Dave Halter df014dc527 Create create_value to eventally use on contexts for some things 2019-08-22 23:21:21 +02:00
Dave Halter 6d5e9f4b0f Remove node_is_object, not used anymore 2019-08-22 23:13:42 +02:00
Dave Halter faf6752ff8 Move create_context to a context 2019-08-22 22:47:26 +02:00
Dave Halter ee6331747f Use a class_context instead of a class_value for MethodValue 2019-08-22 22:13:02 +02:00
Dave Halter eee6810576 Small cleanup of code 2019-08-22 17:20:07 +02:00
Dave Halter f87f8c028b Fix context issues when working with instances 2019-08-22 17:11:54 +02:00
Dave Halter b97237f264 Rename the filter context argument to parent_context 2019-08-22 10:09:07 +02:00
Dave Halter 4e260cdadb Remove infer_element from Value 2019-08-22 00:36:15 +02:00
Dave Halter 337c03e5be Separate infer_import and goto_import a bit better 2019-08-22 00:23:24 +02:00
Dave Halter bf4d42798b Make separate methods for goto_import and infer_import 2019-08-21 23:58:26 +02:00
Dave Halter 2fb04db0ab Fix the weird py__path__ behavior 2019-08-21 23:08:42 +02:00
Dave Halter 592f3771fc Make Importer.module_context Importer._module_context 2019-08-21 09:56:36 +02:00
Dave Halter 925dd38c18 Remove a private access 2019-08-21 09:54:32 +02:00
Dave Halter 6142d18206 More rename 2019-08-21 09:53:48 +02:00
Dave Halter 9d34df2fed Make Slice a proper LazyValueWrapper 2019-08-21 09:51:47 +02:00
Dave Halter 02c96b37db Some more value -> context renames 2019-08-21 09:31:23 +02:00
Dave Halter 55c08e06ab Remove a hack that is no longer necessary 2019-08-21 09:25:15 +02:00
Dave Halter 84f6d95fde Fix a python 2 dynamic issue 2019-08-21 09:16:48 +02:00
Dave Halter 4cbe2898c0 Fix usage tests
With those tests fixed, everything should pass again
2019-08-21 01:01:09 +02:00
Dave Halter 8a2b7f18cd Get all tests working except usage tests 2019-08-21 00:50:34 +02:00
Dave Halter 85f8f2a764 Fix os path resolving issues 2019-08-21 00:22:34 +02:00
Dave Halter 14fc5ed289 Fix more issues with where contexts are used and where values are used 2019-08-20 09:59:10 +02:00
Dave Halter 39b294e085 Fix some interpreter issues 2019-08-20 09:09:19 +02:00
Dave Halter 217b632213 Write a CompForContext that is still not in good shape but working 2019-08-19 21:17:11 +02:00
Dave Halter caee8e9952 Fix final gradual typing related issues 2019-08-19 19:43:45 +02:00
Dave Halter b19ba12566 Fix some more context issues 2019-08-19 19:33:12 +02:00
Dave Halter f54617867d Fix dynamic param checking 2019-08-18 18:19:12 +02:00
Dave Halter 6fb49eaadf as_context caching 2019-08-18 17:52:15 +02:00
Dave Halter 8e60689bcf valueualized_node -> contextualized_node 2019-08-18 00:58:33 +02:00
Dave Halter 4415de010d ValueualizedName -> ContextualizedName
Basically a change back to an older version
2019-08-18 00:57:29 +02:00
Dave Halter f61246bf13 Fix quite a few more tests. Only about a fifth failing now 2019-08-18 00:47:21 +02:00
Dave Halter 0c419a5094 Fix class tests 2019-08-17 23:52:52 +02:00
Dave Halter 895e774962 Module fixes 2019-08-17 17:56:57 +02:00
Dave Halter a9b1de7060 execution_value -> execution_context 2019-08-17 17:13:29 +02:00
Dave Halter 680388a7e8 More fixes 2019-08-17 17:01:21 +02:00
Dave Halter 2629ff55f3 Fix some array tests 2019-08-17 15:42:13 +02:00
Dave Halter c6d2aa6da2 Some small improvements 2019-08-16 16:44:03 +02:00
Dave Halter 165639c1dd Start implementing the bulk of the context/value separation 2019-08-16 16:12:12 +02:00
Dave Halter d19233a338 Start working on replacing value partially with context 2019-08-16 13:00:05 +02:00
Dave Halter 03920502c4 infer_state -> inference_state 2019-08-16 11:44:30 +02:00
Dave Halter fffb39227e InferState -> InferenceState 2019-08-16 11:43:21 +02:00
Dave Halter 9ee6285414 Remove infer_state from filters 2019-08-16 09:41:23 +02:00
Dave Halter 600272366f parent_value -> parent_context 2019-08-15 09:36:46 +02:00
Dave Halter 2e90e3b2b1 Avoid position passing for value filters 2019-08-15 09:31:12 +02:00
Dave Halter 21a18c698e Differentiate in finder between get_value_filters and get_global_filters 2019-08-15 09:29:08 +02:00
Dave Halter 9986d8c9aa Context -> Value 2019-08-15 01:26:11 +02:00
Dave Halter 49f996867d NO_CONTEXTS -> NO_VALUES 2019-08-15 01:24:28 +02:00
Dave Halter ad4f546aca context -> value 2019-08-15 01:23:06 +02:00
Dave Halter 9e23f4d67b Move base_context -> base_value 2019-08-15 00:41:02 +02:00
Dave Halter a5dff65142 Evaluator -> InferState 2019-08-15 00:37:51 +02:00
Dave Halter 8157d119a7 eval_ -> infer_ 2019-08-15 00:20:01 +02:00
Dave Halter 199799a966 Rename some functions -> evaluate_ to infer_ 2019-08-15 00:15:38 +02:00
Dave Halter 3b4f292464 Move the evaluate package to inference 2019-08-15 00:14:26 +02:00
Dave Halter e4d1e5455f test_evaluate -> test_inference 2019-08-14 23:56:44 +02:00
Dave Halter a23bbbfbb9 Remove some docstrings that are outdated 2019-08-14 23:51:49 +02:00
Dave Halter 9cc3b18d52 evaluation -> type inference and a few similar changes 2019-08-13 01:29:50 +02:00
Dave Halter 4619552589 Evaluation -> type inference 2019-08-13 01:29:50 +02:00
Dave Halter 467839a9ea execute_evaluated -> execute_with_values 2019-08-13 01:29:50 +02:00
Dave Halter 084995c378 Bump version 2019-08-13 01:29:01 +02:00
Dave Halter 005f69390c Write the CHANGELOG for 0.15.1 2019-08-13 00:18:45 +02:00
Dave Halter 5d0d09bb7d staticmethod and a few other cases might not have properly returned its signatures 2019-08-12 09:37:59 +02:00
Dave Halter 972cae4859 Remove reference to a file that doesn't exist anymore 2019-08-12 00:24:35 +02:00
Dave Halter 77bc2d548a Bump version to make it clear that it's a different one than the current one 2019-08-12 00:22:48 +02:00
Dave Halter 35e5cf2c2a A small Changelog improvement 2019-08-11 20:49:49 +02:00
Dave Halter c6f0ecd223 Cleanup Changelog for the next release 2019-08-11 20:37:50 +02:00
Dave Halter f727e4e661 Make it possible to access functions that were inherited, see #1347 2019-08-11 20:34:21 +02:00
Dave Halter 1ad4003740 Messed up a Windows test 2019-08-11 20:12:33 +02:00
Dave Halter 1108ad9994 Again a small windows issue fixed. 2019-08-11 20:01:12 +02:00
Dave Halter f7f9b1e5ec Need to escape the path backslash for windows slashes 2019-08-11 19:56:57 +02:00
Dave Halter c3d40949b1 Make it possible to access properties again
This time we catch all exceptions and try to avoid issues for the user.

This is only happening when working with an Interpreter. I don't feel this is
necessary otherwise.

See #1299
2019-08-11 16:24:19 +02:00
Dave Halter a7accf4171 A small compatibility fix 2019-08-11 01:54:26 +02:00
Dave Halter ab80646b86 Fix an issue with type vars that might have been a problem for other things as well 2019-08-11 01:28:09 +02:00
Dave Halter 3d0ac09fc9 Don't add quotes after paths if they are already there 2019-08-10 18:37:10 +02:00
Dave Halter 0a84678a60 A small speed optimization that helps a lot with sys.version_info >= (3, 0) patterns in typeshed 2019-08-10 15:31:36 +02:00
Dave Halter 4a5c992b1a Remove an unnecessary isinstance usage 2019-08-10 14:41:47 +02:00
Dave Halter 04b7c99753 Make CompiledValue lazy
This definitely reduces debug output and it might be slightly faster, because some values are never asked for
2019-08-10 14:36:40 +02:00
Dave Halter 499408657b A python 2 fix 2019-08-08 17:07:54 +02:00
Dave Halter 4ec3fb6e12 Fix an error that occured because of some refactorings 2019-08-08 11:03:27 +02:00
Dave Halter 463cbb1595 Fix one more os.path.join issue 2019-08-08 09:31:13 +02:00
Dave Halter 03608151e8 Fix more issues with os.path path completion 2019-08-08 01:48:25 +02:00
Dave Halter 822394663c Make join detection much easier 2019-08-08 01:04:08 +02:00
Dave Halter 52517f78b1 Fix some remaining issues with file path completions 2019-08-07 23:00:27 +02:00