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

Update fpdf2 stubs to 2.6.1 by srittau · Pull Request #9546 · python/typeshed · GitHub

Repository navigation

Update fpdf2 stubs to 2.6.1 - #9546

Merged
srittau merged 11 commits into
python:mainfrom
srittau:fpdf2-2.6.1
Jan 17, 2023
Merged

srittau merged 11 commits into
python:mainfrom
srittau:fpdf2-2.6.1

Conversation

srittau commented Jan 16, 2023 •
edited by AlexWaygood
Loading

Copy link
Copy Markdown
Collaborator

Closes #9542

Comment thread stubs/fpdf2/fpdf/fpdf.pyi Outdated
Comment on lines +152 to +160
# The following definition crashes stubtest.
# def set_encryption(
# self,
# owner_password: str,
# user_password: str | None = None,
# encryption_method: EncryptionMethod | str = ...,
# permissions: AccessPermission = ...,
# encrypt_metadata: bool = False,
# ) -> None: ...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This needs further investigation for which I didn't have time yet.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I just ran this against stubtest HEAD and this seems to fix it. I'll update the comment.

Comment thread stubs/fpdf2/fpdf/fpdf.pyi Outdated
Comment thread stubs/fpdf2/METADATA.toml Outdated

This comment has been minimized.

Copy link
Copy Markdown
Member

I think we'll need a pytype release that includes google/pytype@829c589 if you want to keep the string default values — or you could take them out for now, and add them back when we have the new pytype release

This comment has been minimized.

srittau commented Jan 16, 2023

Copy link
Copy Markdown
Collaborator Author

@rchen152 Is there a timeline for the next pytype release? This is non-critical, since we can easily work around the issue, but if a release is due soon, I would rather wait.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Comment thread stubs/fpdf2/fpdf/fpdf.pyi Outdated

This comment has been minimized.

AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good, just a few points

Comment thread stubs/fpdf2/fpdf/encryption.pyi Outdated
Comment thread stubs/fpdf2/fpdf/linearization.pyi Outdated
Comment thread stubs/fpdf2/fpdf/html.pyi
srittau and others added 2 commits January 17, 2023 13:11

Copy link
Copy Markdown
Contributor

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

srittau merged commit 7b848b4 into python:main Jan 17, 2023
srittau deleted the fpdf2-2.6.1 branch January 17, 2023 12:25

Copy link
Copy Markdown
Collaborator

@rchen152 Is there a timeline for the next pytype release? This is non-critical, since we can easily work around the issue, but if a release is due soon, I would rather wait.

Sorry for the delay! (Yesterday was MLK day here.) We usually aim to do one pytype release a week. It's a manual process, so there's no fixed schedule. Yesterday's nightly tests were clean, so I can cut a release right now, actually.

Copy link
Copy Markdown
Member

Yesterday's nightly tests were clean, so I can cut a release right now, actually.

That would be great, if possible! It would help unblock #9501

Copy link
Copy Markdown
Collaborator

Done! The new pytype version is 2023.01.17.

Copy link
Copy Markdown
Member

Done! The new pytype version is 2023.01.17.

Amazing, thank you!

srittau added a commit to srittau/typeshed that referenced this pull request Jan 18, 2023
AlexWaygood pushed a commit that referenced this pull request Jan 18, 2023
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