Skip to content

Commit 69f75ea

Browse files
committed
update variable name for readability
1 parent 4fa70bc commit 69f75ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/unit/orchestration/kfp/scaffold_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ def full_name() -> NamedTuple('output', [('first', str), ('last', str)]):
7070
"""
7171
return 'jack', 'smith'
7272

73-
def friends(a: Optional[float]) -> Optional[NamedTuple('output', [('count', int)])]:
73+
def optional_friend_count(count: Optional[float]) -> Optional[NamedTuple('output', [('count', int)])]:
7474
"""Testing
7575
7676
Args:
77-
a (optional[float]): Float n
77+
count (optional[float]): count of friends
7878
"""
79-
if not a:
79+
if not count:
8080
return None
81-
return a
81+
return count
8282

8383
def age() -> int:
8484
"""Testing
@@ -297,7 +297,7 @@ def test_get_compile_step(func_name: str):
297297
does_not_raise()
298298
),
299299
(
300-
friends,
300+
optional_friend_count,
301301
None,
302302
pytest.raises(TypeError)
303303
),

0 commit comments

Comments
 (0)