Skip to content

Commit

Permalink
Fix typechecker error, due to change in mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
jfischer committed Jun 20, 2019
1 parent fd09097 commit 697f8b0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dataworkspaces/utils/lineage_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,11 +839,7 @@ class LineageStoreCurrent:
"""
def __init__(self,
lineage_by_resource:Optional[Dict[str, ResourceLineages]]=None):
if lineage_by_resource:
self.lineage_by_resource = lineage_by_resource # type: Dict[str, ResourceLineages]
else:
self.lineage_by_resource = {} # type: Dict[str, ResourceLineages]

self.lineage_by_resource = lineage_by_resource if lineage_by_resource else {} # type: Dict[str, ResourceLineages]

def add_step(self, lineage:StepLineage):
"""Given a completed step, update the lineage store
Expand Down

0 comments on commit 697f8b0

Please sign in to comment.