text: __author__ = "Frédéric BISSON"
  __copyright__ = "Copyright 2022, Frédéric BISSON"
  __credits__ = ["Frédéric BISSON"]
  __license__ = "mit"
  __maintainer__ = "Frédéric BISSON"
  __email__ = "zigazou@protonmail.com"
  
  from ..token.PDFToken import PDFToken
  
  from .PDFItem import PDFItem
  
  
  class PDFObjectEnd(PDFItem):
      """End of a PDF object"""
  
      def __eq__(self, other):
          """Equality operator for PDFObjectEnd.
  
          A PDFObjectEnd is:
  
            - equal to any other PDFObjectEnd
            - different from any other PDFToken subclass
  
          Comparing a PDFObjectEnd with anything else is not implemented.
  
          :param other: The object to compare to our current object
          :type other: any
          :return: True or False or NotImplemented
          :type: bool
          """
          if isinstance(other, PDFObjectEnd):
              return True
          elif isinstance(other, PDFToken):
              return False
          else:
              return NotImplemented
  
      def __bool__(self):
          """A PDFObjectEnd is always True."""
          return True
  
      def encode(self) -> bytes:
          return b"endobj"
  