@@ -8,7 +8,7 @@ from multiprocessing import popen_fork, popen_forkserver, popen_spawn_posix, pop
88from multiprocessing .managers import SyncManager
99from multiprocessing .pool import Pool as _Pool
1010from multiprocessing .process import BaseProcess
11- from multiprocessing .sharedctypes import Synchronized , SynchronizedArray , SynchronizedString
11+ from multiprocessing .sharedctypes import Synchronized , SynchronizedArray , SynchronizedBase , SynchronizedString
1212from typing import Any , ClassVar , Literal , TypeAlias , TypeVar , overload
1313
1414if sys .platform != "win32" :
@@ -90,18 +90,18 @@ class BaseContext:
9090 self , typecode_or_type : type [_SimpleCData [_T ]], * args : Any , lock : Literal [True ] | _LockLike = True
9191 ) -> Synchronized [_T ]: ...
9292 @overload
93- def Value (self , typecode_or_type : type [_CT ], * args : Any , lock : Literal [False ]) -> Synchronized [ _CT ] : ...
93+ def Value (self , typecode_or_type : type [_CT ], * args : Any , lock : Literal [False ]) -> _CT : ...
9494 @overload
95- def Value (self , typecode_or_type : type [_CT ], * args : Any , lock : Literal [True ] | _LockLike = True ) -> Synchronized [_CT ]: ...
95+ def Value (self , typecode_or_type : type [_CT ], * args : Any , lock : Literal [True ] | _LockLike = True ) -> SynchronizedBase [_CT ]: ...
9696 @overload
9797 def Value (self , typecode_or_type : str , * args : Any , lock : Literal [True ] | _LockLike = True ) -> Synchronized [Any ]: ...
9898 @overload
9999 def Value (self , typecode_or_type : str | type [_CData ], * args : Any , lock : bool | _LockLike = True ) -> Any : ...
100100
101101 @overload
102102 def Array (
103- self , typecode_or_type : type [_SimpleCData [ _T ] ], size_or_initializer : int | Sequence [Any ], * , lock : Literal [False ]
104- ) -> SynchronizedArray [ _T ]: ...
103+ self , typecode_or_type : type [_CT ], size_or_initializer : int | Sequence [Any ], * , lock : Literal [False ]
104+ ) -> ctypes . Array [ _CT ]: ...
105105 @overload
106106 def Array (
107107 self , typecode_or_type : type [c_char ], size_or_initializer : int | Sequence [Any ], * , lock : Literal [True ] | _LockLike = True
0 commit comments