PyCharm does this without the hints

How would that work across files and libraries?