PyDocs

File and Directory Access

pathlib.types

Protocols for supporting classes in pathlib.
Symbols in pathlib.types

p

PathInfo
Protocol for path info objects, which support querying the file type.