docs: def _parse_contract(self, player_info):
          """
          Parse the player's contract.
  
          Depending on the player's contract status, a contract table is located
          at the bottom of the stats page and includes player wages by season. If
          found, create a dictionary housing the wages by season.
  
          Parameters
          ----------
          player_info : PyQuery object
              A PyQuery object containing the HTML from the player's stats page.
          """
          contract = {}
  
          salary_table = player_info('table#br-salaries')
          for row in salary_table('tbody tr').items():
              if 'class="spacer partial_table"' in str(row):
                  continue
              year = row('th[data-stat="year_ID"]').text()
              if year.strip() == '':
                  continue
              age = row('td[data-stat="age"]').text()
              team = self._parse_team_name(str(row('td[data-stat="team_name"]')))
              salary = row('td[data-stat="Salary"]').text()
              contract[year] = {
                  'age': age,
                  'team': team,
                  'salary': salary
              }
          setattr(self, '_contract', contract)