Skip to content

Commit 4151e75

Browse files
committed
lint対応
1 parent e516072 commit 4151e75

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

plugins/hato.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@
99
from enum import Enum, auto
1010
from logging import getLogger
1111
from tempfile import NamedTemporaryFile
12-
from typing import List, Callable, Union, Any
12+
from typing import List, Callable, Union, Any, TYPE_CHECKING
1313
import requests
1414
from git import Repo
1515
from git.exc import InvalidGitRepositoryError, GitCommandNotFound
16-
from mypy_extensions import VarArg
1716
import pandas as pd
1817
import matplotlib.pyplot as plt
1918
import slackbot_settings as conf
2019

20+
if TYPE_CHECKING:
21+
from mypy_extensions import VarArg
22+
2123
from library.vocabularydb \
2224
import get_vocabularys, add_vocabulary, show_vocabulary, \
2325
delete_vocabulary, show_random_vocabulary

0 commit comments

Comments
 (0)