Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/test_run_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Copyright(c) 2019-2021 Intel Corporation
# Copyright(c) 2023-2025 Huawei Technologies Co., Ltd.
# Copyright(c) 2026 Unvertical
# SPDX-License-Identifier: BSD-3-Clause
#

Expand All @@ -23,7 +24,7 @@
from test_utils.dut import Dut

TestRun = core.test_run.TestRun
TestRun.TEST_RUN_DATA_PATH = "/tmp/test_data"
TestRun.TEST_RUN_DATA_PATH = "/tmp/"


@classmethod
Expand Down
6 changes: 3 additions & 3 deletions type_def/size.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ def __sub__(self, other):
)

@multimethod
def __mul__(self, other: float):
def __mul__(self, other: float | int):
return Size(math.ceil(self.get_value() * other))

@multimethod
def __rmul__(self, other: float):
def __rmul__(self, other: float | int):
return Size(math.ceil(self.get_value() * other))

@multimethod
def __truediv__(self, other: int):
def __truediv__(self, other: float | int):
if other == 0:
raise ValueError("Divisor must not be equal to 0.")
return Size(math.ceil(self.get_value() / other))
Expand Down