You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the meta extension, the Meta field of the Markdown class is not found by Pyright. Perhaps I missed something, can we import a stub file to make this error go away?
For clarity: The code works, but the language server does not find the Meta Member for type Markdown.
This might also happen with the attributes added by other extensions, but I've found it for the meta extension specifically.
Minimal example: test.py:
importmarkdownMD=markdown.Markdown(extensions=['meta'])
withopen("foo.md", "r") asf:
content: str=f.read()
html: str=MD.convert(content)
meta=MD.Meta# Cannot access member "Meta" for type "Markdown" Member "Meta" is unknownprint(meta)
foo.md:
key: 19
this is the content
executing the script:
$ python test.py
{'key': ['19']}
Proposed Fix
Add a python stub file for the Meta attribute.