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

Method remove_option

ci/compiler/platformio_ini.py:1109–1123  ·  view source on GitHub ↗

Remove an option from a section. Args: section: Section name option: Option name Returns: True if option was removed, False if it didn't exist

(self, section: str, option: str)

Source from the content-addressed store, hash-verified

1107 self.invalidate_cache() # Invalidate cache when config changes
1108
1109 def remove_option(self, section: str, option: str) -> bool:
1110 """
1111 Remove an option from a section.
1112
1113 Args:
1114 section: Section name
1115 option: Option name
1116
1117 Returns:
1118 True if option was removed, False if it didn't exist
1119 """
1120 result = self.config.remove_option(section, option)
1121 if result:
1122 self.invalidate_cache() # Invalidate cache when config changes
1123 return result
1124
1125 def get_platform_urls(self) -> list[tuple[str, str, str]]:
1126 """

Callers

nothing calls this directly

Calls 1

invalidate_cacheMethod · 0.95

Tested by

no test coverage detected