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
user_data is obviously meant for the programmer to put arbitrary data in for later use. At runtime it may be any type. However, user_data is typed as None throughout these stubs.
$ mypy repr.py
repr.py:8: error: Incompatible types in assignment (expression has type "int", variable has type "None") [assignment]
Found 1 error in 1 file (checked 1 source file)
It seems that there is no distinction between void and void* at introspection level, but I think we can avoid to use None where it makes no sense and use Any instead. I will work on this
user_data is obviously meant for the programmer to put arbitrary data in for later use. At runtime it may be any type. However, user_data is typed as None throughout these stubs.
Here is an example:
This is what mypy says:
Here is the definition of TreeIter in _Gtk3.pyi:
The text was updated successfully, but these errors were encountered: