Skip to content

♻️ Simplify code in src/fastapi_cli/discover.py #22

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

Merged
merged 1 commit into from
May 19, 2024

Conversation

pedroimpulcetto
Copy link
Contributor

@pedroimpulcetto pedroimpulcetto commented May 9, 2024

Making a small improvement in the src/fastapi_cli/discover > get_default_path function.

This avoids duplicated code and keeps it maintainability.


It's a pleasure to me to contribute with this project ☺️
I'm new in the open source world 🌎, trying to help the community.

@pedroimpulcetto
Copy link
Contributor Author

Do you think this is a good approach @tiangolo ? 🙏🏻

@tiangolo tiangolo changed the title chore: improving code for function get_default_path ♻️ Simplify code in src/fastapi_cli/discover.py May 19, 2024
@tiangolo
Copy link
Member

Makes sense, thank you @pedroimpulcetto! 🚀

@tiangolo tiangolo merged commit 1340db9 into fastapi:main May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants