From 2af6fcf45c398070b3427de14fd1bbed42996b04 Mon Sep 17 00:00:00 2001 From: Kohzy Date: Sat, 9 May 2026 11:59:12 -0400 Subject: [PATCH] Add 2026 WNBA expansion teams to PRO_TEAM_MAP Toronto Tempo (proTeamId=131935) and Portland Fire (proTeamId=132052) joined the WNBA for the 2026 season. Without these mappings, instantiating League(year=2026) raises KeyError in wbasketball/player.py when any team roster contains a player on either franchise. Repro: from espn_api.wbasketball import League League(league_id=, year=2026, espn_s2=..., swid=...) # KeyError: 131935 (or 132052) --- espn_api/wbasketball/constant.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/espn_api/wbasketball/constant.py b/espn_api/wbasketball/constant.py index 0e52f1079..6ba46a4f4 100644 --- a/espn_api/wbasketball/constant.py +++ b/espn_api/wbasketball/constant.py @@ -34,6 +34,8 @@ 19: 'Chi', 20: 'Atl', 129689: 'GSV', + 131935: 'Tor', + 132052: 'Por', } STATS_MAP = {