@@ -74,7 +74,8 @@ class A:
7474@parametrize_module
7575def test_inference_field_default (module : str ):
7676 """Test inference of dataclass attribute with a field call default
77- (default keyword argument given)."""
77+ (default keyword argument given).
78+ """
7879 klass , instance = astroid .extract_node (
7980 f"""
8081 from { module } import dataclass
@@ -105,7 +106,8 @@ class A:
105106@parametrize_module
106107def test_inference_field_default_factory (module : str ):
107108 """Test inference of dataclass attribute with a field call default
108- (default_factory keyword argument given)."""
109+ (default_factory keyword argument given).
110+ """
109111 klass , instance = astroid .extract_node (
110112 f"""
111113 from { module } import dataclass
@@ -406,7 +408,7 @@ class A:
406408
407409@parametrize_module
408410def test_init_empty (module : str ):
409- """Test init for a dataclass with no attributes"""
411+ """Test init for a dataclass with no attributes. """
410412 node = astroid .extract_node (
411413 f"""
412414 from { module } import dataclass
@@ -424,7 +426,7 @@ class A:
424426
425427@parametrize_module
426428def test_init_no_defaults (module : str ):
427- """Test init for a dataclass with attributes and no defaults"""
429+ """Test init for a dataclass with attributes and no defaults. """
428430 node = astroid .extract_node (
429431 f"""
430432 from { module } import dataclass
@@ -451,7 +453,7 @@ class A:
451453
452454@parametrize_module
453455def test_init_defaults (module : str ):
454- """Test init for a dataclass with attributes and some defaults"""
456+ """Test init for a dataclass with attributes and some defaults. """
455457 node = astroid .extract_node (
456458 f"""
457459 from { module } import dataclass
@@ -486,7 +488,7 @@ class A:
486488
487489@parametrize_module
488490def test_init_initvar (module : str ):
489- """Test init for a dataclass with attributes and an InitVar"""
491+ """Test init for a dataclass with attributes and an InitVar. """
490492 node = astroid .extract_node (
491493 f"""
492494 from { module } import dataclass
@@ -602,7 +604,8 @@ class B(A):
602604
603605@parametrize_module
604606def test_init_attributes_from_superclasses (module : str ):
605- """Test init for a dataclass that inherits and overrides attributes from superclasses.
607+ """Test init for a dataclass that inherits and overrides attributes from
608+ superclasses.
606609
607610 Based on https://github.com/PyCQA/pylint/issues/3201
608611 """
@@ -636,7 +639,9 @@ class B(A):
636639
637640@parametrize_module
638641def test_invalid_init (module : str ):
639- """Test that astroid doesn't generate an initializer when attribute order is invalid."""
642+ """Test that astroid doesn't generate an initializer when attribute order is
643+ invalid.
644+ """
640645 node = astroid .extract_node (
641646 f"""
642647 from { module } import dataclass
@@ -655,7 +660,9 @@ class A:
655660
656661@parametrize_module
657662def test_annotated_enclosed_field_call (module : str ):
658- """Test inference of dataclass attribute with a field call in another function call"""
663+ """Test inference of dataclass attribute with a field call in another function
664+ call.
665+ """
659666 node = astroid .extract_node (
660667 f"""
661668 from { module } import dataclass, field
0 commit comments