Skip to content

[peewee] Update to 4.2.6#16076

Merged
srittau merged 2 commits into
python:mainfrom
donbarbos:bump-peewee-4.2.6
Jul 22, 2026
Merged

[peewee] Update to 4.2.6#16076
srittau merged 2 commits into
python:mainfrom
donbarbos:bump-peewee-4.2.6

Conversation

@donbarbos

Copy link
Copy Markdown
Contributor

Closes: #16064
+ reflect what was done in the library's stubs (mostly old objects were typed)

Closes: python#16064
+ reflect what was done in the library's stubs (mostly old objects were typed)
@github-actions

This comment has been minimized.

Comment thread stubs/peewee/peewee.pyi Outdated
Comment on lines +1530 to +1534
cls, *args: Any, resolution: int = 1, utc: bool = False, null: Literal[True], **kwargs: Unpack[_FieldKwargs]
) -> TimestampField[datetime | None]: ...
@overload
def __new__(cls, *args: Any, null: Literal[False] = ..., **kwargs: Unpack[_FieldKwargs]) -> TimestampField[datetime]: ...
def __new__(
cls, *args: Any, resolution: int = 1, utc: bool = False, null: Literal[False] = False, **kwargs: Unpack[_FieldKwargs]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's use Incomplete here as we could reasonably just copy the arguments from Field.__init__.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit a8887d5 into python:main Jul 22, 2026
59 checks passed
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.

2 participants