Explorar o código

minor changes

Toan Quach hai 10 meses
pai
achega
f831922aa6
Modificáronse 2 ficheiros con 4 adicións e 6 borrados
  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,
     NotGlobalScope,
     Reason,
     Reason,
     WrongConfigType,
     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,
     Because Taipy applications are natively multiuser, asynchronous, and dynamic,
     some functions might not be called in some specific contexts. You can protect
     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.
     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:
     def __init__(self) -> None: