-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
dict api
-
__len__,__iter__,__contains__Type hints #203 -
keys(),values(),items()
These ones are a bit weird. I propose that these should only contain the items indatasince the others can be obtained from thePathapi
Path api
-
__fspath__
Probably this one only needs to output posix path as a string -
__truediv__,__rtruediv__,joinpath() -
glob(),rglob() -
iterdir(),walk()
First part should be trivial, but the latter could use some equivalence:Path.walk()
Non-compliant apis:
parent(Pathapi)
Should always be of typeSelf. It should return itself if current object is rootroot(Pathapi)
Should always be of typestrget(),__getitem__(dictapi)- It should not accept an empty
nameor alist[str] - It should return type equivalent to
__getitem__
- It should not accept an empty
Other apis
pop(),setdefault(),__setitem__, etc.
These are changing the tree structure and should not implemented. If virtual Trees/Path are needed/implemented, these can be addedunlink(),rmdir()
Could be implemented, but there is ambiguity if it's a branch defined inmain.fmffile
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
waiting