Skip to content

Comments

Fix PTH123 false positive when open is passed a file descriptor#13616

Merged
zanieb merged 1 commit intomainfrom
zb/pathlib-open-fd
Oct 4, 2024
Merged

Fix PTH123 false positive when open is passed a file descriptor#13616
zanieb merged 1 commit intomainfrom
zb/pathlib-open-fd

Conversation

@zanieb
Copy link
Member

@zanieb zanieb commented Oct 3, 2024

Closes #12871

Includes some minor semantic type inference extensions changes to help with reliably detecting integers

@zanieb zanieb added the bug Something isn't working label Oct 3, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@zanieb zanieb force-pushed the zb/pathlib-open-fd branch from 38e2087 to 81a5144 Compare October 4, 2024 13:34
@zanieb zanieb enabled auto-merge (squash) October 4, 2024 13:34
@zanieb zanieb disabled auto-merge October 4, 2024 13:34
@zanieb zanieb merged commit d726f09 into main Oct 4, 2024
@zanieb zanieb deleted the zb/pathlib-open-fd branch October 4, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PTH123 suggests Path.open() which does not support file descriptors

2 participants