Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: count and show number of Transforms in listing #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tendai-zw
Copy link
Contributor

No description provided.

Copy link
Collaborator

@crest42 crest42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

print(URL_TEMPLATE.replace("<transform_name>", path) + ": " + mapping[path].__name__)

for idx, path in enumerate(mapping):
print(f"{idx}: " + str({URL_TEMPLATE.replace("<transform_name>", path) + ": " + mapping[path].__name__}))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are mixing f-strings and concatination here. I would commit to f-strings

for path in mapping:
print(path + ": " + mapping[path].__name__)
for idx, path in enumerate(mapping):
print(f"{idx}: " + path + ": " + mapping[path].__name__)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants