RET504: fix
This commit is contained in:
@@ -279,8 +279,7 @@ API.register(get_system_file)
|
||||
|
||||
param = sig.parameters.get(arg_name)
|
||||
if param:
|
||||
param_class = param.annotation
|
||||
return param_class
|
||||
return param.annotation
|
||||
|
||||
return None
|
||||
|
||||
|
||||
@@ -105,9 +105,7 @@ def list_system_services_mdns() -> DNSInfo:
|
||||
],
|
||||
)
|
||||
proc = run(cmd)
|
||||
data = parse_avahi_output(proc.stdout)
|
||||
|
||||
return data
|
||||
return parse_avahi_output(proc.stdout)
|
||||
|
||||
|
||||
def mdns_command(_args: argparse.Namespace) -> None:
|
||||
|
||||
@@ -37,9 +37,7 @@ def inspect_dataclass_fields(t: type) -> dict[TypeVar, type]:
|
||||
|
||||
type_params = origin.__parameters__
|
||||
# Create a map from type parameters to actual type arguments
|
||||
type_map = dict(zip(type_params, type_args, strict=False))
|
||||
|
||||
return type_map
|
||||
return dict(zip(type_params, type_args, strict=False))
|
||||
|
||||
|
||||
def apply_annotations(schema: dict[str, Any], annotations: list[Any]) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user