mirror of https://github.com/citusdata/citus.git
Fix run_test.py on python 3.9 (#6735)
In #6718 I accidentally added Python type hint syntax that was only supported on Python 3.10. Our CI uses 3.9, so this PR changes that to a syntax that's supported on 3.9 too.pull/6734/head
parent
9cbfdc86dd
commit
24ad8574b5
|
@ -9,6 +9,7 @@ import shutil
|
||||||
import sys
|
import sys
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
import common
|
import common
|
||||||
|
|
||||||
|
@ -57,7 +58,7 @@ use_whole_schedule_line = args["use_whole_schedule_line"]
|
||||||
|
|
||||||
|
|
||||||
class TestDeps:
|
class TestDeps:
|
||||||
schedule: str | None
|
schedule: Optional[str]
|
||||||
direct_extra_tests: list[str]
|
direct_extra_tests: list[str]
|
||||||
|
|
||||||
def __init__(self, schedule, extra_tests=None, repeatable=True):
|
def __init__(self, schedule, extra_tests=None, repeatable=True):
|
||||||
|
|
Loading…
Reference in New Issue