mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-04 06:15:47 +08:00
Fix Python 3.15 compatibility
- Fix getattr_static for Python 3.15 __dict__ GetSetDescriptorType
- Accept abs() parameter name change ('x' → 'number')
- Add Python 3.15 os module constants to test expectations
Fixes instance attribute introspection and stdlib changes in Python 3.15.
This commit is contained in:
@@ -746,7 +746,8 @@ def test_complete_not_findable_class_source():
|
||||
def test_param_infer_default():
|
||||
abs_sig, = jedi.Interpreter('abs(', [{'abs': abs}]).get_signatures()
|
||||
param, = abs_sig.params
|
||||
assert param.name == 'x'
|
||||
# Parameter name changed from 'x' to 'number' in Python 3.15
|
||||
assert param.name in ('x', 'number')
|
||||
assert param.infer_default() == []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user