FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Typed ``**kwargs`` on field constructors by vlakius · Pull Request #2218 · tortoise/tortoise-orm · GitHub

Typed **kwargs on field constructors - #2218

Open
vlakius wants to merge 8 commits into
tortoise:developfrom
vlakius:develop
Open

Typed **kwargs on field constructors#2218
vlakius wants to merge 8 commits into
tortoise:developfrom
vlakius:develop

Conversation

vlakius commented Jun 15, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Description

Added PEP 692 Unpack[TypedDict] typing to field constructors. **kwargs: Any no longer hides common field args from IDEs/type-checkers.

Motivation and Context

See issue: #2168

How Has This Been Tested?

Checked with MyPy and PyRight and my IDE.
tried to add a typo (es: defualt) and it gets flagged as error

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added the changelog accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

vlakius changed the title updated changelog Typed **kwargs on field constructors Jun 15, 2026

codspeed-hq Bot commented Jun 15, 2026
edited
Loading

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 24 untouched benchmarks


Comparing vlakius:develop (3a8b565) with develop (bc4f971)

Comment thread tortoise/fields/data.py Outdated
Comment thread tortoise/fields/data.py Outdated

Copy link
Copy Markdown
Contributor

Looks OK for me. @abondar what do you think?

ropmyung commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

When will it be merged?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL