Skip to content

Commit

Permalink
use issubclass instead
Browse files Browse the repository at this point in the history
  • Loading branch information
wwymak committed May 28, 2019
1 parent 2ec54e0 commit c77a23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas_bokeh/geoplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def convert_geoDataFrame_to_patches(gdf, geometry_column_name="geometry"):

def get_tick_formatter(formatter_arg):

if isinstance(formatter_arg, TickFormatter):
if issubclass(formatter_arg.__class__, TickFormatter):
return formatter_arg
elif isinstance(formatter_arg, str):
return NumeralTickFormatter(format=formatter_arg)
Expand Down

0 comments on commit c77a23b

Please sign in to comment.