OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

python typing for multiprocessing.Value

  • Thread starter Thread starter user3599803
  • Start date Start date


multiprocessing.Value("d") returns a type of multiprocessing.sharedctypes.Synchronized

So currently I type hint like:
int_val: Synchronized = multiprocessing.Value("i")

Is there something like Synchronized[int]? (Similar to lists, and other container types)
<p><code>multiprocessing.Value("d")</code> returns a type of <code>multiprocessing.sharedctypes.Synchronized</code></p>
<p>So currently I type hint like:<br />
<code>int_val: Synchronized = multiprocessing.Value("i")</code></p>
<p>Is there something like <code>Synchronized[int]</code>? (Similar to lists, and other container types)</p>