diff --git a/reflex/components/component.py b/reflex/components/component.py
index b6a3138327..8649b593d8 100644
--- a/reflex/components/component.py
+++ b/reflex/components/component.py
@@ -1029,7 +1029,7 @@ def _get_vars(
             include_children: Whether to include Vars from children.
             ignore_ids: The ids to ignore.
 
-        Returns:
+        Yields:
             Each var referenced by the component (props, styles, event handlers).
         """
         ignore_ids = ignore_ids or set()
@@ -1827,7 +1827,7 @@ def _get_vars(
             include_children: Whether to include Vars from children.
             ignore_ids: The ids to ignore.
 
-        Returns:
+        Yields:
             Each var referenced by the component (props, styles, event handlers).
         """
         ignore_ids = ignore_ids or set()