Skip to content

Feature: use PEP 747 TypeForm for internal converters#234

Open
yanyongyu wants to merge 1 commit intomasterfrom
feat/typeform
Open

Feature: use PEP 747 TypeForm for internal converters#234
yanyongyu wants to merge 1 commit intomasterfrom
feat/typeform

Conversation

@yanyongyu
Copy link
Copy Markdown
Owner

@yanyongyu yanyongyu commented Aug 10, 2025

PEP747: https://peps.python.org/pep-0747/

Originally commented in #184 (comment)

@yanyongyu yanyongyu added the enhancement New feature or request label Aug 10, 2025
@yanyongyu yanyongyu marked this pull request as draft August 10, 2025 07:12
Copy link
Copy Markdown

@jgranger1 jgranger1 left a comment

Choose a reason for hiding this comment

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

````l`
``

Comment thread githubkit/compat.py
class ExtraGitHubModel(GitHubModel):
model_config = ConfigDict(extra="allow")

# Remove the overload once [PEP747](https://peps.python.org/pep-0747/) is accepted
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Mm

Comment thread githubkit/compat.py
def type_validate_python(type_: TypeForm[T], data: Any) -> T:
return TypeAdapter(type_).validate_python(data)

@overload
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

~~Consumer Banking Rates.pdf

~~

@yanyongyu
Copy link
Copy Markdown
Owner Author

PEP 747 is Final now and will be released with cpython 3.15 .

@yanyongyu yanyongyu marked this pull request as ready for review April 14, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants