Mailing List Archive

Overriding property types on instances from a library
I have some code that makes use of the typing module.
This code creates several instances of objects it creates
from a library that has some issues.

For example, I have multiple list comps that iterate properties
of those instance and the type checker fails with:

Expected type 'collections.Iterable', got '() -> Any' instead

How can I override the type with a hint on a property of
those instances?

Thanks,
jlc
--
https://mail.python.org/mailman/listinfo/python-list