-
Notifications
You must be signed in to change notification settings - Fork 91
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
Type warning for fs.create_file
using pathlib.Path
#648
Comments
Thanks for the report! Actually the correct typing is something that is not finished yet and is on my to-do list, I just didn't get to it for some time. Especially there are several places where |
Ok, then I guess it is related to #599 |
Yes, correct! |
…or GitPython and #493 for plumbum
Turned out that fixing |
Thank you for this great project. I use it a lot in my tests.
If I use
fs.create_file
with apathlib.Path
my IDE shows me the warning _Expected type 'AnyStr', got 'Path' instead _.Everything still works fine, so I just wanted to report that the warning exists.
According to the definition
def create_file(self, file_path: AnyStr, ...)
the function expectsAnyStr
. I guess the warning should be fixed usingAnyPath
as for thedef create_dir(self, directory_path: AnyPath, ...)
The text was updated successfully, but these errors were encountered: