ソースを参照

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