Joël Larose <[email protected]> added the comment: An easy workaround would be to alias your import or to import your class directly.
``` from ... import losses as l class A: losses: l.Losses = l.Losses() ``` or ``` from ...losses import Losses class A: losses: Losses = Losses() ``` ---------- nosy: +joel.larose _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue43746> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
