Skip to content

Commit f2538f5

Browse files
author
d.kovalenko
committed
OptionHandlerToPrepareGetValue__Std__xxx [Int, Str] are updated [assert is added]
Research assert is added.
1 parent c62616a commit f2538f5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__int.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def PrepareGetValue(self, ctx: OptionHandlerCtxToPrepareGetValue) -> any:
2222
assert type(ctx.OptionName) == str
2323
assert ctx.OptionValue is not None
2424

25+
# [2025-04-13] Research
26+
assert type(ctx.OptionValue) == int
27+
2528
return int(ctx.OptionValue)
2629

2730

src/core/option/handlers/prepare_get_value/option_handler_to_prepare_get_value__std__str.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def PrepareGetValue(self, ctx: OptionHandlerCtxToPrepareGetValue) -> any:
2222
assert type(ctx.OptionName) == str
2323
assert ctx.OptionValue is not None
2424

25+
# [2025-04-13] Research
26+
assert type(ctx.OptionValue) == str
27+
2528
return str(ctx.OptionValue)
2629

2730

0 commit comments

Comments
 (0)