Skip to content

Commit ab40ebf

Browse files
committed
Merge remote-tracking branch 'upstream/master' into remove-travis-ci
2 parents 2de82b6 + 9c38c20 commit ab40ebf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/sphinxext/autodoc_traits.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@
77

88

99
def dict_info(trait):
10-
trait_base = trait._trait
11-
traits = trait._traits
10+
try:
11+
trait_base = trait._value_trait
12+
except AttributeError:
13+
trait_base = trait._trait
14+
try:
15+
traits = trait._per_key_traits
16+
except AttributeError:
17+
traits = trait._traits
1218

1319
if traits is None and (trait_base is None or isinstance(trait_base, Any)):
1420
value_string = 'elements of any type'

0 commit comments

Comments
 (0)