Skip to content
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

5.0: Update django.contrib.messages.storage.cookie #2106

Merged
merged 1 commit into from
May 1, 2024

Conversation

JaeHyuckSa
Copy link
Contributor

I have made things!

Update stubs for django.contrib.admin.widgets for Django 5.0.

  • django.contrib.messages.storage.cookie
    • django.contrib.messages.storage.cookie.MessagePartSerializer was added
    • django.contrib.messages.storage.cookie.MessagePartGatherSerializer was added
    • django.contrib.messages.storage.cookie.MessageSerializer was changed
    • django.contrib.messages.storage.cookie.CookieStorage.not_finished_json was added
    • django.contrib.messages.storage.cookie.bisect_keep_left was added
    • django.contrib.messages.storage.cookie.bisect_keep_right was added

Related issues

Refs

Upstream PR
django.contrib.messages.storage.cookie.bisect_keep_left
django.contrib.messages.storage.cookie.bisect_keep_right

django.contrib.messages.storage.cookie.MessagePartSerializer
django.contrib.messages.storage.cookie.MessagePartGatherSerializer
django.contrib.messages.storage.cookie.MessageSerializer
`django.contrib.messages.storage.cookie.CookieStorage.not_finished_json

@JaeHyuckSa JaeHyuckSa changed the title 5.0: Update django.contrib.messages.storage 5.0: Update django.contrib.messages.storage.cookie May 1, 2024
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

👍

class CookieStorage(BaseStorage):
cookie_name: str
max_cookie_size: int
not_finished: str
not_finished_json: str

def bisect_keep_left(a: list[int], fn: Callable[[list[int]], bool]) -> int: ...
Copy link
Member

Choose a reason for hiding this comment

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

I guess it is fine not to bother with Sequence or anything in such a utility function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you :)

@sobolevn sobolevn merged commit 38285f1 into typeddjango:master May 1, 2024
40 checks passed
@sudosubin sudosubin mentioned this pull request May 2, 2024
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants