Update astroid/interpreter/_import/spec.py
Update astroid/interpreter/_import/spec.py

Taking into account @GergelyKalmar suggestion

Co-authored-by: Gergely Kalmár <06ea6093fb848283a16e5f1b9e9c16b44e984c00@logikal.jp>
PyCQA/astroid