我正在使用Python编写Uno游戏,目前正在设置Uno牌组。
我认为这应该没问题,但是PyCharm坚持出现以下错误:
_VALID_FACES = ['skip', 'draw2', 'reverse', 'wild', 'wild4'] + range(10)
我认为这应该没问题,但是PyCharm坚持出现以下错误:
Expected type list[str] (matched generic type 'list[T]'), got 'list[int]' instead
现在我不完全确定这是什么意思。有什么想法吗?代码可以运行,但PyCharm中仍然有警告。