Skip to content

Commit 8d2c2dd

Browse files
author
Sylvain MARIE
committed
Fixed python 2 issue
1 parent e729ce1 commit 8d2c2dd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

code_generation/mini_lambda_methods_generation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
from inspect import isclass
22
from sys import getsizeof
3-
from typing import Tuple, Set, Optional, Any, List
3+
try:
4+
from typing import Tuple, Set, Optional, Any, List
5+
except ImportError:
6+
pass
47

58
import os
69
import math

0 commit comments

Comments
 (0)