Skip to content

Commit ef13b29

Browse files
Copilot fix: Add docs to UpdateBehavior class
Co-authored-by: Copilot <[email protected]>
1 parent 277b430 commit ef13b29

File tree

1 file changed

+8
-0
lines changed
  • sdk/python/packages/flet/src/flet/controls

1 file changed

+8
-0
lines changed

sdk/python/packages/flet/src/flet/controls/context.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ def reset_auto_update(self):
110110

111111

112112
class UpdateBehavior:
113+
"""
114+
Internal class used by the Context API to manage auto-update behavior.
115+
116+
An instance of UpdateBehavior is stored in a context variable and tracks
117+
whether automatic updates are enabled for the current context. The Context
118+
class interacts with UpdateBehavior to enable, disable, and query the
119+
auto-update state.
120+
"""
113121
_auto_update_enabled: bool = True
114122

115123

0 commit comments

Comments
 (0)