Update dvc/repo/index.py

Co-authored-by: Saugat Pachhai <[email protected]>
This commit is contained in:
Fabian Zills
2022-04-07 21:05:47 +05:45
committed by Saugat Pachhai
co-authored by Saugat Pachhai
parent 44af5b3b7e
commit 65d935e5c7
+1 -1
View File
@@ -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