classReportIncompatibleSections:"""Remove well-know incompatible sections."""def__init__(self,profile:str,sections:List[str]):self._profile=profileself._sections=sectionsdef__call__(self,cfg:R)->R:invalid=[sectionforsectioninself._sectionsifsectionincfg]ifinvalid:sections=", ".join(repr(x)forxininvalid)_logger.warning(_warning_text(self._profile,sections))returncfgdef_warning_text(profile:str,sections:str)->str:msg=f""" Sections {sections} ({profile!r}) may be problematic. It might be the case TOML files are not supported by the relevant tools, or that 'ini2toml' just lacks a plugin for this kind of configuration. Please review the generated output and remove these sections if necessary. """returncleandoc(msg)+"\n"