import typing


def _parse_config_file(content: str) -> typing.Mapping[str, str]:
  """Parses an ini-style config file into a map.

  Each line is expected to be a key/value pair, using `=` as a
  delimiter. Lines without `=` are silently dropped.
  """
  kv = {}
  for line in content.splitlines():
    if not line or line.startswith('#') or '=' not in line:
      continue
    k, v = line.split('=', 1)
    kv[k] = v.strip().strip('"\'')
  return kv