refactor: Making the requests logic better and cleaner

Also, solve some bugs along the way and a cleaner fix for #97
This commit is contained in:
Karim shoair
2025-10-06 05:00:41 +03:00
parent cc45ded0cf
commit e53ce3f749
2 changed files with 684 additions and 644 deletions
+1 -2
View File
@@ -13,7 +13,6 @@ from scrapling.core._types import (
Callable,
Iterable,
SelectorWaitStates,
cast,
overload,
)
from scrapling.engines.toolbelt.navigation import construct_proxy_dict
@@ -215,7 +214,7 @@ def validate_fetch(params: List[Tuple], sentinel=None) -> _fetch_params:
result[arg] = session_value
if overrides:
overrides = cast(FetchConfig, validate(overrides, FetchConfig)).to_dict()
overrides = validate(overrides, FetchConfig).to_dict()
overrides.update(result)
return _fetch_params(**overrides)
File diff suppressed because it is too large Load Diff