Skip to content

Remove reference to wandb's removed RunDisabled class - #781

Open
dmitryduev wants to merge 1 commit into
EducationalTestingService:mainfrom
dmitryduev:rm-wandb-rundisabled
Open

Remove reference to wandb's removed RunDisabled class#781
dmitryduev wants to merge 1 commit into
EducationalTestingService:mainfrom
dmitryduev:rm-wandb-rundisabled

Conversation

@dmitryduev

Copy link
Copy Markdown

wandb deprecated RunDisabled in v0.17.6 (wandb/wandb#8064): since then, wandb.init(mode="disabled") returns a regular no-op wandb.Run, and RunDisabled has been an empty compatibility shim that emits a deprecation warning on attribute access. The shim is being removed in an upcoming wandb release (wandb/wandb#12586), after which importing it raises ImportError.

This PR drops the remaining references so the integration keeps working with upcoming wandb releases, while remaining compatible with older ones.

Details: skll/utils/wandb.py imports RunDisabled at module level, which would raise ImportError under the upcoming wandb release. The Optional[Union[Run, RunDisabled]] hint is narrowed to Optional[Run] and the now-unused Union import is dropped; behavior unchanged.

@dmitryduev
dmitryduev marked this pull request as ready for review August 26, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant