(self)
return 1 + self.to_year - self.from_year
Return number of years contained in the current range
Return number of years contained in the current range
Return number of years contained in the current range
def count(self) -> int:
        """Return number of years contained in the current range"""
        if self.from_year is None:
            return 0

        assert self.to_year is not None
        return 1 + self.to_year - self.from_year
def count ( self ) -> int : if self . from_year is None : return 0 assert self . to_year is not None return 1 + self . to_year - self . from_year