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

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/c1dc4307-a2b5-454d-963e-aee5f5f9dc47n%40googlegroups.com.

Reply via email to