Skip to content

Commit 7ad9a49

Browse files
committed
Revert changes for metrics/ast.py
1 parent 0362472 commit 7ad9a49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

metrics/ast.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -457,13 +457,13 @@ class NotClassError(Exception):
457457
if not (tree_class := list((value for value in tree))):
458458
raise NotClassError('This is not a class')
459459
with open(metrics, 'a', encoding='utf-8') as metric:
460-
metric.write(f'NoOA {attrs(tree_class)}'
460+
metric.write(f'NoOA {attrs(tree_class)} '
461461
f'Number of Non-Static (Object) Attributes\n')
462-
metric.write(f'NoSA {sattrs(tree_class)}'
462+
metric.write(f'NoSA {sattrs(tree_class)} '
463463
f'Number of Static Attributes\n')
464-
metric.write(f'NoCC {ctors(tree_class)}'
464+
metric.write(f'NoCC {ctors(tree_class)} '
465465
f'Number of Class Constructors\n')
466-
metric.write(f'NoOM {methods(tree_class)}'
466+
metric.write(f'NoOM {methods(tree_class)} '
467467
f'Number of Non-Static (Object) Methods\n')
468468
metric.write(f'NoCM {smethods(tree_class)} '
469469
f'Number of Static (Class) Methods\n')

0 commit comments

Comments
 (0)