mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 00:56:53 +00:00
Fix python 3.5 support
This commit is contained in:
parent
224a709f40
commit
bb36219806
@ -12,11 +12,6 @@ from typing import Text
|
||||
from trains_agent.helper.console import ListFormatter, print_text
|
||||
from trains_agent.helper.dicts import filter_keys
|
||||
|
||||
try:
|
||||
from typing import NoReturn
|
||||
except ImportError:
|
||||
from typing_extensions import NoReturn
|
||||
|
||||
import six
|
||||
from trains_agent.backend_api import services
|
||||
|
||||
@ -82,7 +77,7 @@ class BaseCommandSection(object):
|
||||
print("trains-agent: {}".format(message % args))
|
||||
|
||||
@classmethod
|
||||
def exit(cls, message, code=1): # type: (Text, int) -> NoReturn
|
||||
def exit(cls, message, code=1): # type: (Text, int) -> ()
|
||||
cls.error(message)
|
||||
sys.exit(code)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user