Peter Law
d543d1d004
Support Python 3.13
...
This moves to using the 3.13 grammar as well as testing 3.13 in CI.
2024-07-02 21:37:34 +01:00
Peter Law
770cdade00
Claim support for Python 3.12
2023-09-16 21:41:06 +01:00
Dave Halter
8a4b079d0f
allow_descriptor_getattr -> allow_unsafe_interpreter_executions
2023-07-29 00:06:55 +02:00
Dave Halter
1947e7dd56
Avoid dynamic params search for Interpreter, fixes #1899
2023-07-27 13:49:27 +02:00
Peter Law
67e0bec597
Support Python 3.11
...
This adds support for targetting Python 3.11 via picking up the
latest grammar from parso while also validating support for running
on 3.11 by adding it to the CI matrix.
2023-02-13 19:58:35 +00:00
Georgi Hristov
fd0e6aed96
Replaced tuple passed as sys_path actual argument with list
...
Fixes davidhalter#1909
2023-02-05 15:46:23 -08:00
Dave Halter
6b73d5c1bf
Probably using the 3.10 grammar is better for stubs for now
2022-11-21 21:07:33 +01:00
Dave Halter
85780111e0
Use the latest grammar from parso for stubs, probably fixes #1864
2022-11-13 17:59:22 +01:00
Dave Halter
837cb1106a
Use Path instead of str if possible
2021-01-14 01:32:57 +01:00
Dave Halter
abf63d73d3
Basic implementation support for namedexpr, fixes #1647
2020-08-05 23:55:46 +02:00
Peter Law
b892c07841
Merge branch 'master' into mypy
2020-07-26 12:25:19 +01:00
Peter Law
b3edda30c4
Explain why we 'type: ignore' these properties
2020-07-26 12:09:04 +01:00
Dave Halter
9d1587a41d
Don't need to inherit from object anymore
2020-07-26 00:11:57 +02:00
Peter Law
5e509814f7
Ignore mypy not coping with decorated properties
2020-07-24 20:25:55 +01:00
Dave Halter
db0e90763b
Start using pathlib.Path instead of all the os.path functions
2020-07-10 17:30:36 +02:00
Dave Halter
5ab351dc8f
Remove unicode literals from code base
2020-07-02 10:43:14 +02:00
Dave Halter
332631434c
Remove some unnecessary utf-8 references
2020-07-02 03:30:41 +02:00
Dave Halter
227cf00638
Remove the __builtin__ compatibility
2020-07-02 01:15:29 +02:00
Dave Halter
02c3d651bd
Some more code quality fixes
2020-04-11 02:23:23 +02:00
Dave Halter
8ff2ea4b38
Make sure to not load unsafe modules anymore if they are not on the sys path, fixes #760
2020-01-31 13:09:28 +01:00
Dave Halter
df7080c1da
Disable flow analysis for finding usages
2020-01-14 18:37:10 +01:00
Dave Halter
5a54d94aa5
Make sure that infering params is possible from the API
2019-12-27 10:36:13 +01:00
Dave Halter
4bbaec68e8
Make sure goto_definitions is no longer used in the main code
2019-12-20 18:47:04 +01:00
Dave Halter
6e2a76feb9
Fix a goto case with nested pyi files
2019-12-15 17:37:24 +01:00
Dave Halter
3219f14c63
Files bigger than one MB (about 20kLOC) get cropped to avoid getting stuck completely
...
Fixes #843
2019-12-14 12:39:40 +01:00
Dave Halter
92c59180fd
Make sure goto definitions works on with, fixes #1280
2019-12-13 16:57:18 +01:00
Dave Halter
599eded3d1
Remove a few unused imports
2019-09-05 00:54:13 +02:00
Dave Halter
4e68287bba
Move eval_node to one place
2019-09-05 00:52:14 +02:00
Dave Halter
008e9860a8
Avoid creating the same object twice
2019-09-05 00:37:51 +02:00
Dave Halter
8cd5932fed
Move inference_state.goto to the name and _follow_error_node_imports_if_possible away from inference_state
2019-09-05 00:34:13 +02:00
Dave Halter
aea2ddcbd8
ContextualizedName -> TreeNameDefinition
2019-09-05 00:15:38 +02:00
Dave Halter
51475a5b39
Remove an unnecessary piece of code from goto
2019-09-02 09:52:58 +02:00
Dave Halter
a0cadd9375
Use Context.create_name instead of weird playing with params everywhere
2019-09-02 09:38:54 +02:00
Dave Halter
b4dc95553f
Use SimpleParamName everywhere it's needed
2019-09-02 09:29:43 +02:00
Dave Halter
edb17b8e7c
Refactor params and what execution contexts need
2019-09-01 14:14:42 +02:00
Dave Halter
ba9c318d22
Move predefine_names to context
2019-08-24 02:39:51 +02:00
Dave Halter
faf6752ff8
Move create_context to a context
2019-08-22 22:47:26 +02:00
Dave Halter
bf4d42798b
Make separate methods for goto_import and infer_import
2019-08-21 23:58:26 +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
4415de010d
ValueualizedName -> ContextualizedName
...
Basically a change back to an older version
2019-08-18 00:57:29 +02:00
Dave Halter
0c419a5094
Fix class tests
2019-08-17 23:52:52 +02:00
Dave Halter
2629ff55f3
Fix some array tests
2019-08-17 15:42:13 +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
600272366f
parent_value -> parent_context
2019-08-15 09:36:46 +02:00