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

[flake8-bandit] Allow urllib.request.urlopen calls with static Request argument #10964

Merged
merged 1 commit into from Apr 16, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Allows, e.g.:

import urllib

urllib.request.urlopen(urllib.request.Request("https://example.com/"))

...in suspicious-url-open-usage.

See: #7918 (comment)

@charliermarsh charliermarsh added the rule Implementing or modifying a lint rule label Apr 16, 2024
Copy link
Contributor

github-actions bot commented Apr 16, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@charliermarsh charliermarsh enabled auto-merge (squash) April 16, 2024 02:27
@charliermarsh charliermarsh merged commit effd518 into main Apr 16, 2024
17 checks passed
@charliermarsh charliermarsh deleted the charlie/s branch April 16, 2024 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants