Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

Commit 0f89b32

Browse files
authored
chore: fix README for ruff 0.16.0 (#495)
1 parent 858f03e commit 0f89b32

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ from haystack import component
127127

128128

129129
@component
130-
class FoobarGenerator:
131-
...
132-
130+
class FoobarGenerator: ...
133131
```
134132

135133
When the experiment overrides an existing feature, the new symbol should be created at the same path in the experimental
@@ -144,16 +142,14 @@ from haystack.core.pipeline import Pipeline as HaystackPipeline
144142

145143
class Pipeline(HaystackPipeline):
146144
# Any new experimental method that doesn't exist in the original class
147-
def run_async(self, inputs) -> Dict[str, Dict[str, Any]]:
148-
...
145+
def run_async(self, inputs) -> Dict[str, Dict[str, Any]]: ...
149146

150147
# Existing methods with breaking changes to their signature, like adding a new mandatory param
151148
def to_dict(self, new_param: str) -> Dict[str, Any]:
152149
# do something with the new parameter
153150
print(new_param)
154151
# call the original method
155152
return super().to_dict()
156-
157153
```
158154

159155
## Contributing

0 commit comments

Comments
 (0)