8000 Update categorical_variables.py · matplotlib/matplotlib@003e909 · GitHub
[go: up one dir, main page]

Skip to content

Commit 003e909

Browse files
authored
Update categorical_variables.py
Adding type hint to variable data
1 parent a7c08c8 commit 003e909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

galleries/examples/lines_bars_and_markers/categorical_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99
import matplotlib.pyplot as plt
1010

11-
data = {'apple': 10, 'orange': 15, 'lemon': 5, 'lime': 20}
11+
data : dict[str, int] = {'apple': 10, 'orange': 15, 'lemon': 5, 'lime': 20}
1212
names = list(data.keys())
1313
values = list(data.values())
1414

0 commit comments

Comments
 (0)
0