Check if an option exists in a section. Args: section: Section name option: Option name to check Returns: True if option exists in section, False otherwise
(self, section: str, option: str)
| 1062 | return self.config.has_section(section) |
| 1063 | |
| 1064 | def has_option(self, section: str, option: str) -> bool: |
| 1065 | """ |
| 1066 | Check if an option exists in a section. |
| 1067 | |
| 1068 | Args: |
| 1069 | section: Section name |
| 1070 | option: Option name to check |
| 1071 | |
| 1072 | Returns: |
| 1073 | True if option exists in section, False otherwise |
| 1074 | """ |
| 1075 | return self.config.has_option(section, option) |
| 1076 | |
| 1077 | def get_option( |
| 1078 | self, section: str, option: str, fallback: Optional[str] = None |
no outgoing calls
no test coverage detected