Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tempfile.SpooledTemporaryFile: inherit from IOBase on 3.11#7802

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JelleZijlstra merged 13 commits intomasterfromJelleZijlstra-patch-7
May 18, 2022

Conversation

@JelleZijlstra
Copy link
Member

@github-actions

This comment has been minimized.

Copy link
Member

@AlexWaygoodAlexWaygood left a comment

Choose a reason for hiding this comment

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

I'd prefer us to use a wordier-but-more-readable alias name, like_SpooledTemporaryFileBase, rather than_STFBase which feels a bit opaque.

Copy link
Member

@AlexWaygoodAlexWaygood left a comment
edited
Loading

Choose a reason for hiding this comment

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

It looks like in typeshed, we've always pretended thatSpooledTemporaryFile hasreadable() andseekable() methods on Python <3.11 (see the comment on line 330), even though they don't at runtime. This is becauseSpooledTemporaryFile inherits fromIO in typeshed, andIO hasreadable() andseekable() as abstract methods.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Member

@AlexWaygoodAlexWaygood left a comment

Choose a reason for hiding this comment

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

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment on lines 221 to 222
# It does not actually derive from IO[AnyStr], but it does mostly behave
# like one.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The comment should probably be moved down above the class itself.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Done

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Contributor

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

@JelleZijlstra
Copy link
MemberAuthor

hm, I expected unused stubtest allowlist entries. I'll look into that in a followup PR.

@JelleZijlstraJelleZijlstra merged commit8f5a835 intomasterMay 18, 2022
@JelleZijlstraJelleZijlstra deleted the JelleZijlstra-patch-7 branchMay 18, 2022 01:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@srittausrittausrittau left review comments

@AkuliAkuliAkuli left review comments

@hauntsaninjahauntsaninjahauntsaninja approved these changes

@AlexWaygoodAlexWaygoodAlexWaygood approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@JelleZijlstra@srittau@hauntsaninja@Akuli@AlexWaygood

[8]ページ先頭

©2009-2025 Movatter.jp