Skip to content
This repository was archived by the owner on Nov 28, 2019. It is now read-only.

Only set widget tooltip if doc is not None#39

Merged
jbednar merged 1 commit intomasterfrom
no_tooltip_fix
Mar 17, 2017
Merged

Only set widget tooltip if doc is not None#39
jbednar merged 1 commit intomasterfrom
no_tooltip_fix

Conversation

@philippjfr
Copy link
Member

Would previously raise errors in some cases because the tooltip cannot be None.

@philippjfr philippjfr changed the title Only set widget tooltip is doc is not None Only set widget tooltip if doc is not None Mar 17, 2017
@philippjfr philippjfr added the bug label Mar 17, 2017
kw = dict(tooltip=p_obj.doc, value=value)

kw = dict(value=value)
if p_obj.doc:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I briefly thought this should be if p_obj.doc is not None:, based on honoring the title of the pull request, but doc==0 isn't a valid docstring and I guess we also want doc=="" to skip installing the tooltip, so I suppose it's better as it is.

@jbednar jbednar merged commit 8d5af7e into master Mar 17, 2017
@jbednar jbednar deleted the no_tooltip_fix branch March 17, 2017 18:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants