We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83dcba0 commit b0bf8f9Copy full SHA for b0bf8f9
numpydoc/docscrape.py
@@ -8,11 +8,17 @@
8
from warnings import warn
9
from collections import namedtuple
10
from collections.abc import Callable, Mapping
11
-from functools import cached_property
12
import copy
13
import sys
14
15
+# TODO: Remove try-except when support for Python 3.7 is dropped
16
+try:
17
+ from functools import cached_property
18
+except ImportError: # cached_property added in Python 3.8
19
+ cached_property = None
20
+
21
22
def strip_blank_lines(l):
23
"Remove leading and trailing blank lines from a list of lines"
24
while l and not l[0].strip():
0 commit comments