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

Core adjustments (typing, misc fixes, replacing os.path with pathlib.Path) #2293

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

camp00000
Copy link

This builds up on #2292 (first commit is the same).

It's mostly just some general cleanup in typing, theoretical race conditions and removing os.path usage wherever possible within the core files.
I was considering replacing the leftover import os statements in core with from os import environ, getenv and so on as that's mostly where it's still used but I've left those as is for now.

There is no significant performance gain / loss, just some "going with the times" as I find os.path to be a bit antiquated, especially since this project is moving in the direction of no longer supporting older python versions anyways.

I don't mind this being dropped if you find it too risky or it collides with some other major overhaul that's in the works, just let me know with a comment and close the PR in that case.

@camp00000 camp00000 changed the title Core adjustments extensive Core adjustments (typing, misc fixes, replacing os.path with pathlib.Path) Mar 3, 2024
@dipu-bd
Copy link
Owner

dipu-bd commented Mar 9, 2024

It is a good idea to move to more modern library pathlib to handle filesystem operations. Thanks for the PR

@camp00000 camp00000 force-pushed the core-adjustments-extensive branch from 7027f60 to f6b3564 Compare March 10, 2024 11:03
@dipu-bd dipu-bd merged commit b009bbd into dipu-bd:dev Mar 29, 2024
4 checks passed
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