Skip to content

Commit 7baebb2

Browse files
committed
chore: update allowed unresolved imports and add type ignore comment
- Added "cloudpickle.**" and "datasets.**" to the allowed unresolved imports in pyproject.toml. - Added a type ignore comment to the return statement in trajectories.py for better type checking compliance.
1 parent 84b14bb commit 7baebb2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ allowed-unresolved-imports = [
132132
"accelerate.**",
133133
"awscli.**",
134134
"bitsandbytes.**",
135+
"cloudpickle.**",
136+
"datasets.**",
135137
"duckdb.**",
136138
"fastapi.**",
137139
"gql.**",

src/art/trajectories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def __await__(self):
308308
return self.coro.__await__()
309309

310310
coro = _(exceptions.copy(), metadata, metrics, logs)
311-
return CoroutineWithMetadata(coro, len(ts))
311+
return CoroutineWithMetadata(coro, len(ts)) # type: ignore[return-value]
312312
else:
313313
group = super().__new__(cls)
314314
group.__init__(

0 commit comments

Comments
 (0)