Shahar Naveh
153d0eef51
Revert "Use ruff for Expr unparsing ( #6124 )"
...
This reverts commit 0fb7d0fae2 .
2025-10-22 22:34:52 +09:00
Shahar Naveh
0fb7d0fae2
Use ruff for Expr unparsing ( #6124 )
...
* Use ruff for unparse backend
* Update `test_future_stmt/*.py` from 3.13.7
* Mark failing tests
* Mark failing test
* Merge remote-tracking branch 'upstream/main' into ruff-unparse
* Reapply ruff code
* remove git symbols
* Unmark passing test
2025-10-22 20:29:50 +09:00
Shahar Naveh
fcf196935e
Update ruff 0.14.1 ( #6195 )
...
* Update ruff to 0.14.1
* Fix test regression in `test_compile`
* Unmark passing test
* Update `test_syntax` from 3.13.9
---------
Co-authored-by: Noa <coolreader18@gmail.com >
2025-10-20 22:46:46 +09:00
Jeong, YunWon
b666c52df9
code object linetable ( #6150 )
...
* Code.replace
* implement linetable
2025-09-16 21:49:54 +09:00
Noa
85ca28094e
Apply clippy suggestions to switch to let chains ( #6126 )
2025-09-04 15:34:10 +09:00
Shahar Naveh
1688e744ba
fn unparse_expr -> UnparseExpr::new (#6121 )
2025-09-02 23:55:42 +09:00
Jeong YunWon
b807bc7fc4
Fix patma guard
2025-08-26 21:48:46 +09:00
Jeong YunWon
21fb4aafcf
apply review
2025-08-26 21:48:46 +09:00
Jeong YunWon
8ae2dc75f6
MATCH_SELF
2025-08-26 21:48:46 +09:00
Jeong YunWon
50c557419e
more match pattern
2025-08-26 21:48:46 +09:00
Jeong, YunWon
776cabb883
New Instruction ToBool,PopJumpIfFalse ( #6112 )
...
* New Instruction ToBool
* Rename JustIf{True,False} => PopJumpIf{...}
2025-08-26 16:12:14 +09:00
Jeong, YunWon
ddc08498cc
Fix match mapping pattern ( #6081 )
2025-08-20 13:26:18 +09:00
Jeong YunWon
d56fcd0774
DictUpdate instruction
2025-08-08 23:53:40 +09:00
Jack O'Connor
33ea50c2e9
Add return annotation to __annotations__ last ( #6071 )
...
Functions like `functools.singledispatch` are sensitive to the order of
items in the `__annotations__` map.
CPython puts returns last.
2025-08-08 23:31:12 +09:00
Shahar Naveh
4bf32a04f4
Apply some clipy lints ( #6045 )
2025-07-30 12:16:02 +09:00
Shahar Naveh
96f47a415e
Export ruff_source_file types in rustpython_compiler_core ( #6020 )
...
* export ruff types in `compiler::core`
* Use exported ruff types in `vm/**`
* unlink `ruff_source_file` as a direct dependency
2025-07-23 12:28:38 +09:00
Shahar Naveh
ba22ad2c0c
Replace compiler::source module with ruff_source_file ( #6016 )
...
* Replace `compiler::source`` with ruff
* Require `ruff_source_file`
2025-07-22 20:52:25 +09:00
Jeong, YunWon
99c1afe0be
compile_subscript ( #6008 )
...
* ListToTuple
* star_unpack_helper
2025-07-21 00:53:36 +09:00
Jeong, YunWon
4e0c1aa83d
compile_type_param_bound_or_default ( #6005 )
2025-07-20 17:12:56 +09:00
Jeong YunWon
5284b73320
Refactor compile_function
2025-07-20 10:57:24 +09:00
Jeong YunWon
7736df030a
Fix scope error
2025-07-20 10:57:24 +09:00
Jeong, YunWon
b965ce7392
Remove misplaced SymbolScope::TypeParams ( #5975 )
...
* Rename SymbolTableType -> CompileScope
* Remove SymbolScope::TypeParams
2025-07-15 17:56:19 +09:00
Jeong, YunWon
1d3603419e
SetFunctionAttribute ( #5968 )
...
* PyRef::into_non_null
* SetFunctionAttribute
* set_function_attribute
* frame helper in PyFuncion
* remove closure lock
* cleanup unused args
2025-07-15 03:12:23 +09:00
Jeong, YunWon
52d46326de
make_closure ( #5955 )
2025-07-13 01:00:15 +09:00
Jeong, YunWon
fef660e6b3
more PEP695 ( #5917 )
...
* compile_class_body
* type.__orig_bases__ regression of test_all_exported_names
* rework type_params scope
* refactor compile_class_def
2025-07-12 20:42:57 +09:00
Jeong, YunWon
3ef0cfc50c
compiler enter_scope ( #5950 )
...
* enter_scope
* drop_class_free
* push_output based on enter_scope
2025-07-12 19:28:22 +09:00
Jeong, YunWon
c4234c1692
SymbolTable::varnames, fblock ( #5948 )
...
* SymbolTable::varnames
* varname_cache copies it
* fasthidden & static attributes
* metadata
* fblock
2025-07-11 22:43:08 +09:00
Jeong, YunWon
59c7fcbb98
compiler set_qualname ( #5930 )
...
* set_qualname
* remove qualified_path
2025-07-11 18:21:51 +09:00
Jeong, YunWon
392f9c26c5
Instruction::Resume ( #5944 )
...
* ImportStar
* Instruction::Resume
2025-07-11 17:25:57 +09:00
Jeong, YunWon
0ae6b4575c
typing TypeAlias ( #5945 )
2025-07-11 16:16:01 +09:00
Jeong, YunWon
8b6c78c884
SymbolTableType::Lambda ( #5942 )
2025-07-11 13:35:52 +09:00
Jeong, YunWon
9b133b8560
CodeInfo::private ( #5943 )
2025-07-11 13:11:15 +09:00
Jeong, YunWon
2f94a63958
Add SymbolUsage::TypeParams ( #5941 )
2025-07-11 11:24:20 +09:00
Jeong, YunWon
18d7c1baf1
codeobj.qualname ( #5929 )
2025-07-10 10:27:03 +09:00
Jeong YunWon
bd54e537fd
Fix __parameters__, __type_params__
2025-07-07 23:23:24 +09:00
Shahar Naveh
694fe50241
Use const fn where possible ( #5894 )
2025-07-04 22:26:20 +09:00
Shahar Naveh
69545c0798
Use Self where possible ( #5892 )
2025-07-04 10:08:43 +09:00
Jeong, YunWon
8a2a6af91b
__type_params__ in __build_class__ ( #5883 )
...
* remove future __classs_getitem__
* __type_params__ in __build_class__
2025-07-03 14:08:42 +09:00
Jeong YunWon
fa7af0e5ea
type.__type_params__
2025-07-01 19:05:29 +09:00
Jeong, YunWon
3d951a883a
Compile starred annotations ( #5881 )
...
* Fix starred annotation
* uncomment starred annotation
2025-07-01 17:20:42 +09:00
Jeong, YunWon
28dff8af6c
Fix TypeParams, TypeAlias compile ( #5862 )
2025-06-29 11:24:15 +09:00
Jeong, YunWon
f5ccd4faed
Fix __annotation__ ( #5849 )
2025-06-27 20:36:19 +09:00
Jeong, YunWon
6b6534508f
Fix type_params lifetime in symboltable ( #5844 )
...
* fix cspell
* Fix type_params lifetime in symboltable
2025-06-27 14:32:54 +09:00
Jeong YunWon
3673372d3d
Fix cspell warnings
2025-06-27 12:32:59 +09:00
Jeong, YunWon
9c2a4695c1
Fix excepthook ( #5830 )
2025-06-24 16:58:27 +09:00
Jeong, YunWon
2e368baf2a
Fix Nightly clippy ( #5798 )
2025-06-06 22:00:07 +09:00
Ashwin Naren
397a1968c8
fix clippy
...
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-04-19 11:15:01 -07:00
Ashwin Naren
783e45f8ac
Apply review
...
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com >
2025-04-19 09:48:20 -07:00
Ashwin Naren
fc331a154f
fix errors and formatting
...
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-04-18 22:41:48 -07:00
Ashwin Naren
12ceb9695c
cleaner panic output
...
Signed-off-by: Ashwin Naren <arihant2math@gmail.com >
2025-04-18 22:31:29 -07:00