File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def get_pairs(nodes: list) -> Iterator[tuple]: # noqa: D103
67
67
def get_module_or_class_attributes (nodes : list ) -> dict : # noqa: D103
68
68
result = {}
69
69
for assignment , string_node in get_pairs (nodes ):
70
- string = inspect .cleandoc (string_node .s ) if string_node else None
70
+ string = inspect .cleandoc (string_node .value ) if string_node else None
71
71
if isinstance (assignment , ast .Assign ):
72
72
names = []
73
73
for target in assignment .targets :
@@ -148,7 +148,7 @@ def get_instance_attributes(func: Callable) -> dict: # noqa: D103
148
148
if not names or (string is None and annotation is None ):
149
149
continue
150
150
151
- docstring = inspect .cleandoc (string .s ) if string else None
151
+ docstring = inspect .cleandoc (string .value ) if string else None
152
152
for name in names :
153
153
result [name ] = {"annotation" : annotation , "docstring" : docstring }
154
154
You can’t perform that action at this time.
0 commit comments