Function parameters type hinting

Hello, I would like to enable an inspection that detects bad/wrong type hints in function parameters

def func(my_list: list["MyModel"]):
    pass

the list["MyModel"] is valid with my settings, however friend of mine has it highlighted with yellow. And I would like to enable that as well. What inspection setting is it? 

0

Hi, 

the list["MyModel"] is valid with my settings

What warning do you expect to see if the statement is correct? 

however friend of mine has it highlighted with yellow

You can enable all sorts of inspections in inspection profile settings

However, I think we should know what warning does your friend has to know which inspection should be enabled.

0

请先登录再写评论。