Skip to content

Follow-up after #19025: test and cleanup #19294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sterliakov
Copy link
Collaborator

@sterliakov sterliakov commented Jun 13, 2025

As requested by @ilevkivskyi in #19025

@sterliakov sterliakov marked this pull request as draft June 13, 2025 16:33

This comment has been minimized.

@sterliakov sterliakov changed the title Fix merge conflict from #19025 Follow-up after #19025: test and cleanup Jun 18, 2025
@sterliakov sterliakov force-pushed the hotfix/st-restore-is-staticmethod branch from e022f9c to 3bbd0d6 Compare June 18, 2025 15:54
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

colour (https://github.com/colour-science/colour)
+ colour/io/luts/tests/test_lut.py:521: note: "dict" is missing following "_NestedSequence" protocol members:
+ colour/io/luts/tests/test_lut.py:521: note:     count, index
+ colour/io/luts/tests/test_lut.py:521: note: Following member(s) of "dict[str, object]" have conflicts:
+ colour/io/luts/tests/test_lut.py:521: note:     Expected:
+ colour/io/luts/tests/test_lut.py:521: note:         def __getitem__(self, int, /) -> _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]
+ colour/io/luts/tests/test_lut.py:521: note:     Got:
+ colour/io/luts/tests/test_lut.py:521: note:         def __getitem__(self, str, /) -> object
+ colour/io/luts/tests/test_lut.py:521: note:     Expected:
+ colour/io/luts/tests/test_lut.py:521: note:         def __iter__(self) -> Iterator[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]]]
+ colour/io/luts/tests/test_lut.py:521: note:     Got:
+ colour/io/luts/tests/test_lut.py:521: note:         def __iter__(self) -> Iterator[str]
+ colour/io/luts/tests/test_lut.py:521: note:     <1 more conflict(s) not shown>
+ colour/io/luts/tests/test_lut.py:521: note: "dict" is missing following "_NestedSequence" protocol members:
+ colour/io/luts/tests/test_lut.py:521: note:     count, index
+ colour/io/luts/tests/test_lut.py:521: note: Following member(s) of "dict[str, object]" have conflicts:
+ colour/io/luts/tests/test_lut.py:521: note:     Expected:
+ colour/io/luts/tests/test_lut.py:521: note:         def __getitem__(self, int, /) -> complex | bytes | str | _NestedSequence[complex | bytes | str]
+ colour/io/luts/tests/test_lut.py:521: note:     Got:
+ colour/io/luts/tests/test_lut.py:521: note:         def __getitem__(self, str, /) -> object

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