Пример #1
0
class EvUserD:
    passwords: dict[str, str] = types.dictof(
        types.str.minlength(2).maxlength(4).transform(
            lambda s: s + '0x0x0x0x'))
Пример #2
0
class SimpleChart:
    name: Optional[str]
    partitions: dict[str, float] = types.dictof(types.float.max(1)).required
Пример #3
0
 class MediumDecodeCamelizeDictKeys:
     id: str = types.readonly.str.primary.mongoid.required
     val: Dict[str, str] = types.dictof(types.str)
Пример #4
0
class SimpleQuiz:
    numbers: dict[str, int] = types.dictof(types.int.min(100))
Пример #5
0
class CamelizedWeather:
    data_data: dict[str, str] = types.dictof(str)
Пример #6
0
class DefaultDict:
    value: dict[str] = types.dictof(str).default({'a': '1', 'b': '2'})