Skip to content

Commit c28e7b8

Browse files
committed
pre-commit fix
1 parent b0bdd17 commit c28e7b8

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ multi_line_output = 3
5858

5959
[tool.ruff]
6060
line-length = 90
61+
62+
[tool.ruff.lint]
6163
select = ["E", "F"] #, "D"] #, "N", "C", "ANN"]
6264
extend-ignore = [
6365
"D213", "D203"

tests/test_dynamic_magic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Test dynamic conenction resolving using magic methods."""
1+
"""Test dynamic connection resolving using magic methods."""
22

33
import dataclasses
44
import znflow

znflow/base.py

-6
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ def __post_init__(self):
177177
def __getitem__(self, item):
178178
return dataclasses.replace(self, instance=self, attribute=None, item=item)
179179

180-
def __iter__(self):
181-
raise TypeError(f"Can not iterate over {self}.")
182-
183180
def __add__(
184181
self, other: typing.Union[Connection, FunctionFuture, CombinedConnections]
185182
) -> CombinedConnections:
@@ -367,9 +364,6 @@ def run(self):
367364
def __getitem__(self, item):
368365
return Connection(instance=self, attribute=None, item=item)
369366

370-
def __iter__(self):
371-
raise TypeError(f"Can not iterate over {self}.")
372-
373367
def __add__(
374368
self, other: typing.Union[Connection, FunctionFuture, CombinedConnections]
375369
) -> CombinedConnections:

0 commit comments

Comments
 (0)