File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1122,7 +1122,9 @@ def matches_existing_testcase(self, t):
1122
1122
self ._testcase_hashes [h ] = t
1123
1123
return None
1124
1124
1125
- def validate_data (problem , mode : validate .Mode , constraints : dict | bool | None = None ) -> bool :
1125
+ def validate_data (
1126
+ problem , mode : validate .Mode , constraints : dict | Literal [True ] | None = None
1127
+ ) -> bool :
1126
1128
"""Validate aspects of the test data files.
1127
1129
1128
1130
Arguments:
@@ -1289,7 +1291,7 @@ def validate_valid_extra_data(p) -> bool:
1289
1291
def _validate_data (
1290
1292
problem ,
1291
1293
mode : validate .Mode ,
1292
- constraints : dict | bool | None ,
1294
+ constraints : dict | Literal [ True ] | None ,
1293
1295
action : str ,
1294
1296
testcases : Sequence [testcase .Testcase ],
1295
1297
extra : bool = False ,
You can’t perform that action at this time.
0 commit comments