Skip to content

Commit

Permalink
fix(convert): keep classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Caceresenzo committed May 11, 2023
1 parent 097ae2f commit 2d5c8e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crunch/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = 'crunch-cli'
__description__ = 'crunch-cli - CLI of the CrunchDAO Platform'
__version__ = '1.1.0'
__version__ = '1.1.1'
__author__ = 'Enzo CACERES'
__author_email__ = '[email protected]'
__url__ = 'https://github.com/crunchdao/crunch-cli'
2 changes: 1 addition & 1 deletion crunch/command/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def log(message):
tree = ast.parse(source)

for node in tree.body:
if isinstance(node, (ast.Import, ast.ImportFrom, ast.FunctionDef)):
if isinstance(node, (ast.Import, ast.ImportFrom, ast.FunctionDef, ast.ClassDef)):
valid += 1
module.body.append(node)

Expand Down

0 comments on commit 2d5c8e0

Please sign in to comment.