class_docstr: Represents a path which behaves like a string.
class_docstr_tok: ["Represents","a","path","which","behaves","like","a","string","."]
docstr: The name of the directory the file or directory is in.
docstr_tok: ["The","name","of","the","directory","the","file","or","directory","is","in","."]
code: def parent(self) -> path:
      """
      The name of the directory the file or directory is in.
      """
      return self.__class__(os.path.dirname(self))
  
imports: from __future__ import annotations
  import os
  import shutil
  import sys
  import warnings
  from typing import IO, TYPE_CHECKING, Any, Callable
  from sphinx.deprecation import RemovedInSphinx90Warning
label_desc: Use image node_id 1 for calling the path obj's underlying member method code with example usage: obj.parent() and returns: self