Toan Quach преди 10 месеца
родител
ревизия
f831922aa6
променени са 2 файла, в които са добавени 4 реда и са изтрити 6 реда
  1. 1 2
      taipy/core/reason/__init__.py
  2. 3 4
      taipy/core/reason/reason_collection.py

+ 1 - 2
taipy/core/reason/__init__.py

@@ -16,6 +16,5 @@ from .reason import (
     NotGlobalScope,
     Reason,
     WrongConfigType,
-    _DataNodeReasonMixin,
 )
-from .reasons import ReasonCollection
+from .reason_collection import ReasonCollection

+ 3 - 4
taipy/core/reason/reasons.py → taipy/core/reason/reason_collection.py

@@ -20,11 +20,10 @@ class ReasonCollection:
 
     Because Taipy applications are natively multiuser, asynchronous, and dynamic,
     some functions might not be called in some specific contexts. You can protect
-    such calls by calling other methods that return a Reasons object. It acts like a
+    such calls by calling other methods that return a `ReasonCollection`. It acts like a
     boolean: True if the operation can be performed and False otherwise.
-    If the action cannot be performed, the Reasons object holds all the `reasons as a list
-    of `Reason` objects. Each `Reason` holds an explanation of why the operation cannot be
-    performed.
+    If the action cannot be performed, the ReasonCollection holds all the individual reasons as a list
+    of `Reason` objects. Each `Reason` explains why the operation cannot be performed.
     """
 
     def __init__(self) -> None: