Skip to content

Commit 310eb68

Browse files
committed
fix: Make protected members private
1 parent bdf899c commit 310eb68

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/toolbox-core/src/toolbox_core/sync_tool.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def __init__(
5151
if not isinstance(async_tool, ToolboxTool):
5252
raise TypeError("async_tool must be an instance of ToolboxTool")
5353

54-
self._async_tool = async_tool
55-
self._loop = loop
56-
self._thread = thread
54+
self.__async_tool = async_tool
55+
self.__loop = loop
56+
self.__thread = thread
5757

5858
# NOTE: We cannot define __qualname__ as a @property here.
5959
# Properties are designed to compute values dynamically when accessed on an *instance* (using 'self').
@@ -66,15 +66,15 @@ def __init__(
6666

6767
@property
6868
def _async_tool(self) -> ToolboxTool:
69-
return self._async_tool
69+
return self.__async_tool
7070

7171
@property
7272
def _loop(self) -> AbstractEventLoop:
73-
return self._loop
73+
return self.__loop
7474

7575
@property
7676
def _thread(self) -> Thread:
77-
return self._thread
77+
return self.__thread
7878

7979
@property
8080
def __name__(self) -> str:

0 commit comments

Comments
 (0)