These bugs affect only the quality of the imported nodes. The files are imported correctly.
1. In some (rare?) cases, the @others of a class node is not indented. All child nodes contain the leading whitespace that should have preceded the @others.
This bug affects all classes in mypy/test-data/stdlib-samples/3.2/test/test_textwrap.py except the first class.
2. It appears that "async def" is not recognized as the start of a function.
See mypy/test-data/samples/crawl2.py. A "...some declarations" node contains async def get_connection. There are many other examples.
3. Imo, "...some declarations" nodes should be merged into their following or preceding sibling, if such a sibling exists. In my experience, it's better to prefer the following sibling
if both siblings exist.
That's all for now.
Edward
P.S. I shall soon add "@bool put-class-in-imported-headlines = True" to leoSettings.leo, so that the python importer will put 'class' in the headlines of class nodes. The "True" value conforms to legacy operation.
EKR