Skip to content

Conversation

@datvo06
Copy link

@datvo06 datvo06 commented Dec 16, 2025

Closes #410, depends on #422

@datvo06 datvo06 changed the title [DRAFT PR] Discussion of Class and Type Synthesis Class and Type Synthesis Dec 17, 2025
_decode_counter: typing.ClassVar[int] = 0

@classmethod
def decode(cls, vl: SynthesizedType, context: LexicalContext | None = None) -> type:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some really scary stuff happening in here. Is the sole aim to support calling inspect.getsource on the result of decode?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

@eb8680
Copy link
Contributor

eb8680 commented Dec 23, 2025

@datvo06 as you've started doing in #456, can we pull out any new Encodables added here into standalone PRs? As discussed in #422 these are not specific to synthesis and separating them into smaller PRs will lead to much shorter review cycles.

@datvo06
Copy link
Author

datvo06 commented Dec 23, 2025

@datvo06 as you've started doing in #456, can we pull out any new Encodables added here into standalone PRs? As discussed in #422 these are not specific to synthesis and separating them into smaller PRs will lead to much shorter review cycles.

Hi, thanks! I will do it today.

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.

3 participants