Skip to content

Commit 63e3026

Browse files
committed
fix: Make protected members private
1 parent f0b7206 commit 63e3026

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
@@ -52,9 +52,9 @@ def __init__(
5252
if not isinstance(async_tool, ToolboxTool):
5353
raise TypeError("async_tool must be an instance of ToolboxTool")
5454

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

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

6868
@property
6969
def _async_tool(self) -> ToolboxTool:
70-
return self._async_tool
70+
return self.__async_tool
7171

7272
@property
7373
def _loop(self) -> AbstractEventLoop:
74-
return self._loop
74+
return self.__loop
7575

7676
@property
7777
def _thread(self) -> Thread:
78-
return self._thread
78+
return self.__thread
7979

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

0 commit comments

Comments
 (0)