mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Update dvc/repo/index.py
Co-authored-by: Saugat Pachhai <[email protected]>
This commit is contained in:
committed by
Saugat Pachhai
co-authored by
Saugat Pachhai
parent
44af5b3b7e
commit
65d935e5c7
+1
-1
@@ -92,7 +92,7 @@ class Index:
|
||||
yield from self.stages
|
||||
|
||||
def __getitem__(self, item: str) -> "Stage":
|
||||
"""Get a Stage by its addressing attribute"""
|
||||
"""Get a stage by its addressing attribute."""
|
||||
for stage in self.stages:
|
||||
if stage.addressing == item:
|
||||
return stage
|
||||
|
||||
Reference in New Issue
Block a user