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

Switch Neo specific Code to F strings #1339

Merged
merged 4 commits into from
Nov 17, 2023

Conversation

zm711
Copy link
Contributor

@zm711 zm711 commented Oct 20, 2023

I switched a lot of the .format and some of the % to f-strings. Neo is 3.8 + right now and f-strings were introduced in 3.6. They are faster (~ 1.5-2x compared to format) and at least to some, myself included, more readable.

I didn't touch any of the ios/rawios in this PR.
Take a read and let me know what you think.

@pep8speaks
Copy link

pep8speaks commented Oct 20, 2023

Hello @zm711! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2023-10-20 13:21:03 UTC

@samuelgarcia
Copy link
Contributor

Thanks a lot Zach for refactoring this quite old style of writing.

@samuelgarcia samuelgarcia merged commit b8989a1 into NeuralEnsemble:master Nov 17, 2023
@zm711
Copy link
Contributor Author

zm711 commented Nov 17, 2023

De rien.

@zm711 zm711 deleted the f-strings branch November 17, 2023 11:55
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.

3 participants