Whole file

swar/nba_api

The author described this change as fix: add missing PlayIn season type to parameters (#544). It counts as a record because the checks below fail on the code as it stood at a0a3cc950 and pass on 095d224e1, with nothing else changed between the two runs.

Fix saved2025-06-17
Sharing licenceMIT · LICENSE
Change size+1 0

What the code was meant to do, written into the code itself as a save note

fix: add missing PlayIn season type to parameters (#544)

The change

706706 class SeasonType:
707707 regular = "Regular Season"
708708 preseason = "Pre Season"
709+ playin = "PlayIn"
709710
710711 default = regular
711712

The check that tells the two apart

failpass·tests/unit/test_parameters.py::test_season_type_all_star
failpass·tests/unit/test_parameters.py::test_season_type_all_star_nullable
failpass·tests/unit/test_parameters.py::test_season_type_base
failpass·tests/unit/test_parameters.py::test_season_type_nullable
failpass·tests/unit/test_parameters.py::test_season_type_playoffs

Check file tests/unit/test_parameters.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before ita0a3cc9500fdb97904303672bf2e4615157b9056
Broken version dated2025-06-17
Modulenba_api.stats.library.parameters
Units changedSeasonType
Fingerprint4986f0364e5cf943
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.