# Buggy code
def isenumclass(x):
    """Check if the object is subclass of enum."""
    if enum is None:
        return False
    return issubclass(x, enum.Enum)


# Traceback (TypeError)
❯ BOKEH_DOCS_CDN=local make SPHINXOPTS=-vv clean html
rm -rf _build/*
rm -rf source/docs/gallery/*
sphinx-build -b html -d _build/doctrees  -vv source -W _build/html
Running Sphinx v1.5.4
making output directory...
[app] setting up extension: 'sphinx.builders.applehelp'
[app] setting up extension: 'sphinx.builders.html'
[app] adding builder: <class 'sphinx.builders.html.StandaloneHTMLBuilder'>
[app] adding builder: <class 'sphinx.builders.html.DirectoryHTMLBuilder'>
[app] adding builder: <class 'sphinx.builders.html.SingleFileHTMLBuilder'>
[app] adding builder: <class 'sphinx.builders.html.PickleHTMLBuilder'>
[app] adding builder: <class 'sphinx.builders.html.JSONHTMLBuilder'>
[app] connecting event 'builder-inited': <function validate_config_values at 0x107ecaea0> [id=0]
[app] adding config value: ('html_theme', 'alabaster', 'html')
[app] adding config value: ('html_theme_path', [], 'html')
[app] adding config value: ('html_theme_options', {}, 'html')
[app] adding config value: ('html_title', <function setup.<locals>.<lambda> at 0x108086620>, 'html', [<class 'str'>])
[app] adding config value: ('html_short_title', <function setup.<locals>.<lambda> at 0x1080866a8>, 'html')
[app] adding config value: ('html_style', None, 'html', [<class 'str'>])
[app] adding config value: ('html_logo', None, 'html', [<class 'str'>])
[app] adding config value: ('html_favicon', None, 'html', [<class 'str'>])
[app] adding config value: ('html_static_path', [], 'html')
[app] adding config value: ('html_extra_path', [], 'html')
[app] adding config value: ('html_last_updated_fmt', None, 'html', [<class 'str'>])
[app] adding config value: ('html_use_smartypants', True, 'html')
[app] adding config value: ('html_sidebars', {}, 'html')
[app] adding config value: ('html_additional_pages', {}, 'html')
[app] adding config value: ('html_use_modindex', True, 'html')
[app] adding config value: ('html_domain_indices', True, 'html', [<class 'list'>])
[app] adding config value: ('html_add_permalinks', '¶', 'html')
[app] adding config value: ('html_use_index', True, 'html')
[app] adding config value: ('html_split_index', False, 'html')
[app] adding config value: ('html_copy_source', True, 'html')
[app] adding config value: ('html_show_sourcelink', True, 'html')
[app] adding config value: ('html_sourcelink_suffix', '.txt', 'html')
[app] adding config value: ('html_use_opensearch', '', 'html')
[app] adding config value: ('html_file_suffix', None, 'html', [<class 'str'>])
[app] adding config value: ('html_link_suffix', None, 'html', [<class 'str'>])
[app] adding config value: ('html_show_copyright', True, 'html')
[app] adding config value: ('html_show_sphinx', True, 'html')
[app] adding config value: ('html_context', {}, 'html')
[app] adding config value: ('html_output_encoding', 'utf-8', 'html')
[app] adding config value: ('html_compact_lists', True, 'html')
[app] adding config value: ('html_secnumber_suffix', '. ', 'html')
[app] adding config value: ('html_search_language', None, 'html', [<class 'str'>])
[app] adding config value: ('html_search_options', {}, 'html')
[app] adding config value: ('html_search_scorer', '', None)
[app] adding config value: ('html_scaled_image_link', True, 'html')
[app] adding builder: <class 'sphinx.builders.applehelp.AppleHelpBuilder'>
[app] adding config value: ('applehelp_bundle_name', <function setup.<locals>.<lambda> at 0x107cb7e18>, 'applehelp')
[app] adding config value: ('applehelp_bundle_id', None, 'applehelp', [<class 'str'>])
[app] adding config value: ('applehelp_dev_region', 'en-us', 'applehelp')
[app] adding config value: ('applehelp_bundle_version', '1', 'applehelp')
[app] adding config value: ('applehelp_icon', None, 'applehelp', [<class 'str'>])
[app] adding config value: ('applehelp_kb_product', <function setup.<locals>.<lambda> at 0x1080867b8>, 'applehelp')
[app] adding config value: ('applehelp_kb_url', None, 'applehelp', [<class 'str'>])
[app] adding config value: ('applehelp_remote_url', None, 'applehelp', [<class 'str'>])
[app] adding config value: ('applehelp_index_anchors', False, 'applehelp', [<class 'str'>])
[app] adding config value: ('applehelp_min_term_length', None, 'applehelp', [<class 'str'>])
[app] adding config value: ('applehelp_stopwords', <function setup.<locals>.<lambda> at 0x1059caea0>, 'applehelp')
[app] adding config value: ('applehelp_locale', <function setup.<locals>.<lambda> at 0x108086840>, 'applehelp')
[app] adding config value: ('applehelp_title', <function setup.<locals>.<lambda> at 0x108086730>, 'applehelp')
[app] adding config value: ('applehelp_codesign_identity', <function setup.<locals>.<lambda> at 0x108086950>, 'applehelp')
[app] adding config value: ('applehelp_codesign_flags', <function setup.<locals>.<lambda> at 0x108086598>, 'applehelp')
[app] adding config value: ('applehelp_indexer_path', '/usr/bin/hiutil', 'applehelp')
[app] adding config value: ('applehelp_codesign_path', '/usr/bin/codesign', 'applehelp')
[app] adding config value: ('applehelp_disable_external_tools', False, None)
[app] setting up extension: 'sphinx.builders.changes'
[app] adding builder: <class 'sphinx.builders.changes.ChangesBuilder'>
[app] setting up extension: 'sphinx.builders.epub'
[app] setting up extension: 'sphinx.builders.html'
[app] adding builder: <class 'sphinx.builders.epub.EpubBuilder'>
[app] adding config value: ('epub_basename', <function setup.<locals>.<lambda> at 0x108093d08>, None)
[app] adding config value: ('epub_theme', 'epub', 'html')
[app] adding config value: ('epub_theme_options', {}, 'html')
[app] adding config value: ('epub_title', <function setup.<locals>.<lambda> at 0x108093e18>, 'html')
[app] adding config value: ('epub_author', 'unknown', 'html')
[app] adding config value: ('epub_language', <function setup.<locals>.<lambda> at 0x108093f28>, 'html')
[app] adding config value: ('epub_publisher', 'unknown', 'html')
[app] adding config value: ('epub_copyright', <function setup.<locals>.<lambda> at 0x1080940d0>, 'html')
[app] adding config value: ('epub_identifier', 'unknown', 'html')
[app] adding config value: ('epub_scheme', 'unknown', 'html')
[app] adding config value: ('epub_uid', 'unknown', 'env')
[app] adding config value: ('epub_cover', (), 'env')
[app] adding config value: ('epub_guide', (), 'env')
[app] adding config value: ('epub_pre_files', [], 'env')
[app] adding config value: ('epub_post_files', [], 'env')
[app] adding config value: ('epub_exclude_files', [], 'env')
[app] adding config value: ('epub_tocdepth', 3, 'env')
[app] adding config value: ('epub_tocdup', True, 'env')
[app] adding config value: ('epub_tocscope', 'default', 'env')
[app] adding config value: ('epub_fix_images', False, 'env')
[app] adding config value: ('epub_max_image_width', 0, 'env')
[app] adding config value: ('epub_show_urls', 'inline', 'html')
[app] adding config value: ('epub_use_index', <function setup.<locals>.<lambda> at 0x1080941e0>, 'html')
[app] setting up extension: 'sphinx.builders.epub3'
[app] setting up extension: 'sphinx.builders.epub'
[app] adding builder: <class 'sphinx.builders.epub3.Epub3Builder'>
[app] connecting event 'builder-inited': <function validate_config_values at 0x108094048> [id=1]
[app] adding config value: ('epub_description', '', 'epub3', [<class 'str'>])
[app] adding config value: ('epub_contributor', 'unknown', 'epub3', [<class 'str'>])
[app] adding config value: ('epub_writing_mode', 'horizontal', 'epub3', [<class 'str'>])
[app] adding config value: ('epub3_description', None, 'epub3', [<class 'str'>])
[app] adding config value: ('epub3_contributor', None, 'epub3', [<class 'str'>])
[app] adding config value: ('epub3_page_progression_direction', None, 'epub3', [<class 'str'>])
[app] setting up extension: 'sphinx.builders.devhelp'
[app] setting up extension: 'sphinx.builders.html'
[app] adding builder: <class 'sphinx.builders.devhelp.DevhelpBuilder'>
[app] adding config value: ('devhelp_basename', <function setup.<locals>.<lambda> at 0x108094158>, None)
[app] setting up extension: 'sphinx.builders.dummy'
[app] adding builder: <class 'sphinx.builders.dummy.DummyBuilder'>
[app] setting up extension: 'sphinx.builders.gettext'
[app] adding builder: <class 'sphinx.builders.gettext.MessageCatalogBuilder'>
[app] adding config value: ('gettext_compact', True, 'gettext')
[app] adding config value: ('gettext_location', True, 'gettext')
[app] adding config value: ('gettext_uuid', False, 'gettext')
[app] adding config value: ('gettext_auto_build', True, 'env')
[app] adding config value: ('gettext_additional_targets', [], 'env')
[app] setting up extension: 'sphinx.builders.html'
[app] setting up extension: 'sphinx.builders.htmlhelp'
[app] setting up extension: 'sphinx.builders.html'
[app] adding builder: <class 'sphinx.builders.htmlhelp.HTMLHelpBuilder'>
[app] adding config value: ('htmlhelp_basename', <function setup.<locals>.<lambda> at 0x1080869d8>, None)
[app] setting up extension: 'sphinx.builders.latex'
[app] adding builder: <class 'sphinx.builders.latex.LaTeXBuilder'>
[app] connecting event 'builder-inited': <function validate_config_values at 0x1080c8048> [id=2]
[app] adding config value: ('latex_engine', <function default_latex_engine at 0x108169a60>, None, <sphinx.config.ENUM object at 0x107c9b128>)
[app] adding config value: ('latex_documents', <function setup.<locals>.<lambda> at 0x1080c3e18>, None)
[app] adding config value: ('latex_logo', None, None, [<class 'str'>])
[app] adding config value: ('latex_appendices', [], None)
[app] adding config value: ('latex_keep_old_macro_names', True, None)
[app] adding config value: ('latex_use_parts', False, None)
[app] adding config value: ('latex_toplevel_sectioning', None, None, [<class 'str'>])
[app] adding config value: ('latex_use_modindex', True, None)
[app] adding config value: ('latex_domain_indices', True, None, [<class 'list'>])
[app] adding config value: ('latex_show_urls', 'no', None)
[app] adding config value: ('latex_show_pagerefs', False, None)
[app] adding config value: ('latex_paper_size', 'letter', None)
[app] adding config value: ('latex_font_size', '10pt', None)
[app] adding config value: ('latex_elements', {}, None)
[app] adding config value: ('latex_additional_files', [], None)
[app] adding config value: ('latex_docclass', <function default_latex_docclass at 0x108169ae8>, None)
[app] adding config value: ('latex_preamble', '', None)
[app] setting up extension: 'sphinx.builders.linkcheck'
[app] adding builder: <class 'sphinx.builders.linkcheck.CheckExternalLinksBuilder'>
[app] adding config value: ('linkcheck_ignore', [], None)
[app] adding config value: ('linkcheck_retries', 1, None)
[app] adding config value: ('linkcheck_timeout', None, None, [<class 'int'>])
[app] adding config value: ('linkcheck_workers', 5, None)
[app] adding config value: ('linkcheck_anchors', True, None)
[app] adding config value: ('linkcheck_anchors_ignore', ['^!'], None)
[app] setting up extension: 'sphinx.builders.manpage'
[app] adding builder: <class 'sphinx.builders.manpage.ManualPageBuilder'>
[app] adding config value: ('man_pages', <function setup.<locals>.<lambda> at 0x1080c3a60>, None)
[app] adding config value: ('man_show_urls', False, None)
[app] setting up extension: 'sphinx.builders.qthelp'
[app] setting up extension: 'sphinx.builders.html'
[app] adding builder: <class 'sphinx.builders.qthelp.QtHelpBuilder'>
[app] adding config value: ('qthelp_basename', <function setup.<locals>.<lambda> at 0x10877f8c8>, None)
[app] adding config value: ('qthelp_theme', 'nonav', 'html')
[app] adding config value: ('qthelp_theme_options', {}, 'html')
[app] setting up extension: 'sphinx.builders.texinfo'
[app] adding builder: <class 'sphinx.builders.texinfo.TexinfoBuilder'>
[app] adding config value: ('texinfo_documents', <function setup.<locals>.<lambda> at 0x10877f9d8>, None)
[app] adding config value: ('texinfo_appendices', [], None)
[app] adding config value: ('texinfo_elements', {}, None)
[app] adding config value: ('texinfo_domain_indices', True, None, [<class 'list'>])
[app] adding config value: ('texinfo_show_urls', 'footnote', None)
[app] adding config value: ('texinfo_no_detailmenu', False, None)
[app] setting up extension: 'sphinx.builders.text'
[app] adding builder: <class 'sphinx.builders.text.TextBuilder'>
[app] adding config value: ('text_sectionchars', '*=-~"+`', 'env')
[app] adding config value: ('text_newlines', 'unix', 'env')
[app] setting up extension: 'sphinx.builders.websupport'
[app] adding builder: <class 'sphinx.builders.websupport.WebSupportBuilder'>
[app] setting up extension: 'sphinx.builders.xml'
[app] adding builder: <class 'sphinx.builders.xml.XMLBuilder'>
[app] adding builder: <class 'sphinx.builders.xml.PseudoXMLBuilder'>
[app] adding config value: ('xml_pretty', True, 'env')
[app] setting up extension: 'sphinx.domains.c'
[app] adding domain: <class 'sphinx.domains.c.CDomain'>
[app] setting up extension: 'sphinx.domains.cpp'
[app] adding domain: <class 'sphinx.domains.cpp.CPPDomain'>
[app] adding config value: ('cpp_index_common_prefix', [], 'env')
[app] adding config value: ('cpp_id_attributes', [], 'env')
[app] adding config value: ('cpp_paren_attributes', [], 'env')
[app] setting up extension: 'sphinx.domains.javascript'
[app] adding domain: <class 'sphinx.domains.javascript.JavaScriptDomain'>
[app] setting up extension: 'sphinx.domains.python'
[app] adding domain: <class 'sphinx.domains.python.PythonDomain'>
[app] setting up extension: 'sphinx.domains.rst'
[app] adding domain: <class 'sphinx.domains.rst.ReSTDomain'>
[app] setting up extension: 'sphinx.domains.std'
[app] adding domain: <class 'sphinx.domains.std.StandardDomain'>
[app] setting up extension: 'sphinx.directives'
[app] setting up extension: 'sphinx.directives.code'
[app] setting up extension: 'sphinx.directives.other'
[app] setting up extension: 'sphinx.directives.patches'
[app] setting up extension: 'sphinx.roles'
[app] setting up extension: 'sphinx.ext.autodoc'
[app] adding autodocumenter: <class 'sphinx.ext.autodoc.ModuleDocumenter'>
[app] adding directive: ('automodule', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding autodocumenter: <class 'sphinx.ext.autodoc.ClassDocumenter'>
[app] adding directive: ('autoclass', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding autodocumenter: <class 'sphinx.ext.autodoc.ExceptionDocumenter'>
[app] adding directive: ('autoexception', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding autodocumenter: <class 'sphinx.ext.autodoc.DataDocumenter'>
[app] adding directive: ('autodata', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding autodocumenter: <class 'sphinx.ext.autodoc.FunctionDocumenter'>
[app] adding directive: ('autofunction', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding autodocumenter: <class 'sphinx.ext.autodoc.MethodDocumenter'>
[app] adding directive: ('automethod', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding autodocumenter: <class 'sphinx.ext.autodoc.AttributeDocumenter'>
[app] adding directive: ('autoattribute', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding autodocumenter: <class 'sphinx.ext.autodoc.InstanceAttributeDocumenter'>
[app] adding directive: ('autoinstanceattribute', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding config value: ('autoclass_content', 'class', True)
[app] adding config value: ('autodoc_member_order', 'alphabetic', True)
[app] adding config value: ('autodoc_default_flags', [], True)
[app] adding config value: ('autodoc_docstring_signature', True, True)
[app] adding config value: ('autodoc_mock_imports', [], True)
[app] adding event: 'autodoc-process-docstring'
[app] adding event: 'autodoc-process-signature'
[app] adding event: 'autodoc-skip-member'
[app] setting up extension: 'sphinx.ext.autosummary'
[app] setting up extension: 'sphinx.ext.autodoc'
[app] adding node: (<class 'sphinx.ext.autosummary.autosummary_toc'>, {'html': (<function autosummary_toc_visit_html at 0x1089900d0>, <function autosummary_noop at 0x108990048>), 'latex': (<function autosummary_noop at 0x108990048>, <function autosummary_noop at 0x108990048>), 'text': (<function autosummary_noop at 0x108990048>, <function autosummary_noop at 0x108990048>), 'man': (<function autosummary_noop at 0x108990048>, <function autosummary_noop at 0x108990048>), 'texinfo': (<function autosummary_noop at 0x108990048>, <function autosummary_noop at 0x108990048>)})
[app] adding node: (<class 'sphinx.ext.autosummary.autosummary_table'>, {'html': (<function autosummary_table_visit_html at 0x108990158>, <function autosummary_noop at 0x108990048>), 'latex': (<function autosummary_noop at 0x108990048>, <function autosummary_noop at 0x108990048>), 'text': (<function autosummary_noop at 0x108990048>, <function autosummary_noop at 0x108990048>), 'man': (<function autosummary_noop at 0x108990048>, <function autosummary_noop at 0x108990048>), 'texinfo': (<function autosummary_noop at 0x108990048>, <function autosummary_noop at 0x108990048>)})
[app] adding directive: ('autosummary', <class 'sphinx.ext.autosummary.Autosummary'>, None, None, {})
[app] adding role: ('autolink', <function autolink_role at 0x108990730>)
[app] connecting event 'doctree-read': <function process_autosummary_toc at 0x108988ea0> [id=3]
[app] connecting event 'builder-inited': <function process_generate_options at 0x108990840> [id=4]
[app] adding config value: ('autosummary_generate', [], True, [<class 'bool'>])
[app] setting up extension: 'sphinx.ext.ifconfig'
[app] adding node: (<class 'sphinx.ext.ifconfig.ifconfig'>, {})
[app] adding directive: ('ifconfig', <class 'sphinx.ext.ifconfig.IfConfig'>, None, None, {})
[app] connecting event 'doctree-resolved': <function process_ifconfig_nodes at 0x108988c80> [id=5]
[app] setting up extension: 'sphinx.ext.napoleon'
[app] connecting event 'autodoc-process-docstring': <function _process_docstring at 0x1089a6510> [id=6]
[app] connecting event 'autodoc-skip-member': <function _skip_member at 0x1089a6598> [id=7]
[app] adding config value: ('napoleon_google_docstring', True, 'env')
[app] adding config value: ('napoleon_numpy_docstring', True, 'env')
[app] adding config value: ('napoleon_include_init_with_doc', False, 'env')
[app] adding config value: ('napoleon_include_private_with_doc', False, 'env')
[app] adding config value: ('napoleon_include_special_with_doc', False, 'env')
[app] adding config value: ('napoleon_use_admonition_for_examples', False, 'env')
[app] adding config value: ('napoleon_use_admonition_for_notes', False, 'env')
[app] adding config value: ('napoleon_use_admonition_for_references', False, 'env')
[app] adding config value: ('napoleon_use_ivar', False, 'env')
[app] adding config value: ('napoleon_use_param', True, 'env')
[app] adding config value: ('napoleon_use_rtype', True, 'env')
[app] adding config value: ('napoleon_use_keyword', True, 'env')
[app] setting up extension: 'sphinx.ext.intersphinx'
[app] adding config value: ('intersphinx_mapping', {}, True)
[app] adding config value: ('intersphinx_cache_limit', 5, False)
[app] adding config value: ('intersphinx_timeout', None, False)
[app] connecting event 'missing-reference': <function missing_reference at 0x1089a6bf8> [id=8]
[app] connecting event 'builder-inited': <function load_mappings at 0x1089a6b70> [id=9]
[app] setting up extension: 'sphinx.ext.viewcode'
[app] adding config value: ('viewcode_import', True, False)
[app] adding config value: ('viewcode_enable_epub', False, False)
[app] connecting event 'doctree-read': <function doctree_read at 0x1089a6f28> [id=10]
[app] connecting event 'env-merge-info': <function env_merge_info at 0x1089b1048> [id=11]
[app] connecting event 'html-collect-pages': <function collect_pages at 0x1089b1158> [id=12]
[app] connecting event 'missing-reference': <function missing_reference at 0x1089b10d0> [id=13]
[app] setting up extension: 'bokeh.sphinxext.bokeh_autodoc'
[app] adding autodocumenter: <class 'bokeh.sphinxext.bokeh_autodoc.EnumDocumenter'>
[app] adding directive: ('autoenum', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding autodocumenter: <class 'bokeh.sphinxext.bokeh_autodoc.PropDocumenter'>
[app] adding directive: ('autoprop', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] adding autodocumenter: <class 'bokeh.sphinxext.bokeh_autodoc.ModelDocumenter'>
[app] adding directive: ('automodel', <class 'sphinx.ext.autodoc.AutoDirective'>, None, None, {})
[app] setting up extension: 'bokeh.sphinxext.bokeh_enum'
[app] adding directive to domain: ('py', 'bokeh-enum', <class 'bokeh.sphinxext.bokeh_enum.BokehEnumDirective'>, None, None, {})
[app] setting up extension: 'bokeh.sphinxext.bokeh_gallery'
[app] connecting event 'env-updated': <function env_updated_handler at 0x1112a77b8> [id=14]
[app] adding directive: ('bokeh-gallery', <class 'bokeh.sphinxext.bokeh_gallery.BokehGalleryDirective'>, None, None, {})
[app] setting up extension: 'bokeh.sphinxext.bokeh_github'
[app] adding role: ('bokeh-commit', <function bokeh_commit at 0x1112a7b70>)
[app] adding role: ('bokeh-issue', <function bokeh_issue at 0x1112a7bf8>)
[app] adding role: ('bokeh-pull', <function bokeh_pull at 0x1112a7c80>)
[app] adding role: ('bokeh-tree', <function bokeh_tree at 0x1112a7d08>)
[app] setting up extension: 'bokeh.sphinxext.bokeh_jinja'
[app] adding directive to domain: ('py', 'bokeh-jinja', <class 'bokeh.sphinxext.bokeh_jinja.BokehJinjaDirective'>, None, None, {})
[app] setting up extension: 'bokeh.sphinxext.bokeh_index_toctree'
[app] adding directive: ('bokeh-index-toctree', <class 'bokeh.sphinxext.bokeh_index_toctree.BokehIndexTocTree'>, None, None, {})
[app] setting up extension: 'bokeh.sphinxext.bokeh_model'
[app] adding directive to domain: ('py', 'bokeh-model', <class 'bokeh.sphinxext.bokeh_model.BokehModelDirective'>, None, None, {})
[app] setting up extension: 'bokeh.sphinxext.bokeh_options'
[app] adding directive to domain: ('py', 'bokeh-options', <class 'bokeh.sphinxext.bokeh_options.BokehOptionsDirective'>, None, None, {})
[app] setting up extension: 'bokeh.sphinxext.bokeh_palette'
[app] adding role: ('bokeh-palette', <function bokeh_palette at 0x1113821e0>)
[app] setting up extension: 'bokeh.sphinxext.bokeh_palette_group'
[app] adding node: (<class 'bokeh.sphinxext.bokeh_palette_group.bokeh_palette_group'>, {'html': (<function html_visit_bokeh_palette_group at 0x111382400>, None)})
[app] adding directive: ('bokeh-palette-group', <class 'bokeh.sphinxext.bokeh_palette_group.BokehPaletteGroupDirective'>, None, None, {})
[app] setting up extension: 'bokeh.sphinxext.bokeh_plot'
[app] adding config value: ('bokeh_plot_pyfile_include_dirs', [], 'html')
[app] adding search source_parser: '.py', <class 'bokeh.sphinxext.bokeh_plot.PlotScriptParser'>
[app] adding directive: ('bokeh-plot', <class 'bokeh.sphinxext.bokeh_plot.BokehPlotDirective'>, None, None, {})
[app] connecting event 'env-before-read-docs': <function env_before_read_docs at 0x111382620> [id=15]
[app] connecting event 'builder-inited': <function builder_inited at 0x1116f2510> [id=16]
[app] connecting event 'html-page-context': <function html_page_context at 0x1116f2598> [id=17]
[app] connecting event 'build-finished': <function build_finished at 0x1116f2620> [id=18]
[app] connecting event 'env-purge-doc': <function env_purge_doc at 0x1116f26a8> [id=19]
[app] setting up extension: 'bokeh.sphinxext.bokeh_prop'
[app] adding directive to domain: ('py', 'bokeh-prop', <class 'bokeh.sphinxext.bokeh_prop.BokehPropDirective'>, None, None, {})
[app] setting up extension: 'bokeh.sphinxext.bokeh_sitemap'
[app] connecting event 'html-page-context': <function html_page_context at 0x1116f28c8> [id=20]
[app] connecting event 'build-finished': <function build_finished at 0x1116f2950> [id=21]
[app] setting up extension: 'bokeh.sphinxext.collapsible_code_block'
[app] adding node: (<class 'bokeh.sphinxext.collapsible_code_block.collapsible_code_block'>, {'html': (<function html_visit_collapsible_code_block at 0x1116f2ae8>, <function html_depart_collapsible_code_block at 0x1116f2bf8>)})
[app] adding directive: ('collapsible-code-block', <class 'bokeh.sphinxext.collapsible_code_block.CollapsibleCodeBlock'>, None, None, {})
[app] setting up extension: 'alabaster'
[app] connecting event 'html-page-context': <function update_context at 0x1116f2d90> [id=22]
loading pickled environment... not yet created
loading intersphinx inventory from https://docs.python.org/objects.inv...
intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/2/objects.inv
loading intersphinx inventory from http://pandas.pydata.org/pandas-docs/stable/objects.inv...
loading intersphinx inventory from http://docs.scipy.org/doc/numpy/objects.inv...
intersphinx inventory has moved: http://docs.scipy.org/doc/numpy/objects.inv -> https://docs.scipy.org/doc/numpy/objects.inv
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 297 source files that are out of date
updating environment: 297 added, 0 changed, 0 removed
reading sources... [  0%] docs/user_guide/examples/concepts_plotting
reading sources... [  0%] docs/user_guide/examples/interaction_button
reading sources... [  1%] docs/user_guide/examples/interaction_callbacks_for_hover
reading sources... [  1%] docs/user_guide/examples/interaction_callbacks_for_range_update
reading sources... [  1%] docs/user_guide/examples/interaction_callbacks_for_selections
reading sources... [  2%] docs/user_guide/examples/interaction_callbacks_for_selections_lasso_mean
reading sources... [  2%] docs/user_guide/examples/interaction_callbacks_for_tools
reading sources... [  2%] docs/user_guide/examples/interaction_callbacks_for_widgets
reading sources... [  3%] docs/user_guide/examples/interaction_callbacks_in_python
reading sources... [  3%] docs/user_guide/examples/interaction_callbacks_js_on_change
reading sources... [  3%] docs/user_guide/examples/interaction_checkbox_button_group
reading sources... [  4%] docs/user_guide/examples/interaction_checkbox_group
reading sources... [  4%] docs/user_guide/examples/interaction_data_table
/Users/bryan/work/bokeh/bokeh/core/json_encoder.py:73: FutureWarning: pandas.tslib is deprecated and will be removed in a future version.
You can access Timestamp as pandas.Timestamp
  if pd and isinstance(obj, pd.tslib.Timestamp):
reading sources... [  4%] docs/user_guide/examples/interaction_div
reading sources... [  5%] docs/user_guide/examples/interaction_dropdown_menu
reading sources... [  5%] docs/user_guide/examples/interaction_legend_hide
reading sources... [  5%] docs/user_guide/examples/interaction_legend_mute
reading sources... [  6%] docs/user_guide/examples/interaction_linked_brushing
reading sources... [  6%] docs/user_guide/examples/interaction_linked_panning
reading sources... [  6%] docs/user_guide/examples/interaction_multiselect
reading sources... [  7%] docs/user_guide/examples/interaction_open_url
reading sources... [  7%] docs/user_guide/examples/interaction_paragraph
reading sources... [  7%] docs/user_guide/examples/interaction_pretext
reading sources... [  8%] docs/user_guide/examples/interaction_radio_button_group
reading sources... [  8%] docs/user_guide/examples/interaction_radio_group
reading sources... [  8%] docs/user_guide/examples/interaction_select
reading sources... [  9%] docs/user_guide/examples/interaction_slider
reading sources... [  9%] docs/user_guide/examples/interaction_tab_panes
reading sources... [  9%] docs/user_guide/examples/interaction_textinput
reading sources... [ 10%] docs/user_guide/examples/interaction_toggle_button
reading sources... [ 10%] docs/user_guide/examples/js_events
reading sources... [ 10%] docs/user_guide/examples/layout_grid
reading sources... [ 11%] docs/user_guide/examples/layout_grid_convenient
reading sources... [ 11%] docs/user_guide/examples/layout_horizontal
reading sources... [ 11%] docs/user_guide/examples/layout_vertical
reading sources... [ 12%] docs/user_guide/examples/layout_widgets
reading sources... [ 12%] docs/user_guide/examples/plotting_annular_wedge
reading sources... [ 12%] docs/user_guide/examples/plotting_annulus
reading sources... [ 13%] docs/user_guide/examples/plotting_arcs
reading sources... [ 13%] docs/user_guide/examples/plotting_arrow
reading sources... [ 13%] docs/user_guide/examples/plotting_band
reading sources... [ 14%] docs/user_guide/examples/plotting_box_annotation
reading sources... [ 14%] docs/user_guide/examples/plotting_categorical_axis
reading sources... [ 14%] docs/user_guide/examples/plotting_color_bars
reading sources... [ 15%] docs/user_guide/examples/plotting_datetime_axis
reading sources... [ 15%] docs/user_guide/examples/plotting_ellipses
reading sources... [ 15%] docs/user_guide/examples/plotting_figure_range
reading sources... [ 16%] docs/user_guide/examples/plotting_hbar
reading sources... [ 16%] docs/user_guide/examples/plotting_image
reading sources... [ 16%] docs/user_guide/examples/plotting_label
reading sources... [ 17%] docs/user_guide/examples/plotting_legends
reading sources... [ 17%] docs/user_guide/examples/plotting_legends_by_source
reading sources... [ 17%] docs/user_guide/examples/plotting_line_missing_points
reading sources... [ 18%] docs/user_guide/examples/plotting_line_multiple
reading sources... [ 18%] docs/user_guide/examples/plotting_line_single
reading sources... [ 18%] docs/user_guide/examples/plotting_log_scale_axis
reading sources... [ 19%] docs/user_guide/examples/plotting_multiple_glyphs
reading sources... [ 19%] docs/user_guide/examples/plotting_ovals
reading sources... [ 19%] docs/user_guide/examples/plotting_patch_missing_points
reading sources... [ 20%] docs/user_guide/examples/plotting_patch_multiple
reading sources... [ 20%] docs/user_guide/examples/plotting_patch_single
reading sources... [ 20%] docs/user_guide/examples/plotting_ray
reading sources... [ 21%] docs/user_guide/examples/plotting_rectangles
reading sources... [ 21%] docs/user_guide/examples/plotting_rectangles_rotated
reading sources... [ 21%] docs/user_guide/examples/plotting_scatter_circle
reading sources... [ 22%] docs/user_guide/examples/plotting_scatter_square
reading sources... [ 22%] docs/user_guide/examples/plotting_segments
reading sources... [ 22%] docs/user_guide/examples/plotting_span
reading sources... [ 23%] docs/user_guide/examples/plotting_title_additional
reading sources... [ 23%] docs/user_guide/examples/plotting_title_basic
reading sources... [ 23%] docs/user_guide/examples/plotting_title_location
reading sources... [ 24%] docs/user_guide/examples/plotting_title_toolbar
reading sources... [ 24%] docs/user_guide/examples/plotting_title_visuals
reading sources... [ 25%] docs/user_guide/examples/plotting_twin_axes
reading sources... [ 25%] docs/user_guide/examples/plotting_vbar
reading sources... [ 25%] docs/user_guide/examples/plotting_wedge
reading sources... [ 26%] docs/user_guide/examples/styling_arrow_annotations
reading sources... [ 26%] docs/user_guide/examples/styling_axis_properties
reading sources... [ 26%] docs/user_guide/examples/styling_background_fill
reading sources... [ 27%] docs/user_guide/examples/styling_bounds
reading sources... [ 27%] docs/user_guide/examples/styling_dimensions
reading sources... [ 27%] docs/user_guide/examples/styling_fixed_ticker
reading sources... [ 28%] docs/user_guide/examples/styling_func_tick_formatter
reading sources... [ 28%] docs/user_guide/examples/styling_glyph_hover
reading sources... [ 28%] docs/user_guide/examples/styling_glyph_properties
reading sources... [ 29%] docs/user_guide/examples/styling_glyph_selections_plotting_glyph
reading sources... [ 29%] docs/user_guide/examples/styling_glyph_selections_plotting_params
reading sources... [ 29%] docs/user_guide/examples/styling_grid_band_fill
reading sources... [ 30%] docs/user_guide/examples/styling_grid_bounds
reading sources... [ 30%] docs/user_guide/examples/styling_grid_lines
reading sources... [ 30%] docs/user_guide/examples/styling_labels
reading sources... [ 31%] docs/user_guide/examples/styling_legend_background
reading sources... [ 31%] docs/user_guide/examples/styling_legend_border
reading sources... [ 31%] docs/user_guide/examples/styling_legend_dimensions
reading sources... [ 32%] docs/user_guide/examples/styling_legend_label_text
reading sources... [ 32%] docs/user_guide/examples/styling_legend_location
reading sources... [ 32%] docs/user_guide/examples/styling_legend_location_outside
reading sources... [ 33%] docs/user_guide/examples/styling_legend_orientation
reading sources... [ 33%] docs/user_guide/examples/styling_min_border
reading sources... [ 33%] docs/user_guide/examples/styling_minor_grid_lines
reading sources... [ 34%] docs/user_guide/examples/styling_numerical_tick_formatter
reading sources... [ 34%] docs/user_guide/examples/styling_plot_outline_line_color
reading sources... [ 34%] docs/user_guide/examples/styling_printf_tick_formatter
reading sources... [ 35%] docs/user_guide/examples/styling_specifying_colors
reading sources... [ 35%] docs/user_guide/examples/styling_tick_label_orientation
reading sources... [ 35%] docs/user_guide/examples/styling_tick_lines
reading sources... [ 36%] docs/user_guide/examples/styling_title
reading sources... [ 36%] docs/user_guide/examples/styling_tool_overlays
reading sources... [ 36%] docs/user_guide/examples/styling_visible_annotation_with_interaction
reading sources... [ 37%] docs/user_guide/examples/styling_visible_property
reading sources... [ 37%] docs/user_guide/examples/tools_hover_custom_tooltip
reading sources... [ 37%] docs/user_guide/examples/tools_hover_tooltip_formatting
reading sources... [ 38%] docs/user_guide/examples/tools_hover_tooltips
reading sources... [ 38%] docs/user_guide/examples/tools_position_toolbar
reading sources... [ 38%] docs/user_guide/examples/tools_position_toolbar_clash
reading sources... [ 39%] docs/user_guide/source_examples/interaction_range_slider
reading sources... [ 39%] docs/dev_guide
reading sources... [ 39%] docs/dev_guide/bindings
reading sources... [ 40%] docs/dev_guide/bokehjs
reading sources... [ 40%] docs/dev_guide/documentation
reading sources... [ 40%] docs/dev_guide/env_vars
reading sources... [ 41%] docs/dev_guide/models
reading sources... [ 41%] docs/dev_guide/server
reading sources... [ 41%] docs/dev_guide/setup
reading sources... [ 42%] docs/dev_guide/testing
reading sources... [ 42%] docs/gallery
copying gallery files... [  3%] iris.py
copying gallery files... [  6%] image_rgba.py
copying gallery files... [ 10%] candlestick.py
copying gallery files... [ 13%] legend.py
copying gallery files... [ 17%] box_annotation.py
copying gallery files... [ 20%] les_mis.py
copying gallery files... [ 24%] unemployment.py
copying gallery files... [ 27%] stocks.py
copying gallery files... [ 31%] streamline.py
copying gallery files... [ 34%] quiver.py
copying gallery files... [ 37%] categorical.py
copying gallery files... [ 41%] dot.py
copying gallery files... [ 44%] periodic.py
copying gallery files... [ 48%] histogram.py
/Users/bryan/work/bokeh/sphinx/source/docs/gallery/histogram.py:41: RuntimeWarning: divide by zero encountered in true_divide
  pdf = 1/(x* sigma * np.sqrt(2*np.pi)) * np.exp(-(np.log(x)-mu)**2 / (2*sigma**2))
/Users/bryan/work/bokeh/sphinx/source/docs/gallery/histogram.py:41: RuntimeWarning: divide by zero encountered in log
  pdf = 1/(x* sigma * np.sqrt(2*np.pi)) * np.exp(-(np.log(x)-mu)**2 / (2*sigma**2))
/Users/bryan/work/bokeh/sphinx/source/docs/gallery/histogram.py:41: RuntimeWarning: invalid value encountered in multiply
  pdf = 1/(x* sigma * np.sqrt(2*np.pi)) * np.exp(-(np.log(x)-mu)**2 / (2*sigma**2))
/Users/bryan/work/bokeh/sphinx/source/docs/gallery/histogram.py:42: RuntimeWarning: divide by zero encountered in log
  cdf = (1+scipy.special.erf((np.log(x)-mu)/(np.sqrt(2)*sigma)))/2
copying gallery files... [ 51%] image.py
copying gallery files... [ 55%] slider.py
copying gallery files... [ 58%] jitter.py
copying gallery files... [ 62%] lorenz.py
copying gallery files... [ 65%] color_scatter.py
copying gallery files... [ 68%] color_sliders.py
copying gallery files... [ 72%] iris_splom.py
copying gallery files... [ 75%] anscombe.py
copying gallery files... [ 79%] texas.py
copying gallery files... [ 82%] markers.py
copying gallery files... [ 86%] burtin.py
copying gallery files... [ 89%] brewer.py
copying gallery files... [ 93%] elements.py
copying gallery files... [ 96%] boxplot.py
copying gallery files... [100%] logaxis.py

/Users/bryan/work/bokeh/sphinx/source/docs/gallery.rst:20: (INFO/1) Duplicate implicit target name: "gallery". [filtered system message]
reading sources... [ 42%] docs/installation
/Users/bryan/work/bokeh/sphinx/source/docs/installation.rst:18: (INFO/1) Duplicate implicit target name: "installation". [filtered system message]
reading sources... [ 43%] docs/reference
reading sources... [ 43%] docs/reference/bokeh
[autodoc] /Users/bryan/work/bokeh/sphinx/source/docs/reference/bokeh.rst:25: input:
.. autofunction:: bokeh.license

[autodoc] from bokeh import license
[autodoc] import bokeh
[autodoc] => <module 'bokeh' from '/Users/bryan/work/bokeh/bokeh/__init__.py'>
[autodoc] getattr(_, 'license')
[autodoc] => <function license at 0x107cb7d90>
[autodoc] /Users/bryan/work/bokeh/sphinx/source/docs/reference/bokeh.rst:27: input:
.. autofunction:: bokeh.test
[autodoc] from bokeh import test
[autodoc] import bokeh
[autodoc] => <module 'bokeh' from '/Users/bryan/work/bokeh/bokeh/__init__.py'>
[autodoc] getattr(_, 'test')
[autodoc] => <function test at 0x107cad840>
/Users/bryan/work/bokeh/sphinx/source/docs/reference/bokeh.rst:18: (INFO/1) Duplicate implicit target name: "bokeh". [filtered system message]
Traceback (most recent call last):
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/ext/viewcode.py", line 28, in _get_full_modname
    return get_full_modname(modname, attribute)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/util/__init__.py", line 263, in get_full_modname
    __import__(modname)
TypeError: __import__() argument 1 must be str, not None
viewcode can't import None, failed with error "__import__() argument 1 must be str, not None"
reading sources... [ 43%] docs/reference/client
[autodoc] /Users/bryan/work/bokeh/sphinx/source/docs/reference/client.rst:20: input:
.. automodule:: bokeh.client
  :members:

[autodoc] import bokeh.client
[autodoc] => <module 'bokeh.client' from '/Users/bryan/work/bokeh/bokeh/client/__init__.py'>
[autodoc] from bokeh.client import ClientSession
[autodoc] import bokeh.client
[autodoc] => <module 'bokeh.client' from '/Users/bryan/work/bokeh/bokeh/client/__init__.py'>
[autodoc] getattr(_, 'ClientSession')
[autodoc] => <class 'bokeh.client.session.ClientSession'>
[autodoc] from bokeh.client import pull_session
[autodoc] import bokeh.client
[autodoc] => <module 'bokeh.client' from '/Users/bryan/work/bokeh/bokeh/client/__init__.py'>
[autodoc] getattr(_, 'pull_session')
[autodoc] => <function pull_session at 0x11ca3f8c8>
[autodoc] from bokeh.client import push_session
[autodoc] import bokeh.client
[autodoc] => <module 'bokeh.client' from '/Users/bryan/work/bokeh/bokeh/client/__init__.py'>
[autodoc] getattr(_, 'push_session')
[autodoc] => <function push_session at 0x11ca3f840>
[autodoc] from bokeh.client import show_session
[autodoc] import bokeh.client
[autodoc] => <module 'bokeh.client' from '/Users/bryan/work/bokeh/bokeh/client/__init__.py'>
[autodoc] getattr(_, 'show_session')
[autodoc] => <function show_session at 0x11ca3f9d8>
[autodoc] /Users/bryan/work/bokeh/sphinx/source/docs/reference/client.rst:28: input:
.. automodule:: bokeh.client.session
   :members:
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] from bokeh.client.session import ClientSession
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'ClientSession')
[autodoc] => <class 'bokeh.client.session.ClientSession'>
[autodoc] from bokeh.client.session import ClientSession.force_roundtrip
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'ClientSession')
[autodoc] => <class 'bokeh.client.session.ClientSession'>
[autodoc] getattr(_, 'force_roundtrip')
[autodoc] => <function ClientSession.force_roundtrip at 0x11cb32268>
[autodoc] from bokeh.client.session import ClientSession.pull
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'ClientSession')
[autodoc] => <class 'bokeh.client.session.ClientSession'>
[autodoc] getattr(_, 'pull')
[autodoc] => <function ClientSession.pull at 0x11ca3fbf8>
[autodoc] from bokeh.client.session import ClientSession.push
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'ClientSession')
[autodoc] => <class 'bokeh.client.session.ClientSession'>
[autodoc] getattr(_, 'push')
[autodoc] => <function ClientSession.push at 0x11ca3fc80>
[autodoc] from bokeh.client.session import ClientSession.request_server_info
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'ClientSession')
[autodoc] => <class 'bokeh.client.session.ClientSession'>
[autodoc] getattr(_, 'request_server_info')
[autodoc] => <function ClientSession.request_server_info at 0x11cb321e0>
[autodoc] from bokeh.client.session import ClientSession.show
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'ClientSession')
[autodoc] => <class 'bokeh.client.session.ClientSession'>
[autodoc] getattr(_, 'show')
[autodoc] => <function ClientSession.show at 0x11ca3fd08>
[autodoc] from bokeh.client.session import ClientSession.document
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'ClientSession')
[autodoc] => <class 'bokeh.client.session.ClientSession'>
[autodoc] getattr(_, 'document')
[autodoc] => <property object at 0x11ca4dc28>
[autodoc] from bokeh.client.session import Document
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'Document')
[autodoc] => <class 'bokeh.document.Document'>
[autodoc] from bokeh.client.session import deprecated
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'deprecated')
[autodoc] => <function deprecated at 0x1109bdd90>
[autodoc] from bokeh.client.session import generate_session_id
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'generate_session_id')
[autodoc] => <function generate_session_id at 0x1113b7158>
[autodoc] from bokeh.client.session import pull_session
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'pull_session')
[autodoc] => <function pull_session at 0x11ca3f8c8>
[autodoc] from bokeh.client.session import push_session
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'push_session')
[autodoc] => <function push_session at 0x11ca3f840>
[autodoc] from bokeh.client.session import show_session
[autodoc] import bokeh.client.session
[autodoc] => <module 'bokeh.client.session' from '/Users/bryan/work/bokeh/bokeh/client/session.py'>
[autodoc] getattr(_, 'show_session')
[autodoc] => <function show_session at 0x11ca3f9d8>
/Users/bryan/work/bokeh/sphinx/source/docs/reference/client.rst:18: (INFO/1) Duplicate implicit target name: "bokeh.client". [filtered system message]
/Users/bryan/work/bokeh/sphinx/source/docs/reference/client.rst:26: (INFO/1) Duplicate implicit target name: "bokeh.client.session". [filtered system message]
reading sources... [ 44%] docs/reference/core
/Users/bryan/work/bokeh/sphinx/source/docs/reference/core.rst:18: (INFO/1) Duplicate implicit target name: "bokeh.core". [filtered system message]
reading sources... [ 44%] docs/reference/core/enums
[autodoc] /Users/bryan/work/bokeh/sphinx/source/docs/reference/core/enums.rst:23: input:
.. automodule:: bokeh.core.enums
  :members:
  :undoc-members:
  :exclude-members: enumeration
[autodoc] import bokeh.core.enums
[autodoc] => <module 'bokeh.core.enums' from '/Users/bryan/work/bokeh/bokeh/core/enums.py'>
[autodoc] from bokeh.core.enums import Aggregation
[autodoc] import bokeh.core.enums
[autodoc] => <module 'bokeh.core.enums' from '/Users/bryan/work/bokeh/bokeh/core/enums.py'>
[autodoc] getattr(_, 'Aggregation')
[autodoc] => Enumeration(sum, mean, count, nunique, median, min, max)
copying bokeh-plot files... [  0%] bokeh-plot-004f9aedb54c32b623d9c82927c468a5.js
copying bokeh-plot files... [  1%] bokeh-plot-030618c95e6496779542e4deb00663d6.js
copying bokeh-plot files... [  2%] bokeh-plot-03bf3971c5f395b8179838c431fac4b6.js
copying bokeh-plot files... [  2%] bokeh-plot-0524d1e2753b9b7406b24e961246036c.js
copying bokeh-plot files... [  3%] bokeh-plot-0642739ca6c3605dcc6a7f16f4e687ea.js
copying bokeh-plot files... [  4%] bokeh-plot-075710d538550185b2a5c7f2fe8a0bf6.js
copying bokeh-plot files... [  4%] bokeh-plot-0a523d64e03bcd58aa2336fb76f2b7c4.js
copying bokeh-plot files... [  5%] bokeh-plot-0a5f76bddd16cb566aff31abf09b65e2.js
copying bokeh-plot files... [  6%] bokeh-plot-0a721f8f2cd72a5eeb9d72e1a2ccfea4.js
copying bokeh-plot files... [  6%] bokeh-plot-10aceabaf548b46e2891ea62dd4482c9.js
copying bokeh-plot files... [  7%] bokeh-plot-10d19a3d488f4821532562f2b13b651c.js
copying bokeh-plot files... [  8%] bokeh-plot-1289a150a88853c11a6303f03a635f85.js
copying bokeh-plot files... [  8%] bokeh-plot-134f6aae0644026c69df56acf5582dba.js
copying bokeh-plot files... [  9%] bokeh-plot-15c7b0d0fc0494a7132936ae20564c9d.js
copying bokeh-plot files... [ 10%] bokeh-plot-1799fe2e5bc8ee04d653c3f0ff73d251.js
copying bokeh-plot files... [ 11%] bokeh-plot-18563c30e887a449169cb916236b3c0c.js
copying bokeh-plot files... [ 11%] bokeh-plot-18896f51fdb5f92a43bd1a1ed20fefcc.js
copying bokeh-plot files... [ 12%] bokeh-plot-19b97ac2000eefcb41337cbed5b2a6ae.js
copying bokeh-plot files... [ 13%] bokeh-plot-1cef8bf88cd1bdcb0215665c0574567e.js
copying bokeh-plot files... [ 13%] bokeh-plot-1ddd952826fcdb7386286d473fc937f7.js
copying bokeh-plot files... [ 14%] bokeh-plot-1e0c6dfff4e91b2155cd43a50fa436c1.js
copying bokeh-plot files... [ 15%] bokeh-plot-1e1609768765c33b7ff502f620ab7b20.js
copying bokeh-plot files... [ 15%] bokeh-plot-1fed0b7ec24ea07c11215e1407276c82.js
copying bokeh-plot files... [ 16%] bokeh-plot-2278643e35681b2fb5904edb6880fdb5.js
copying bokeh-plot files... [ 17%] bokeh-plot-261b6c8e0d077f850b05ce1e69f6a28e.js
copying bokeh-plot files... [ 17%] bokeh-plot-2819c85105f186eed54d0b0d7dbe9dc6.js
copying bokeh-plot files... [ 18%] bokeh-plot-2c38ddb4a16e060a28334e4d8d639e7c.js
copying bokeh-plot files... [ 19%] bokeh-plot-2dc95c07d324be03aebe29109682fa02.js
copying bokeh-plot files... [ 20%] bokeh-plot-3096639a3bc0b3439ce7102241118200.js
copying bokeh-plot files... [ 20%] bokeh-plot-3115a6c554bf6b8861b66fbda4bf8689.js
copying bokeh-plot files... [ 21%] bokeh-plot-311b8b7ea2a9be81a00917e416c56920.js
copying bokeh-plot files... [ 22%] bokeh-plot-3a15166280af983e11882a6796c4af10.js
copying bokeh-plot files... [ 22%] bokeh-plot-3ab16df5398bf3896367fe666d05e692.js
copying bokeh-plot files... [ 23%] bokeh-plot-3b66d71cbd06151a8ab3fabc85d6a31e.js
copying bokeh-plot files... [ 24%] bokeh-plot-3bbf74eacf91bbc6e9ed28fddd9a8fb4.js
copying bokeh-plot files... [ 24%] bokeh-plot-3d21b7e90cd793f5b350711c53f09348.js
copying bokeh-plot files... [ 25%] bokeh-plot-3e2ad30fb433604d4062f232ec373ebc.js
copying bokeh-plot files... [ 26%] bokeh-plot-40b2225b23453a3cc37ca365a5bc420a.js
copying bokeh-plot files... [ 26%] bokeh-plot-42383b17617c32aebc065d0e70ea9cd9.js
copying bokeh-plot files... [ 27%] bokeh-plot-4634890804ee6199e02210bf9cf1256c.js
copying bokeh-plot files... [ 28%] bokeh-plot-4719c2e5dfbab97d110bbb7894c6ae63.js
copying bokeh-plot files... [ 28%] bokeh-plot-473fff4d06ba73aba51c698c9d00b96a.js
copying bokeh-plot files... [ 29%] bokeh-plot-49decf0e2bec4c292c1e83d1282a97b3.js
copying bokeh-plot files... [ 30%] bokeh-plot-4be02557c724facfd6924bb3e5a32b43.js
copying bokeh-plot files... [ 31%] bokeh-plot-4d291fc4dd35393c4365c6068289d3cf.js
copying bokeh-plot files... [ 31%] bokeh-plot-4ddca6e91f36adfed35a5ce11fd07359.js
copying bokeh-plot files... [ 32%] bokeh-plot-4e938ca242d85e6a70fdcbea2c9ad25b.js
copying bokeh-plot files... [ 33%] bokeh-plot-4fc924b0e207f41663b807013426aabb.js
copying bokeh-plot files... [ 33%] bokeh-plot-51a373450defd9b414ad46f95231969b.js
copying bokeh-plot files... [ 34%] bokeh-plot-52c3daf3afef82eab624a9dbfc12362a.js
copying bokeh-plot files... [ 35%] bokeh-plot-5916dd68383117674db7a50b85125240.js
copying bokeh-plot files... [ 35%] bokeh-plot-5d3d25e60c5175cb55e99563d0222d04.js
copying bokeh-plot files... [ 36%] bokeh-plot-5e6c35dc5f90991c0f10211a27c0669a.js
copying bokeh-plot files... [ 37%] bokeh-plot-60fbae293e67d7dc6811c4d4acd4b14b.js
copying bokeh-plot files... [ 37%] bokeh-plot-618540b7abc350280de86f2525d906a9.js
copying bokeh-plot files... [ 38%] bokeh-plot-61ed6bd3bc17bd188ed4b20281412e29.js
copying bokeh-plot files... [ 39%] bokeh-plot-631f24ec87d8a71915efdbbd3b877ac5.js
copying bokeh-plot files... [ 40%] bokeh-plot-63b0c57505b37548063953f4272bd009.js
copying bokeh-plot files... [ 40%] bokeh-plot-63f0c5b9bfa3d22c4b2c6045517f0a3b.js
copying bokeh-plot files... [ 41%] bokeh-plot-6472f0945b1a7118b9aaa788d1c6f2a8.js
copying bokeh-plot files... [ 42%] bokeh-plot-652f0aea5186bb99db9dd1a5cf0417e5.js
copying bokeh-plot files... [ 42%] bokeh-plot-662f4043f7d29575af9de6b5eb27ec9a.js
copying bokeh-plot files... [ 43%] bokeh-plot-6683a4ae7f2c5fc9d109a93064502e23.js
copying bokeh-plot files... [ 44%] bokeh-plot-68a6bd371d33b36e81ac1cc529eff881.js
copying bokeh-plot files... [ 44%] bokeh-plot-68d2cbf8a370d8197a8002ddac102227.js
copying bokeh-plot files... [ 45%] bokeh-plot-692ced7f37579a811ff02788cbbb69e4.js
copying bokeh-plot files... [ 46%] bokeh-plot-697ce46e660b8ddc7fbe9c4734e65df5.js
copying bokeh-plot files... [ 46%] bokeh-plot-6fce5de354b30891bb769271b03d609c.js
copying bokeh-plot files... [ 47%] bokeh-plot-707cef482a5d27a11f77587f490aeccd.js
copying bokeh-plot files... [ 48%] bokeh-plot-71e5fd64d75754b651f760c7eb3dae53.js
copying bokeh-plot files... [ 48%] bokeh-plot-733eeafd2d9968088143436d84a381ac.js
copying bokeh-plot files... [ 49%] bokeh-plot-7353911a2a47fb93d6247409f337698a.js
copying bokeh-plot files... [ 50%] bokeh-plot-758238c6514550bca0332167fb733cdd.js
copying bokeh-plot files... [ 51%] bokeh-plot-77b05c0b7177ffde570863f217b052b7.js
copying bokeh-plot files... [ 51%] bokeh-plot-7b2c330c6e7ddbf1b947d2698d46e41b.js
copying bokeh-plot files... [ 52%] bokeh-plot-7c9de3c5e014004a254723d4ca28e84b.js
copying bokeh-plot files... [ 53%] bokeh-plot-7caf69cf8531a1baa683d1c7a3f4a9de.js
copying bokeh-plot files... [ 53%] bokeh-plot-7eb18484a29ec9a0893deb9dc0d49ecc.js
copying bokeh-plot files... [ 54%] bokeh-plot-7ec6720e97f5c0181aef497a6096e9da.js
copying bokeh-plot files... [ 55%] bokeh-plot-7fbd0b67243f47c8d17c6f3b7fdf58dd.js
copying bokeh-plot files... [ 55%] bokeh-plot-7fd6a13bdd3a03bf6d682a8b77e0abd0.js
copying bokeh-plot files... [ 56%] bokeh-plot-8375ed6f50aa970377373ed1122c9ae0.js
copying bokeh-plot files... [ 57%] bokeh-plot-838e7ce4ef17b78d38967d8afe2f5ebc.js
copying bokeh-plot files... [ 57%] bokeh-plot-880d1f31bdeb7f12e4a4ebedf9e3710c.js
copying bokeh-plot files... [ 58%] bokeh-plot-88f36f57a931a9eb1c2955a759a96c6b.js
copying bokeh-plot files... [ 59%] bokeh-plot-89977ac590906401ba9c93446b570960.js
copying bokeh-plot files... [ 60%] bokeh-plot-8bb289f3447009ec17ad30c41645e0a4.js
copying bokeh-plot files... [ 60%] bokeh-plot-8bfffd68c401aa648541b68cdfd4799f.js
copying bokeh-plot files... [ 61%] bokeh-plot-8c9c23680283a10aab8de012a3796a48.js
copying bokeh-plot files... [ 62%] bokeh-plot-8cc5f97cadadb813835c62a83b168c46.js
copying bokeh-plot files... [ 62%] bokeh-plot-8dc6538dafac3daf66b7e387194d37e6.js
copying bokeh-plot files... [ 63%] bokeh-plot-8fe7a74eb23b80a7e6853f4bf52dbc49.js
copying bokeh-plot files... [ 64%] bokeh-plot-90ac384ffffd40bd0d154b6e3340c4e3.js
copying bokeh-plot files... [ 64%] bokeh-plot-9100b96bd078767e750d172e0b93f3ab.js
copying bokeh-plot files... [ 65%] bokeh-plot-92d710d2a8f930f221d186c0bb1c4204.js
copying bokeh-plot files... [ 66%] bokeh-plot-9bcfb4059f8c6669bffb6aa177e2b8c3.js
copying bokeh-plot files... [ 66%] bokeh-plot-9d8ae4b17faa7b46f5ef4fd00a3bbb55.js
copying bokeh-plot files... [ 67%] bokeh-plot-9e022e6e2a766dc55c2f8df256031d17.js
copying bokeh-plot files... [ 68%] bokeh-plot-9ea25ccac21b45597fa0c37bd7a6a0d3.js
copying bokeh-plot files... [ 68%] bokeh-plot-9f3147e7f149fad3078733e75634935c.js
copying bokeh-plot files... [ 69%] bokeh-plot-a01304d00898398284c72997f24b49ff.js
copying bokeh-plot files... [ 70%] bokeh-plot-a21fb32d85a49b838692b02a9d7d60b1.js
copying bokeh-plot files... [ 71%] bokeh-plot-a78c427a44b085f421f974aa4bbedd68.js
copying bokeh-plot files... [ 71%] bokeh-plot-a7cd5aef786549f07360e96f6b792460.js
copying bokeh-plot files... [ 72%] bokeh-plot-a9174bbd18f526b1a05557793111e5de.js
copying bokeh-plot files... [ 73%] bokeh-plot-a9f875448c0b52703987a54f40b934e4.js
copying bokeh-plot files... [ 73%] bokeh-plot-aace83514973dfdbc5d2e89554954dae.js
copying bokeh-plot files... [ 74%] bokeh-plot-aafab0fb2515826fd0e0197dd84d87e8.js
copying bokeh-plot files... [ 75%] bokeh-plot-aaff4580d90f8ca8dcec704fdc49aef4.js
copying bokeh-plot files... [ 75%] bokeh-plot-ace85d20c6330fe8dbf289a88bccf08c.js
copying bokeh-plot files... [ 76%] bokeh-plot-adcdc239f8087121f0bf4695e3d80cc5.js
copying bokeh-plot files... [ 77%] bokeh-plot-aec9552e5279fd0327076ae0c323f21f.js
copying bokeh-plot files... [ 77%] bokeh-plot-af843aea55e4c2ec5583e2299b84dc7d.js
copying bokeh-plot files... [ 78%] bokeh-plot-b20ccd9ff6561a90b120946fd89f7781.js
copying bokeh-plot files... [ 79%] bokeh-plot-b2797ac49d1a07cd7354fbc00854acfe.js
copying bokeh-plot files... [ 80%] bokeh-plot-b3e91cf6f4bc6e385a3361147899ab7f.js
copying bokeh-plot files... [ 80%] bokeh-plot-b5c16f02009da0e8673f55e44e27bcc3.js
copying bokeh-plot files... [ 81%] bokeh-plot-b628c0e63838454b636c1db5477506cc.js
copying bokeh-plot files... [ 82%] bokeh-plot-bab7b69b39d4c7a41edcccff10bbee11.js
copying bokeh-plot files... [ 82%] bokeh-plot-bbfb24f93ff2dc52ba9b4bc05032a23f.js
copying bokeh-plot files... [ 83%] bokeh-plot-bf4266ebc9397171d4d513fbc17b7ad8.js
copying bokeh-plot files... [ 84%] bokeh-plot-c075e9b5ee83f54252481364ad19245d.js
copying bokeh-plot files... [ 84%] bokeh-plot-cae1b0a9d0ecb12edcfe0b19fb527f76.js
copying bokeh-plot files... [ 85%] bokeh-plot-cb16ee84671b18dcb50eb3f2effce19a.js
copying bokeh-plot files... [ 86%] bokeh-plot-cecc425530ff3dbeab3f6036fc8ed2fd.js
copying bokeh-plot files... [ 86%] bokeh-plot-d01b6b20f6bd050ea30566dedb935c7d.js
copying bokeh-plot files... [ 87%] bokeh-plot-d170b66a6089514c07c5d8d5e142f24c.js
copying bokeh-plot files... [ 88%] bokeh-plot-d4b2fd4c0d89232ee8b53ee541e76ee9.js
copying bokeh-plot files... [ 88%] bokeh-plot-d536ca8c31a7f1b62f7374156771c027.js
copying bokeh-plot files... [ 89%] bokeh-plot-d6367161152f121e0c6c5ad20be89654.js
copying bokeh-plot files... [ 90%] bokeh-plot-d9f80167d7f475ddd65f7a71843b4b74.js
copying bokeh-plot files... [ 91%] bokeh-plot-dc43aea097d45390dc6fc365a5c4cfa6.js
copying bokeh-plot files... [ 91%] bokeh-plot-dd5848031932fd37069f0e291c3ba5b5.js
copying bokeh-plot files... [ 92%] bokeh-plot-e0540fd35ca85b7cf9cc5c271a9a5e0c.js
copying bokeh-plot files... [ 93%] bokeh-plot-e0ab13c154033c604ad5a063e2f1cb1b.js
copying bokeh-plot files... [ 93%] bokeh-plot-e276462c332c188b6543b9606241482b.js
copying bokeh-plot files... [ 94%] bokeh-plot-e71ba81ad4fdfadad752215ed4c3d9d1.js
copying bokeh-plot files... [ 95%] bokeh-plot-ec64647fc29e74e5583c1ba2dc94845e.js
copying bokeh-plot files... [ 95%] bokeh-plot-f8b4b7f438d656782dafcac3d395149d.js
copying bokeh-plot files... [ 96%] bokeh-plot-fa138cfbd93d5d9b3cb8698afabc04cb.js
copying bokeh-plot files... [ 97%] bokeh-plot-fa2156d0bf67a2299cc88a41f85c175e.js
copying bokeh-plot files... [ 97%] bokeh-plot-fbef5a55095a57bd7ec69880b9e491c1.js
copying bokeh-plot files... [ 98%] bokeh-plot-fbffcff58bf2df95017e1a6470add3f2.js
copying bokeh-plot files... [ 99%] bokeh-plot-fc686a29565cec5272ecc418812f2401.js
copying bokeh-plot files... [100%] bokeh-plot-ff7d4e4a58f23d8a18428273c04d26ea.js


Traceback (most recent call last):
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/cmdline.py", line 296, in main
    app.build(opts.force_all, filenames)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/application.py", line 333, in build
    self.builder.build_update()
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/builders/__init__.py", line 251, in build_update
    'out of date' % len(to_build))
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/builders/__init__.py", line 265, in build
    self.doctreedir, self.app))
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/environment/__init__.py", line 556, in update
    self._read_serial(docnames, app)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/environment/__init__.py", line 576, in _read_serial
    self.read_doc(docname, app)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/environment/__init__.py", line 684, in read_doc
    pub.publish()
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/core.py", line 217, in publish
    self.settings)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/io.py", line 55, in read
    self.parse()
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/readers/__init__.py", line 78, in parse
    self.parser.parse(self.input, document)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/__init__.py", line 185, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 170, in run
    input_source=document['source'])
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2745, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 326, in section
    self.new_subsection(title, lineno, messages)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 394, in new_subsection
    node=section_node, match_titles=True)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 281, in nested_parse
    node=node, match_titles=match_titles)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2320, in explicit_markup
    self.explicit_list(blank_finish)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2350, in explicit_list
    match_titles=self.state_machine.match_titles)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 318, in nested_list_parse
    node=node, match_titles=match_titles)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2623, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2330, in explicit_construct
    return method(self, expmatch)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2073, in directive
    directive_class, match, type_name, option_presets)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2122, in run_directive
    result = directive_instance.run()
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/ext/autodoc.py", line 1659, in run
    documenter.generate(more_content=self.content)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/ext/autodoc.py", line 1004, in generate
    self.document_members(all_members)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/ext/autodoc.py", line 926, in document_members
    check_module=members_check_module and not isattr)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/ext/autodoc.py", line 1004, in generate
    self.document_members(all_members)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/ext/autodoc.py", line 885, in document_members
    members_check_module, members = self.get_object_members(want_all)
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/ext/autodoc.py", line 780, in get_object_members
    if isenumclass(self.object):
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/util/inspect.py", line 107, in isenumclass
    return issubclass(x, enum.Enum)
TypeError: issubclass() arg 1 must be a class

Exception occurred:
  File "/Users/bryan/anaconda/lib/python3.6/site-packages/Sphinx-1.5.4-py3.6.egg/sphinx/util/inspect.py", line 107, in isenumclass
    return issubclass(x, enum.Enum)
TypeError: issubclass() arg 1 must be a class
The full traceback has been saved in /var/folders/sz/8b6k71ds0rj34ghn0vg4g0cc0000gp/T/sphinx-err-7goy7td4.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [html] Error 1
~/work/bokeh/sphinx master ⇣ 27s

# Fixed code
def isenumclass(x):
    """Check if the object is subclass of enum."""
    if enum is None:
        return False
    return inspect.isclass(x) and issubclass(x, enum.Enum)