Skip to content

Commit

Permalink
Merge pull request #296 from lsst/tickets/DM-45209
Browse files Browse the repository at this point in the history
DM-45209: Fix E721 linter warning
  • Loading branch information
timj authored Jul 12, 2024
2 parents 234d922 + 7e0da86 commit efd0d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
name: isort (python)
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.6
rev: v0.5.1
hooks:
- id: ruff
- repo: https://github.com/numpy/numpydoc
Expand Down
2 changes: 1 addition & 1 deletion tests/test_simple_pipeline_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def run(self, input: dict[str, int], meta: dict[str, Any]) -> Struct:
# Can change the return type via configuration.
if "TaskMetadata" in self.config.outputSC:
output = TaskMetadata.from_dict(output)
elif type(output) == TaskMetadata:
elif type(output) is TaskMetadata:
# Want the output to be a dict
output = output.to_dict()
self.log.info("Run method returns data of type: %s", get_full_type_name(output))
Expand Down

0 comments on commit efd0d94

Please sign in to comment.