Skip to content

Commit 850db61

Browse files
committed
making mypy happy
1 parent 608c115 commit 850db61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roboflow/core/version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def download(self, model_format=None, location=None, overwrite: bool = False):
235235

236236
return Dataset(self.name, self.version, model_format, os.path.abspath(location))
237237

238-
def export(self, model_format=None) -> str:
238+
def export(self, model_format=None) -> str | None:
239239
"""
240240
Ask the Roboflow API to generate a version's dataset in a given format so that it can be downloaded via the `download()` method.
241241
@@ -289,6 +289,7 @@ def export(self, model_format=None) -> str:
289289
raise RuntimeError(response.json())
290290
except json.JSONDecodeError:
291291
response.raise_for_status()
292+
return None
292293

293294
def train(self, speed=None, model_type=None, checkpoint=None, plot_in_notebook=False) -> InferenceModel:
294295
"""

0 commit comments

Comments
 (0)