We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63edf49 commit 39138a7Copy full SHA for 39138a7
mypy/plugins/dataclasses.py
@@ -263,11 +263,7 @@ def transform(self) -> bool:
263
args = [
264
attr.to_argument(info, of="__init__")
265
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
+ if attr.is_in_init and not self._is_kw_only_type(attr.type)
271
]
272
273
if info.fallback_to_any:
0 commit comments