universal_pathlib icon indicating copy to clipboard operation
universal_pathlib copied to clipboard

Add typesafety checks

Open ap-- opened this issue 1 year ago • 0 comments

Close #210

This PR adds typesafety checks for the UPath class interface. Tests all public attributes / method return types.

currently missing (can be done in another PR):

  • [ ] __fspath__
  • [ ] __bytes__
  • [ ] _scandir
  • [ ] link_to (on <3.12)
  • [ ] walk (on >=3.12)

Ideally, the type checks should also be done for subclasses (-> future PR).

ap-- avatar Apr 01 '24 09:04 ap--