You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just getting into mypy so I could be wrong, but in stdlib/3/multiprocessing/__init__.pyi bool is the expected type of multiprocessing.Process.daemon
class Process():
name: str
daemon: bool
but daemon is a property type
$ python3
Python 3.6.6 (default, Jul 19 2018, 14:25:17)
[GCC 8.1.1 20180712 (Red Hat 8.1.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
import multiprocessing
type(multiprocessing.Process.daemon)
<class 'property'>
causing the mypy error
error: Incompatible types in assignment (expression has type "property", base class "Process" defined the type as "bool")
I'm just getting into mypy so I could be wrong, but in
stdlib/3/multiprocessing/__init__.pyi
bool is the expected type of multiprocessing.Process.daemonbut daemon is a property type
causing the mypy error
error: Incompatible types in assignment (expression has type "property", base class "Process" defined the type as "bool")
on
Thank you
The text was updated successfully, but these errors were encountered: