Skip to content

Commit 39138a7

Browse files
committed
Revert previous attempt...
1 parent 63edf49 commit 39138a7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypy/plugins/dataclasses.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,7 @@ def transform(self) -> bool:
263263
args = [
264264
attr.to_argument(info, of="__init__")
265265
for attr in attributes
266-
if attr.is_in_init and not self._is_kw_only_type(attr.type) and not attr.kw_only
267-
] + [
268-
attr.to_argument(info, of="__init__")
269-
for attr in attributes
270-
if attr.is_in_init and not self._is_kw_only_type(attr.type) and attr.kw_only
266+
if attr.is_in_init and not self._is_kw_only_type(attr.type)
271267
]
272268

273269
if info.fallback_to_any:

0 commit comments

Comments
 (0)