Dotplot() got multiple values for argument 'var_names' error

Im using the exact code from Scanpy API. Most of the graphs work except this one. It keeps telling me there are multiple var_names?

Code:

var_names = {‘T-cell’: [‘CD3D’, ‘CD3E’, ‘IL32’],
‘B-cell’: [‘CD79A’, ‘CD79B’, ‘MS4A1’],
‘myeloid’: [‘CST3’, ‘LYZ’] }

sc.pl.rank_genes_groups_dotplot(
TNKILC_subset_clean_genes, key = ‘wilcoxon’,
var_names = var_names,
values_to_plot=“logfoldchanges”,
cmap=‘bwr’,
vmin=-4,
vmax=4,
min_logfoldchange=3,
colorbar_title=‘log fold change’,
)

error = dotplot() got multiple values for argument ‘var_names’

i was on an older version of scanpy. deleting and reinstalling it fixed this problem.