.. _non-ascii-module-import:

non-ascii-module-import / C2403
===============================

**Message emitted:**

%s name "%s" contains a non-ASCII character, use an ASCII-only alias for import.

**Description:**

*Used when the name contains at least one non-ASCII unicode character. See https://peps.python.org/pep-0672/#confusing-features for a background why this could be bad. 
If your programming guideline defines that you are programming in English, then there should be no need for non ASCII characters in Python Names. If not you can simply disable this check.*


**Correct code:**

.. literalinclude:: /data/messages/n/non-ascii-module-import/good.py
   :language: python

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !


Created by the `nonascii-checker <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/non_ascii_names.py>`__ checker.