Skip to content

Commit b7e22e7

Browse files
committed
Export ._annotations.custom_attrs.
1 parent ceb67a7 commit b7e22e7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

scrapy_zyte_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

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

8-
from ._annotations import ExtractFrom, actions
8+
from ._annotations import ExtractFrom, actions, custom_attrs
99
from ._middlewares import (
1010
ScrapyZyteAPIDownloaderMiddleware,
1111
ScrapyZyteAPISpiderMiddleware,

tests/test_providers.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
import pytest
55

6-
from scrapy_zyte_api._annotations import custom_attrs
7-
86
pytest.importorskip("scrapy_poet")
97

108
import attrs
@@ -36,7 +34,14 @@
3634
)
3735
from zyte_common_items.fields import auto_field
3836

39-
from scrapy_zyte_api import Actions, ExtractFrom, Geolocation, Screenshot, actions
37+
from scrapy_zyte_api import (
38+
Actions,
39+
ExtractFrom,
40+
Geolocation,
41+
Screenshot,
42+
actions,
43+
custom_attrs,
44+
)
4045
from scrapy_zyte_api.handler import ScrapyZyteAPIDownloadHandler
4146
from scrapy_zyte_api.providers import _AUTO_PAGES, _ITEM_KEYWORDS, ZyteApiProvider
4247

0 commit comments

Comments
 (0)