Skip to content

Commit 2080240

Browse files
committed
Fix pyright concerns
1 parent 2de4b2a commit 2080240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mock_vws/target.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def status(self) -> str:
112112
target is for detection.
113113
"""
114114
processing_time = datetime.timedelta(
115-
seconds=self.processing_time_seconds,
115+
seconds=float(self.processing_time_seconds),
116116
)
117117

118118
timezone = self.upload_date.tzinfo
@@ -137,7 +137,7 @@ def tracking_rating(self) -> int:
137137
pre_rating_time = datetime.timedelta(
138138
# That this is half of the total processing time is unrealistic.
139139
# In VWS it is not a constant percentage.
140-
seconds=self.processing_time_seconds / 2,
140+
seconds=float(self.processing_time_seconds) / 2,
141141
)
142142

143143
timezone = self.upload_date.tzinfo

0 commit comments

Comments
 (0)