We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f50dbe + c728d52 commit 53c5543Copy full SHA for 53c5543
sopel/modules/unicode_info.py
@@ -10,11 +10,14 @@
10
11
from sopel import plugin
12
13
-# unicodedata2 can provide a more-modern UCD than the one that comes with Python, use it if present
+# Python built-in unicodedata uses UCD version 13 (as of Python 3.10)
14
+# unicodedata2 can provide a more recent version, so we use that if present
15
+# See also: https://docs.python.org/3/library/unicodedata.html
16
try:
- import unicodedata2 as unicodedata
17
+ # ignore type check for these imports (no stubs for unicodedata2)
18
+ import unicodedata2 as unicodedata # type: ignore[import]
19
except ImportError:
- import unicodedata
20
+ import unicodedata # type: ignore[no-redef]
21
22
23
def get_codepoint_name(char):
0 commit comments