Skip to content

Commit

Permalink
Add @OverRide to overridden methods
Browse files Browse the repository at this point in the history
Russ recently did this in the rest of the codebase
  • Loading branch information
fajpunk committed Feb 20, 2025
1 parent 5b89cd5 commit 48b8fd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mobu/services/business/siaquerysetrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from abc import ABCMeta
from concurrent.futures import ThreadPoolExecutor
from random import SystemRandom
from typing import Generic, TypeVar, override

import pyvo
import requests
Expand Down Expand Up @@ -96,6 +97,7 @@ def get_next_query(self) -> SIAQuery:
"""
return self._generate_sia_params()

@override
async def execute(self) -> None:
with start_transaction(
name=f"{self.name} - execute",
Expand Down Expand Up @@ -137,6 +139,7 @@ async def execute(self) -> None:

self.logger.info(f"Query finished after {elapsed} seconds")

@override
def dump(self) -> SIABusinessData:
return SIABusinessData(
running_query=self._running_query, **super().dump().model_dump()
Expand Down

0 comments on commit 48b8fd5

Please sign in to comment.