Skip to content

Commit

Permalink
Drop now-unnecessary 'type: ignore'.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Jul 25, 2024
1 parent dbf955b commit 76f61c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/lsst/pipe/base/pipeline_graph/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ def main(argv: Sequence[str]) -> int:
stream = sys.stdout
else:
path = ResourcePath(args.show)
# ResourcePath.open doesn't have the kind of mode overloading
# necessary to make the return type clear enough for MyPy.
stream = stack.enter_context(path.open("r")) # type: ignore
stream = stack.enter_context(path.open("r"))

Check warning on line 90 in python/lsst/pipe/base/pipeline_graph/__main__.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/pipe/base/pipeline_graph/__main__.py#L90

Added line #L90 was not covered by tests
show(
pipeline_graph,
stream,
Expand Down

0 comments on commit 76f61c1

Please sign in to comment.