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

Closes #6343. Make certain args of ScrapyAgent and TunnelingAgent required #6349

Merged
merged 1 commit into from May 10, 2024

Conversation

kumar-sanchay
Copy link
Contributor

Fixes #6343

@kumar-sanchay kumar-sanchay changed the title Closes: #6343. Make certain args of ScrapyAgent and TunnelingAgent required Closes #6343. Make certain args of ScrapyAgent and TunnelingAgent required May 8, 2024
@wRAR
Copy link
Member

wRAR commented May 8, 2024

The asserts are no longer needed.

@kumar-sanchay
Copy link
Contributor Author

The asserts are no longer needed.

Done

@wRAR
Copy link
Member

wRAR commented May 8, 2024

The asserts were there for typing purposes, to show that the args can't be None normally. If None is passed there will be a normal TypeError or something like that.

@kumar-sanchay
Copy link
Contributor Author

@Gallaecio @wRAR let me know if anything got missed here :)

@wRAR
Copy link
Member

wRAR commented May 10, 2024

As I said in the issue this is technically backwards-incompatible but only breaks the code that calls the constructors with all these args without using their names, which is unlikely (I took a quick look at the GH code search and didn't find such code).

@Gallaecio Gallaecio merged commit ae7bb84 into scrapy:master May 10, 2024
25 checks passed
@Gallaecio
Copy link
Member

Thanks!

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.

Make certain args of ScrapyAgent and TunnelingAgent required
3 participants