标签: python python-3.x type-hinting
示例代码:
Class Products: @staticmethod def method(qs : QuerySet[Products]) -> QuerySet[Products]: pass
问题:
NameError: name 'Products' is not defined
在这种情况下如何应用python类型提示?