Commit 61d7a6d 1 parent fde2a37 commit 61d7a6d Copy full SHA for 61d7a6d
File tree 2 files changed +11
-12
lines changed
2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
click==7.1.2
2
- packaging==23.0
2
+ packaging==23.0
Original file line number Diff line number Diff line change
1
+ import sys
2
+
3
+ if sys .version_info < (3 , 7 ):
4
+ raise RuntimeError (
5
+ """
6
+ The Metaflow Programmatic API requires 'typeguard', which is not supported for python 3.5 and 3.6.
7
+ """
8
+ )
9
+
1
10
import inspect
2
11
import importlib
3
12
import itertools
17
26
from metaflow ._vendor import click
18
27
from metaflow .parameters import JSONTypeClass
19
28
from metaflow .includefile import FilePathClass
29
+ from metaflow ._vendor .typeguard import check_type , TypeCheckError
20
30
from metaflow ._vendor .click .types import (
21
31
StringParamType ,
22
32
IntParamType ,
30
40
File ,
31
41
)
32
42
33
- try :
34
- from typeguard import check_type , TypeCheckError
35
- except ImportError :
36
- raise ImportError (
37
- """
38
- The Metaflow Programmatic API requires 'typeguard', which is not installed or available.
39
- Please try installing with `pip install typeguard`. This package and thus, the programmatic API
40
- functionality is unavailable for python 3.5 and 3.6.
41
- """
42
- )
43
-
44
43
click_to_python_types = {
45
44
StringParamType : str ,
46
45
IntParamType : int ,
You can’t perform that action at this time.
0 commit comments