Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit 29f2c02

Browse files
committed
Fix linting
1 parent e5805cb commit 29f2c02

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cortex/models.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,36 @@
2020
import os
2121
from typing import Optional, Dict, Any
2222
from cortex.serviceconnector import _Client
23+
2324
try:
2425
import mlflow
2526
except ImportError:
2627
mlflow = None
2728

2829

2930
def check_installed():
31+
"""
32+
Checks if the model SDK extra is installed
33+
:return:
34+
"""
3035
if mlflow is None:
3136
raise NotImplementedError(
3237
'Models SDK extra not installed, please run `pip install cortex-python[models_sdk]` to install')
3338

39+
3440
class ModelClient(_Client):
3541
"""
3642
Client for model registry, this class requires the `models_sdk` extras to be installed
3743
"""
44+
3845
def __init__(self, *args, **kwargs):
3946
super().__init__(*args, **kwargs)
4047
# Setup model registry by default
4148
self._setup_model_client()
4249

4350
def _setup_model_client(self):
4451
# Generate a JWT, this call stores the JWT in `_serviceconnector.jwt` ( meh )
45-
self._serviceconnector._construct_headers({}) # pylint: disable=protected-access
52+
self._serviceconnector._construct_headers({}) # pylint: disable=protected-access
4653

4754
mlflow.set_tracking_uri(self._serviceconnector.url)
4855
os.environ['MLFLOW_TRACKING_URI'] = self._serviceconnector.url

0 commit comments

Comments
 (0)