(self, obj)
return required or missing
Fill out required field.
Fill out required field.
Fill out required field .
def get_required(self, obj) -> typing.Union[typing.List[str], _Missing]:
        """Fill out required field."""
        required = []

        for field_name, field in sorted(obj.fields.items()):
            if field.required:
                required.append(field.data_key or field.name)

        return required or missing
def get_required ( self , obj ) -> typing . Union [ typing . List [ str ] , _Missing ] : required = [ ] for field_name , field in sorted ( obj . fields . items ( ) ) : if field . required : required . append ( field . data_key or field . name ) return required or missing