浏览代码

Add an issue reference for a "type: ignore" annotation

Ryan C. Thompson 6 年之前
父节点
当前提交
ee7ddd1721
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      roll.py

+ 1 - 0
roll.py

@@ -209,6 +209,7 @@ class DieRolled(int):
     formatter: str
 
     def __new__(cls: type, value: int, formatter: str = '{}') -> 'DieRolled':
+        # https://github.com/python/typeshed/issues/2686
         newval = super(DieRolled, cls).__new__(cls, value) # type: ignore
         newval.formatter = formatter
         return newval