Skip to content

Commit

Permalink
Export ._annotations.custom_attrs.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Sep 19, 2024
1 parent ceb67a7 commit b7e22e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scrapy_zyte_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

install_reactor("twisted.internet.asyncioreactor.AsyncioSelectorReactor")

from ._annotations import ExtractFrom, actions
from ._annotations import ExtractFrom, actions, custom_attrs
from ._middlewares import (
ScrapyZyteAPIDownloaderMiddleware,
ScrapyZyteAPISpiderMiddleware,
Expand Down
11 changes: 8 additions & 3 deletions tests/test_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

import pytest

from scrapy_zyte_api._annotations import custom_attrs

pytest.importorskip("scrapy_poet")

import attrs
Expand Down Expand Up @@ -36,7 +34,14 @@
)
from zyte_common_items.fields import auto_field

from scrapy_zyte_api import Actions, ExtractFrom, Geolocation, Screenshot, actions
from scrapy_zyte_api import (
Actions,
ExtractFrom,
Geolocation,
Screenshot,
actions,
custom_attrs,
)
from scrapy_zyte_api.handler import ScrapyZyteAPIDownloadHandler
from scrapy_zyte_api.providers import _AUTO_PAGES, _ITEM_KEYWORDS, ZyteApiProvider

Expand Down

0 comments on commit b7e22e7

Please sign in to comment.