Mark state refresh methods as private with an underscore

People kept wondering what it is or what it does.
This commit is contained in:
Rapptz
2022-03-14 07:31:21 -04:00
parent 6dd8845e4f
commit 934ab4151a
6 changed files with 14 additions and 14 deletions

View File

@ -72,10 +72,10 @@ class Item(Generic[V]):
def to_component_dict(self) -> Dict[str, Any]:
raise NotImplementedError
def refresh_component(self, component: Component) -> None:
def _refresh_component(self, component: Component) -> None:
return None
def refresh_state(self, data: Dict[str, Any]) -> None:
def _refresh_state(self, data: Dict[str, Any]) -> None:
return None
@classmethod