Skip to content

Commit c03ebd5

Browse files
committed
Fix Python 3.9-incompatible union syntax
1 parent 8a6b7f3 commit c03ebd5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/attrs/sphinx_cached_property.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
classes will be inaccessible.
77
88
"""
9+
from __future__ import annotations
10+
911
from functools import cached_property
10-
from typing import Any
12+
from typing import Any, Union
1113

1214
from sphinx.application import Sphinx
1315

0 commit comments

Comments
 (0)