是否有 python linter 检查类型提示是否来自 typing 模块?
Is there a python linter that checks if the type hint comes from the typing module?
我正在寻找 python 检查类型提示是否来自输入模块的 linter。
如:
def func(arg: list)-> None:
""" does something """
应该是:
from typing import List
def func(arg: List)-> None:
""" does something """
我正在寻找 python 检查类型提示是否来自输入模块的 linter。
如:
def func(arg: list)-> None:
""" does something """
应该是:
from typing import List
def func(arg: List)-> None:
""" does something """