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

PyUpgrade 3.8 updates #13289

Merged
merged 2 commits into from
Sep 1, 2024
Merged

PyUpgrade 3.8 updates #13289

merged 2 commits into from
Sep 1, 2024

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Sep 1, 2024

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

This PR refines string formatting across multiple files to follow a more modern syntax.

πŸ“Š Key Changes

  • Updated string formatting in classify/predict.py, detect.py, segment/predict.py, and utils/metrics.py from the old % syntax to the more modern str.format() and f-string syntax.

🎯 Purpose & Impact

  • Improved Readability: Makes the code more readable and maintainable by using a consistent, modern string formatting method.
  • Code Quality: Aligns with contemporary Python practices, helping developers avoid potential pitfalls of the older % string formatting method.

πŸ₯³ This small but effective update ensures that the code remains clean and up-to-date with current Python standards.

@UltralyticsAssistant UltralyticsAssistant added the documentation Improvements or additions to documentation label Sep 1, 2024
@glenn-jocher glenn-jocher merged commit f44db01 into master Sep 1, 2024
7 checks passed
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch September 1, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants