Address deprecation warning in shutil.rmtree(onerror=...)#3079
Address deprecation warning in shutil.rmtree(onerror=...)#3079asottile merged 1 commit intopre-commit:mainfrom edgarrmondragon:deprecation-rmtree-onerror
shutil.rmtree(onerror=...)#3079Conversation
|
cast should only be used for bugs in the type system I don't think we need this function any more sooner than the deprecation matters so I'm probably going to decline this anyway |
No problem. And I prefer avoiding |
yeah it's not -- the way you've written it is not typesafe |
|
FWIW I added a guard to check if the exception is an |
https://docs.python.org/3.12/whatsnew/3.12.html#shutil