class_docstr: Remove this fall-back once support for Python 3.10 is removed.
class_docstr_tok: ["Remove","this","fall-back","once","support","for","Python","3.10","is","removed","."]
code: def __init__(self, target_dir: str, /) -> None:
      self.path = target_dir
      self._dirs: list[str] = []
  
imports: from __future__ import annotations
  import contextlib
  import filecmp
  import os
  import re
  import shutil
  import sys
  import unicodedata
  from io import StringIO
  from os import path
  from typing import TYPE_CHECKING, Any
  from sphinx.deprecation import _deprecation_warning
label_desc: Use image node_id 1 to create a new _chdir object  with example: obj = _chdir()