(
        self, model_info: ModelInfo, package_info: List[Tuple[str, str]]
    )
return model_files
Builds the model files others than instace.py and shared.py
        In particular it builds, if relevant:
            - defaults.py
            - deprecations.py
            - __init__.py
            - validators.py
        Returns a Dict[ file_name, Tuple[file_contents, List[errors])]
Builds the model files others than instace.py and shared.py
        In particular it builds, if relevant:
            - defaults.py
            - deprecations.py
            - __init__.py
            - validators.py
        Returns a Dict[ file_name, Tuple[file_contents, List[errors])]
Builds the model files others than instace . py and shared . py In particular it builds if relevant : - defaults . py - deprecations . py - __init__ . py - validators . py Returns a Dict [ file_name Tuple [ file_contents List [ errors ] ) ]
def _build_model_files(
        self, model_info: ModelInfo, package_info: List[Tuple[str, str]]
    ) -> Dict[str, Tuple[str, List]]:
        """Builds the model files others than instace.py and shared.py
        In particular it builds, if relevant:
            - defaults.py
            - deprecations.py
            - __init__.py
            - validators.py
        Returns a Dict[ file_name, Tuple[file_contents, List[errors])]
        """
        model_files = {}
        if model_info.defaults_file_lines:
            defaults_file_contents = self._build_defaults_file(model_info)
            model_files['defaults.py'] = (defaults_file_contents, [])

        if model_info.deprecation_data:
            deprecations_file_contents = self._build_deprecation_file(model_info.deprecation_data)
            model_files['deprecations.py'] = (deprecations_file_contents, [])

        package_root_lines = ModelConsumer._build_package_root(package_info)
        model_files['__init__.py'] = ('\n'.join(package_root_lines), [])

        # Custom
        model_files[VALIDADORS_FILE] = (VALIDATORS_DOCUMENTATION, [])
        return model_files
def _build_model_files ( self , model_info : ModelInfo , package_info : List [ Tuple [ str , str ] ] ) -> Dict [ str , Tuple [ str , List ] ] : model_files = { } if model_info . defaults_file_lines : defaults_file_contents = self . _build_defaults_file ( model_info ) model_files [ 'defaults.py' ] = ( defaults_file_contents , [ ] ) if model_info . deprecation_data : deprecations_file_contents = self . _build_deprecation_file ( model_info . deprecation_data ) model_files [ 'deprecations.py' ] = ( deprecations_file_contents , [ ] ) package_root_lines = ModelConsumer . _build_package_root ( package_info ) model_files [ '__init__.py' ] = ( '\n' . join ( package_root_lines ) , [ ] ) # Custom model_files [ VALIDADORS_FILE ] = ( VALIDATORS_DOCUMENTATION , [ ] ) return model_files