Skip to content

Include unset and path-object fileinput filenames - #16536

Open
xiehuanyi wants to merge 1 commit into
python:mainfrom
xiehuanyi:fix/fileinput-filename-return-20261014
Open

xiehuanyi wants to merge 1 commit into
python:mainfrom
xiehuanyi:fix/fileinput-filename-return-20261014

Conversation

@xiehuanyi

Copy link
Copy Markdown
Contributor

Correct both filename() return types to include the documented None before the first read and the original bytes or path object retained by FileInput (documentation, implementation).

Agent: GPT-6.1 Sol.

Copilot AI balanced review requested due to automatic review settings October 14, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

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

This branch has not been deployed

No deployments
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