Skip to content

fix(warning): Define __slots__ function in Score class explicitly. - #243

Open
niels-c wants to merge 1 commit into
brain-score:mainfrom
niels-c:fix_scoreslots_warning
Open

niels-c wants to merge 1 commit into
brain-score:mainfrom
niels-c:fix_scoreslots_warning

Conversation

@niels-c

@niels-c niels-c commented Nov 16, 2026

Copy link
Copy Markdown

Every initialization of a Score class currently raises a FutureWarning because the slots function is undefined. DataAssembly already implements it explicitly. This addition therefore removes the warning but does not change the logic. Also: Closes #93.

Every initialization of a Score class currently raises a FutureWarning because the __slots__ function is undefined. DataAssembly already implements it explicitly. This addition therefore removes the warning but does not change the logic. Also: Closes brain-score#93.
@niels-c niels-c closed this Nov 19, 2026
@niels-c niels-c reopened this Nov 19, 2026
@niels-c

niels-c commented Nov 19, 2026

Copy link
Copy Markdown
Author

The PR is failing for reasons unrelated to its content (probably the same reason as #240 and #241). All tests pass; however, the installation seems to run into problems with differing httpcore versions, resulting in incompatible dependencies:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed...
httpcore 1.0.5 requires h11<0.15,>=0.13, but you have h11 0.16.0 which is incompatible.
...
httpcore2 2.16.2 requires h11>=0.16, but you have h11 0.14.0 which is incompatible.

The logParser then registers this as an error and makes the entire build fail.

@KartikP KartikP closed this Nov 28, 2026
@KartikP KartikP reopened this Nov 28, 2026

This branch has not been deployed

No deployments
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.

Implement "__slots__" in the class Score

2 participants