ocean-runner 0.2.10__tar.gz → 0.2.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ocean-runner might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ocean-runner
3
- Version: 0.2.10
3
+ Version: 0.2.11
4
4
  Summary: A fluent API for OceanProtocol algorithms
5
5
  Project-URL: Homepage, https://github.com/AgrospAI/ocean-runner
6
6
  Project-URL: Issues, https://github.com/AgrospAI/ocean-runner/issues
@@ -2,7 +2,7 @@ import os
2
2
  from dataclasses import asdict, dataclass, field
3
3
  from logging import Logger
4
4
  from pathlib import Path
5
- from typing import Callable, Iterable, Literal, TypeVar
5
+ from typing import Callable, Iterable, TypeVar
6
6
 
7
7
  T = TypeVar("T")
8
8
 
@@ -95,7 +95,7 @@ class Algorithm(Generic[JobDetailsT, ResultT]):
95
95
 
96
96
  @property
97
97
  def result(self) -> ResultT:
98
- if not self._result:
98
+ if self._result is None:
99
99
  raise Algorithm.Error("Result missing, run the algorithm first")
100
100
  return self._result
101
101
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ocean-runner"
3
- version = "0.2.10"
3
+ version = "0.2.11"
4
4
  description = "A fluent API for OceanProtocol algorithms"
5
5
  authors = [
6
6
  { name = "AgrospAI", email = "agrospai@udl.cat" },
File without changes
File without changes
File without changes