Re: [PATCH 2/2] dts: clean up config types

2024-05-29 Thread Juraj Linkeš
On Thu, May 9, 2024 at 12:57 PM Luca Vizzarro wrote: > > Clean up types used with the configuration classes, and use Self from > the newly added typing_extensions module. > > Methods that instantiate their own class should be @classmethod instead > of @staticmethod. > > Bugzilla ID: 1433 > > Signe

Re: [PATCH 2/2] dts: clean up config types

2024-05-14 Thread Luca Vizzarro
On 13/05/2024 17:12, Juraj Linkeš wrote: diff --git a/dts/framework/testbed_model/traffic_generator/__init__.py b/dts/framework/testbed_model/traffic_generator/__init__.py @@ -39,8 +39,8 @@ def create_traffic_generator( Returns: A traffic generator capable of capturing received p

Re: [PATCH 2/2] dts: clean up config types

2024-05-13 Thread Juraj Linkeš
> diff --git a/dts/framework/testbed_model/traffic_generator/__init__.py > b/dts/framework/testbed_model/traffic_generator/__init__.py > @@ -39,8 +39,8 @@ def create_traffic_generator( > Returns: > A traffic generator capable of capturing received packets. > """ > -match tra

[PATCH 2/2] dts: clean up config types

2024-05-09 Thread Luca Vizzarro
Clean up types used with the configuration classes, and use Self from the newly added typing_extensions module. Methods that instantiate their own class should be @classmethod instead of @staticmethod. Bugzilla ID: 1433 Signed-off-by: Luca Vizzarro Reviewed-by: Paul Szczepanek --- dts/framewo