Skip to content

Why there is no argument validity checking in Python? #534

@kancve

Description

@kancve

Example: In the generated service class:

class Service(zserio.ServiceInterface):
def _get_layer_by_tile_id_method(self, request_data: bytes, context: typing.Any) -> zserio.ServiceData:
    reader = zserio.BitStreamReader(request_data)
    request = ndslive.core.types.tile_id.TileId.from_reader(reader)
 return zserio.service.ObjectServiceData(self._get_layer_by_tile_id_impl(request, context))

If the parameter(request_data) is an outlier or null value, an exception will be thrown. Is there an optimization solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions