Skip to content

Conversation

@ford-at-aws
Copy link
Contributor

This PR makes it so this module returns a stats object instead of nothing at all.

print(f"GenAI {genai}")
stats['root'] = docgen_root.name
all_stats.append(stats)
return all_stats
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you returning a list from a main? What's the goal for this change?

Copy link
Contributor Author

@ford-at-aws ford-at-aws Oct 14, 2024

Choose a reason for hiding this comment

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

I want stats.py to return the stats, so it can be used like this: stats = doc_gen.stats(). Happy to create a separate method to implement this if that makes you more comfortable

@ford-at-aws ford-at-aws deleted the return-stats branch October 23, 2024 18:20
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