Skip to content

Commit 177fba9

Browse files
committed
add type hints
1 parent 0f683a7 commit 177fba9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/matplotlib_fontja/matplotlib_fontja.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
FONT_TTF = 'ipaexg.ttf'
99

1010

11-
def japanize():
11+
def japanize() -> None:
1212
font_dir_path = get_font_path()
1313
font_dirs = [font_dir_path]
1414
font_files = font_manager.findSystemFonts(fontpaths=font_dirs)
@@ -21,11 +21,11 @@ def japanize():
2121
matplotlib.rc('font', family=FONT_NAME)
2222

2323

24-
def get_font_ttf_path():
24+
def get_font_ttf_path() -> str:
2525
return os.path.join(get_font_path(), FONT_TTF)
2626

2727

28-
def get_font_path():
28+
def get_font_path() -> str:
2929
return os.path.abspath(os.path.join(os.path.dirname(__file__), FONTS_DIR))
3030

3131

0 commit comments

Comments
 (0)