pylance-release
pylance-release copied to clipboard
One dot is missing for leading ellipsis in doc markdown
Environment data
- Language Server version: v2022.6.20
- OS and version: Windows 7
- Python version (& distribution if applicable, e.g. Anaconda): 3.8.12 Anaconda
Code Snippet
def annotation(x):
"""
Example
-------
>>> class C:
... @annotation
... def f():
... ...
"""
return x
Repro Steps
- Copy and paste the code snippet into a python file.
- Hover
annotation
and see its doc.
Expected behavior
The doc markdown is rendered correctly.
Actual behavior
Every leading ellipsis is short of one dot.
Additional Info
- It seems that a "@" phrase after leading dot(s) is causing this behavior. And a simplified sample would be
def f():
"""
>>> a
. @1
.. 2
... 3
.... 4
"""
-
Wrapping the code as code blocks using ``` doesn't help.
-
As far as I can tell, the same doc(s) can be rendered correctly up to v2021.1.3, but not since v2021.2.1.