1
0
forked from VimPlug/jedi

Add support for dataclass_transform decorator

This commit is contained in:
Eric Masseran
2025-02-15 16:34:00 +01:00
parent 6aee460b1d
commit d866ec0f80
3 changed files with 81 additions and 0 deletions

View File

@@ -798,6 +798,12 @@ _implemented = {
# runtime_checkable doesn't really change anything and is just
# adding logs for infering stuff, so we can safely ignore it.
'runtime_checkable': lambda value, arguments, callback: NO_VALUES,
# Python 3.11+
'dataclass_transform': _dataclass,
},
'typing_extensions': {
# Python <3.11
'dataclass_transform': _dataclass,
},
'dataclasses': {
# For now this works at least better than Jedi trying to understand it.