Skip to content

Commit

Permalink
minor changes for pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Jun 25, 2024
1 parent 2bf4dba commit 45eab7a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/rail/core/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ class RailStageBuild:
def __init__(self, stage_class, **kwargs):
self.stage_class = stage_class
self._kwargs = kwargs
self._stage = None

@property
def io(self):
if self._stage:
return self._stage.io
return None

def build(self, name):
"""Actually build the stage, this is called by the pipeline the stage
Expand All @@ -63,8 +70,8 @@ def build(self, name):
stage : `RailStage`
The newly built stage
"""
stage = self.stage_class.make_and_connect(name=name, **self._kwargs)
return stage
self._stage = self.stage_class.make_and_connect(name=name, **self._kwargs)
return self._stage


class RailPipeline(MiniPipeline):
Expand Down

0 comments on commit 45eab7a

Please sign in to comment.