Skip to content

Remove references to wandb's removed RunDisabled class - #692

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

Remove references to wandb's removed RunDisabled class#692
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: rsmtool.utils.wandb and 8 other modules import RunDisabled at module level, which would raise ImportError under the upcoming wandb release. Union[Run, RunDisabled, None] type hints and the corresponding numpydoc docstrings are narrowed to Union[Run, None]; 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