class_docstr: Cache for wcwidth sizes.
code: def __init__(self) -> None:
      super().__init__()
      # Keep track of the "long" strings in this cache.
      self._long_strings: deque[str] = deque()
  
imports: from __future__ import annotations
  import os
  import signal
  import sys
  import threading
  from collections import deque
  from typing import Callable, ContextManager, Dict, Generator, Generic, TypeVar, Union
  from wcwidth import wcwidth
label_desc: Use image node_id 1 to create a new _CharSizesCache object from inherited base classes: Dict with example: obj = _CharSizesCache()