def __init__(
      self,
      document: Document,
      include_tags: Iterable[str] = (),
      exclude_tags: Iterable[str] = (),
  ) -> None:
    """Initializes the instance.

    Args:
      document: the base document on which to add edits.
      include_tags: specifies which tags to include in the view.
      exclude_tags: specifies which tags to exclude from the view.
    """
    self._include_tags = frozenset(include_tags)
    self._exclude_tags = frozenset(exclude_tags)
    common_tags = self._include_tags & self._exclude_tags
    if common_tags:
      raise ValueError(f'Cannot both include and exclude tags {common_tags!r}')
    self._document = document
Initializes the instance.

    Args:
      document: the base document on which to add edits.
      include_tags: specifies which tags to include in the view.
      exclude_tags: specifies which tags to exclude from the view.
    
concordia/document/document.py