Skip to content

Commit ec39c77

Browse files
committed
Fix Python 3.8 support
1 parent b776701 commit ec39c77

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Release notes
33
=============
44

5+
0.6.1 (unreleased)
6+
==================
7+
8+
Fixed Pythonb 3.8 support.
9+
10+
511
0.6.0 (2025-09-16)
612
==================
713

sphinx_scrapy/__init__.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
from collections.abc import Generator
1+
from __future__ import annotations
22

3-
from sphinx.application import Sphinx
4-
from sphinx.config import Config
3+
from typing import TYPE_CHECKING
4+
5+
if TYPE_CHECKING:
6+
from collections.abc import Generator
7+
8+
from sphinx.application import Sphinx
9+
from sphinx.config import Config
510

611
INTERSPHINX_MAPPING = {
712
"attrs": ("https://www.attrs.org/en/stable/", None),

0 commit comments

Comments
 (0)