Skip to content

Commit

Permalink
Update for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
eigerx committed Jul 31, 2024
1 parent f93595f commit 3814803
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/lsst/pipe/base/quantum_provenance_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ class TaskSummary(pydantic.BaseModel):
"""The number of quanta expected by the graph.
"""

@pydantic.computed_field # type: ignore[misc]
@pydantic.computed_field
@property
def n_wonky(self) -> int:
"""Return a count of `wonky` quanta."""
return len(self.wonky_quanta)

@pydantic.computed_field # type: ignore[misc]
@pydantic.computed_field
@property
def n_failed(self) -> int:
"""Return a count of `failed` quanta."""
Expand Down Expand Up @@ -435,13 +435,13 @@ class DatasetTypeSummary(pydantic.BaseModel):
"""The number of datasets of this type expected by the graph.
"""

@pydantic.computed_field # type: ignore[misc]
@pydantic.computed_field
@property
def n_cursed(self) -> int:
"""Return a count of cursed datasets."""
return len(self.cursed_datasets)

@pydantic.computed_field # type: ignore[misc]
@pydantic.computed_field
@property
def n_unsuccessful(self) -> int:
"""Return a count of unsuccessful datasets."""
Expand Down

0 comments on commit 3814803

Please sign in to comment.