Skip to content

Commit

Permalink
Restore Python 3.8 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Dec 26, 2023
1 parent 51ecf07 commit de6105c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy_poet/injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _get_item_builder(
on the registry.
"""

@functools.cache # to minimize the registry queries
@functools.lru_cache(maxsize=None) # to minimize the registry queries
def mapping_fn(item_cls: Callable) -> Optional[Callable]:
page_object_cls: Optional[Type[ItemPage]] = self.registry.page_cls_for_item(
request.url, cast(type, item_cls)
Expand Down

0 comments on commit de6105c

Please sign in to comment.