title: Python: Why changing `from constants import API_TOKEN to `import constants` causes errors?
body: <p>I'm using PyCharm and Python 3.10. I've had a constant, <code>API_TOKEN</code>, defined with an assignment statement in a separate file, <code>constants.py</code> and imported it with:<br />
  <code>from constants import API_TOKEN</code><br />
  That has been working.</p>
  <p>I'd like to add more &quot;importable&quot; constants to <code>constants.py</code>; just to make sure that would work, before adding them I changed the import statement to<br />
  <code>import contants</code><br />
  That single change caused PyCharm to generate an <code>Unresolved reference 'API_TOKEN'</code> error on each of the two references, and an <code>Unused import statement 'import constants'</code> warning.</p>