2 ms·
> However, no IDE will show any problem with this code. That's not entirely True... I just checked it here and Eclipse/PyDev does flag this correctly -- since
by fabioz 3y ago
> However, no IDE will show any problem with this code.
That's not entirely True... I just checked it here and Eclipse/PyDev does flag this correctly -- since version 11.0.0 ;)
See: https://www.pydev.org/history_pydev.html https://www.pydev.org/history_pydev.html (Imports found inside a typing.TYPE_CHECKING will be considered undefined if the scope that uses it requires it to be available when not type-checking).