File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 22
22
Generic ,
23
23
Iterable ,
24
24
List ,
25
- Literal ,
26
25
Mapping ,
27
26
Tuple ,
28
27
Type ,
@@ -91,7 +90,7 @@ def __init__(
91
90
root : Path ,
92
91
output_dir : Path ,
93
92
* ,
94
- mock : MockData [RT ] | None | Literal [ False ] = None ,
93
+ mock : MockData [RT ] | None = None ,
95
94
) -> None :
96
95
"""
97
96
Init the driver.
@@ -350,9 +349,9 @@ async def arun(self) -> None:
350
349
await asyncio .gather (* (self .build_revision (rev ) for rev in self .targets ))
351
350
await self .build_root ()
352
351
353
- def run (self ) -> None :
352
+ def run (self , mock : bool = False ) -> None :
354
353
"""Build all revisions or build from local files."""
355
- if self . mock :
354
+ if mock :
356
355
asyncio .run (self .build_local ())
357
356
else :
358
357
asyncio .run (self .arun ())
@@ -429,7 +428,7 @@ def __init__(
429
428
encoder : Encoder | None = None ,
430
429
static_dir : StrPath | None = None ,
431
430
template_dir : StrPath | None = None ,
432
- mock : MockData [JRT ] | None | Literal [ False ] = None ,
431
+ mock : MockData [JRT ] | None = None ,
433
432
) -> None :
434
433
"""
435
434
Init the driver.
You can’t perform that action at this time.
0 commit comments