Skip to content

Commit f18de0e

Browse files
committed
Avoid mypy notes that bodies of untyped functions are not checked.
1 parent 5dce949 commit f18de0e

7 files changed

Lines changed: 7 additions & 6 deletions

File tree

python/PiFinder/calc_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def b1950_to_j2000(ra_hours, dec_deg):
140140
"""
141141
return epoch_to_epoch(B1950, J2000, ra_hours, dec_deg)
142142

143+
143144
def aim_degrees(shared_state, mount_type, screen_direction, target):
144145
"""
145146
Returns degrees in either

python/PiFinder/catalog_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def assign_virtual_object_ids(catalog, low_id: int) -> int:
171171
class TimerMixin:
172172
"""Provides timer functionality via composition"""
173173

174-
def __init__(self):
174+
def __init__(self) -> None:
175175
self.timer: Optional[threading.Timer] = None
176176
self.is_running: bool = False
177177
self.time_delay_seconds: Union[int, Callable[[], int]] = (

python/PiFinder/catalog_imports/harris_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def create_cluster_object(entry: npt.NDArray, seq: int) -> Dict[str, Any]:
381381
return result
382382

383383

384-
def load_harris():
384+
def load_harris() -> None:
385385
logging.info("Loading Harris Globular Cluster catalog")
386386
catalog: str = "Har"
387387
obj_type: str = "Gb" # Globular Cluster

python/PiFinder/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def from_json(cls, json_str):
238238

239239

240240
class SharedStateObj:
241-
def __init__(self):
241+
def __init__(self) -> None:
242242
self.__power_state = 1 # 0 = sleep state, 1 = awake state
243243
# self.__solve_state
244244
# None = No solve attempted yet

python/PiFinder/ui/radec_entry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ class LayoutConfig:
586586
class UIRADecEntry(UIModule):
587587
__title__ = _("RA/DEC Entry")
588588

589-
def __init__(self, *args, **kwargs):
589+
def __init__(self, *args, **kwargs) -> None:
590590
super().__init__(*args, **kwargs)
591591

592592
self.callback = self.item_definition.get("callback")

python/PiFinder/ui/sqm_calibration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class UISQMCalibration(UIModule):
5252
__title__ = "SQM CAL"
5353
__help_name__ = ""
5454

55-
def __init__(self, *args, **kwargs):
55+
def __init__(self, *args, **kwargs) -> None:
5656
super().__init__(*args, **kwargs)
5757

5858
# Wizard state machine

python/PiFinder/ui/textentry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __iter__(self):
8080

8181

8282
class UITextEntry(UIModule):
83-
def __init__(self, *args, **kwargs):
83+
def __init__(self, *args, **kwargs) -> None:
8484
super().__init__(*args, **kwargs)
8585

8686
# Get mode from item_definition

0 commit comments

Comments
 (0)