Skip to content

Commit 706c00c

Browse files
committed
remove comma and check in init
1 parent 471c335 commit 706c00c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

metaflow/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ class and related decorators.
147147
from . import tuple_util
148148

149149
# Runner API
150-
from .metaflow_runner import Runner
150+
if sys.version_info >= (3, 7):
151+
from .metaflow_runner import Runner
151152

152153
__version_addl__ = []
153154
_ext_debug("Loading top-level modules")

metaflow/metaflow_runner.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ async def stream_log(self, stream: str, position: Optional[int] = None):
7373

7474
class Runner(object):
7575
def __init__(
76-
self,
77-
flow_file: str,
78-
profile: Optional[str] = None,
79-
env: Dict = {},
80-
**kwargs,
76+
self, flow_file: str, profile: Optional[str] = None, env: Dict = {}, **kwargs
8177
):
8278
"""
8379
Metaflow's Runner API that presents a programmatic interface

0 commit comments

Comments
 (0)