Skip to content

Commit fed65fe

Browse files
fix(compose): return type in get_service_port docstring (#939)
Noticed a mismatch in a function docstring while using the library. Fixed return type of `get_service_port` from `str` to `int` Co-authored-by: Roy Moore <roy@moore.co.il>
1 parent 8034541 commit fed65fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/testcontainers/compose/compose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def get_service_port(
506506
507507
Returns
508508
-------
509-
str:
509+
int:
510510
The mapped port on the host
511511
"""
512512
normalize: PublishedPortModel = self.get_container(service_name).get_publisher(by_port=port).normalize()

0 commit comments

Comments
 (0)