我正在尝试用类型注释我的代码,但在涉及集合时我有点困惑。我在PEP484中阅读了一些观点:Note:Dict,List,SetandFrozenSetaremainlyusefulforannotatingreturnvalues.Forarguments,prefertheabstractcollectiontypesdefinedbelow,e.g.Mapping,SequenceorAbstractSet.和Set,renamedtoAbstractSet.ThisnamechangewasrequiredbecauseSetinthetypingmodulemeansset()