1
0
forked from VimPlug/jedi

Fix init=false for transform and exclude fields on base transform

This commit is contained in:
Eric Masseran
2025-03-15 16:23:32 +01:00
parent e0797be681
commit 50778c390f
3 changed files with 38 additions and 27 deletions

View File

@@ -439,14 +439,6 @@ dataclass_transform_cases = [
y: int
@dataclass_transform
class X(Y):'''), [], False],
# Both classes
[dedent('''
@dataclass_transform
class Y():
y: int
z = 5
@dataclass_transform
class X(Y):'''), [], False],
# 2/ Declare dataclass transformed
# Class based
[dedent('''
@@ -502,7 +494,6 @@ ids = [
"direct_transformer",
"transformer_with_params",
"subclass_transformer",
"both_transformer",
"base_transformed",
"decorator_transformed",
"metaclass_transformed",