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

@ -224,7 +224,7 @@ class Button(Item[V]):
return self.url is not None
return super().is_persistent()
def refresh_component(self, button: ButtonComponent) -> None:
def _refresh_component(self, button: ButtonComponent) -> None:
self._underlying = button