class documentation
class ConfigSection(abc.ABC): (source)
Known subclasses: pytype.tools.config.IniConfigSection
, pytype.tools.config.TomlConfigSection
A section of a config file.
Class Method | create |
Create a ConfigSection if the file at filepath has section. |
Method | items |
Undocumented |
@classmethod
@abc.abstractmethod
def create_from_file(cls:
@abc.abstractmethod
def create_from_file(cls:
Type[ _ConfigSectionT]
, filepath: str
, section: str
) -> _ConfigSectionT
:
(source)
¶
Create a ConfigSection if the file at filepath has section.