Skip to content

Commit

Permalink
Revert changes for metrics/ast.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Raleksan committed Oct 3, 2024
1 parent 0362472 commit 7ad9a49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions metrics/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,13 +457,13 @@ class NotClassError(Exception):
if not (tree_class := list((value for value in tree))):
raise NotClassError('This is not a class')
with open(metrics, 'a', encoding='utf-8') as metric:
metric.write(f'NoOA {attrs(tree_class)}'
metric.write(f'NoOA {attrs(tree_class)} '
f'Number of Non-Static (Object) Attributes\n')
metric.write(f'NoSA {sattrs(tree_class)}'
metric.write(f'NoSA {sattrs(tree_class)} '
f'Number of Static Attributes\n')
metric.write(f'NoCC {ctors(tree_class)}'
metric.write(f'NoCC {ctors(tree_class)} '
f'Number of Class Constructors\n')
metric.write(f'NoOM {methods(tree_class)}'
metric.write(f'NoOM {methods(tree_class)} '
f'Number of Non-Static (Object) Methods\n')
metric.write(f'NoCM {smethods(tree_class)} '
f'Number of Static (Class) Methods\n')
Expand Down

0 comments on commit 7ad9a49

Please sign in to comment.