MCPcopy Create free account
hub / github.com/FastLED/FastLED / has_option

Method has_option

ci/compiler/platformio_ini.py:1064–1075  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

validate_structureMethod · 0.95
replace_variableFunction · 0.80
get_default_environmentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected