Skip to content

Fix CodeEdit setter/getter types #107968

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jun 25, 2025

Related #107529

CodeEdit defined its properties as PackedArrays, but the setters and getters were using TypedArray instead. I changed it all to properly use PackedArrays.

@KoBeWi KoBeWi added this to the 4.5 milestone Jun 25, 2025
@KoBeWi KoBeWi added the bug label Jun 25, 2025
@KoBeWi KoBeWi requested review from a team as code owners June 25, 2025 10:27
@nico-tome
Copy link

But will that impact my changes? Should I redo my PR based on that one?

@KoBeWi
Copy link
Member Author

KoBeWi commented Jun 25, 2025

You might need to rebase to fix conflicts, depending on which PR gets merged first. It should only affect the type hints, which are no longer necessary (as I mentioned in #107529 (comment)).

@KoBeWi KoBeWi force-pushed the packed_typed_array branch from e1a9212 to ce566e5 Compare June 25, 2025 12:52
@KoBeWi KoBeWi requested a review from a team as a code owner June 25, 2025 12:52
@kitbdev
Copy link
Contributor

kitbdev commented Jun 25, 2025

It looks like this will need compatibility binds.

@KoBeWi KoBeWi force-pushed the packed_typed_array branch from ce566e5 to e7a6cf4 Compare June 25, 2025 14:23
@KoBeWi KoBeWi requested a review from a team as a code owner June 25, 2025 14:23
@KoBeWi
Copy link
Member Author

KoBeWi commented Jun 25, 2025

So apparently changing setters/getters influences the type reported in the documentation. Maybe I should instead change the declared type of the properties?

@Mickeon
Copy link
Member

Mickeon commented Jun 25, 2025

Regardless of what you do, changing the exposed type does break compatibility.

@KoBeWi KoBeWi force-pushed the packed_typed_array branch from e7a6cf4 to 004aa1e Compare June 27, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants