code: def _unquote_or_none(s: Optional[str]) -> Optional[bytes]:  # noqa: F811
      
      if s is None:
          return s
      return url_unescape(s, encoding=None, plus=False)
docs: None-safe wrapper around url_unescape to handle unmatched optional
      groups correctly.
  
      Note that args are passed as bytes so the handler can decide what
      encoding to use.