Files
test/keywords/ptp/cat/objects/ptp_cgu_component_output.py
aabhinav 65d935a2b8 pylint fix 01
Description:
- Added a missing import for SSHConnection.
- Added data types to function arguments and return values.
- Removed Returns section in docstring when function return type is None

Change-Id: Id96217573f629d40a52459a3b45d26ae0649aa03
Signed-off-by: aabhinav <ayyapasetti.abhinav@windriver.com>
2025-07-15 08:11:50 -04:00

22 lines
667 B
Python

from keywords.ptp.cat.cat_ptp_cgu_parser import CatPtpCguParser
from keywords.ptp.cat.objects.ptp_cgu_component_object import PtpCguComponentObject
class PtpCguComponentOutput:
"""
Class for PTP CGU Component Output.
"""
def __init__(self, cat_ptp_cgu_output: str):
ptp_cgu_parser = CatPtpCguParser(cat_ptp_cgu_output)
self.cgu_component = ptp_cgu_parser.parse_ptp_cgu_objects()
def get_cgu_component(self) -> PtpCguComponentObject:
"""
Gets the cgu component.
Returns:
PtpCguComponentObject: The cgu component object containing parsed values.
"""
return self.cgu_component