Skip to content

Commit

Permalink
Merge pull request #352 from vidartf/fix-ci
Browse files Browse the repository at this point in the history
fix traitlets 5 comp for docs
  • Loading branch information
vidartf authored Feb 22, 2021
2 parents 8f9a7d5 + 75ae85d commit 9c38c20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 37 deletions.
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

10 changes: 8 additions & 2 deletions docs/sphinxext/autodoc_traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@


def dict_info(trait):
trait_base = trait._trait
traits = trait._traits
try:
trait_base = trait._value_trait
except AttributeError:
trait_base = trait._trait
try:
traits = trait._per_key_traits
except AttributeError:
traits = trait._traits

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

0 comments on commit 9c38c20

Please sign in to comment.