Toloka documentation

BaseTolokaObject

toloka.client.primitives.base.BaseTolokaObject | Source code

BaseTolokaObject(self)

A base class for classes representing Toloka objects.

Subclasses of BaseTolokaObject will:

  • Automatically convert annotated attributes attributes via attrs making them optional if not explicitly configured otherwise
  • Skip missing optional fields during unstructuring with client's cattr converter

Methods Summary

Method Description
from_json None
get_spec_subclass_for_value None
get_variant_specs None
is_variant_base None
is_variant_incomplete None
is_variant_spec None
to_json None