mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Add Windows conda-less support
This commit is contained in:
parent
e24abf2153
commit
60b2246966
@ -1,9 +1,16 @@
|
||||
import base64
|
||||
from distutils.util import strtobool
|
||||
from typing import Union, Optional, Text, Any, TypeVar, Callable, Tuple
|
||||
from typing import Union, Optional, Any, TypeVar, Callable, Tuple
|
||||
|
||||
import six
|
||||
|
||||
try:
|
||||
from typing import Text
|
||||
except ImportError:
|
||||
# windows conda-less hack
|
||||
Text = Any
|
||||
|
||||
|
||||
ConverterType = TypeVar("ConverterType", bound=Callable[[Any], Any])
|
||||
|
||||
|
||||
|
@ -1,10 +1,17 @@
|
||||
import abc
|
||||
from typing import Optional, Any, Tuple, Text, Callable, Dict
|
||||
from typing import Optional, Any, Tuple, Callable, Dict
|
||||
|
||||
import six
|
||||
|
||||
from .converters import any_to_bool
|
||||
|
||||
try:
|
||||
from typing import Text
|
||||
except ImportError:
|
||||
# windows conda-less hack
|
||||
Text = Any
|
||||
|
||||
|
||||
NotSet = object()
|
||||
|
||||
Converter = Callable[[Any], Any]
|
||||
|
Loading…
Reference in New Issue
Block a user