Improve test documentation for mypy import fix

Co-authored-by: Pierre-Sassoulas <5493666+Pierre-Sassoulas@users.noreply.github.com>
diff --git a/tests/functional/i/import_mypy_extension.py b/tests/functional/i/import_mypy_extension.py
index 603a347..a4f0e6a 100644
--- a/tests/functional/i/import_mypy_extension.py
+++ b/tests/functional/i/import_mypy_extension.py
@@ -1,4 +1,11 @@
-"""Test for mypy extension package import crash regression."""
+"""Test for mypy extension package import crash regression.
+
+This reproduces the crash described in issue #10223 where importing
+mypy modules with --extension-pkg-allow-list=mypy caused an AttributeError
+crash due to mypyc-compiled objects not having __dict__ attributes.
+
+The fix ensures this generates an import-error message instead of crashing.
+"""
 # pylint: disable=unused-import
 
 # This should not crash when using --extension-pkg-allow-list=mypy