Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown: Add missing attribute to Markdown stub. #5544

Merged
merged 4 commits into from
May 29, 2021

Conversation

akshatdalton
Copy link
Contributor

I'm a regular contributor @zulip, and I've added a commit that overrides the _parseHeader function, and while working, I found that this attribute is missing here. (Related PR: zulip/zulip#18608)

This attribute is defined here: https://github.com/Python-Markdown/markdown/blob/3ea29f9d9b7d201269444dccedc0383065532b7e/markdown/extensions/codehilite.py#L113.

@JelleZijlstra
Copy link
Member

Your diff adds it as an argument to __init__, not an attribute. Looks like it should instead be an attribute of type dict[str, Any].

@akshatdalton
Copy link
Contributor Author

Added the changes in the new commit.
Force-pushed was for changing the commit message.
Please review.

@andersk
Copy link
Contributor

andersk commented May 28, 2021

Your diff still adds it as an argument to __init__, not an attribute.

@akshatdalton
Copy link
Contributor Author

Yeah, right. I don't know how I forgot to change the main subject. 🤦
Please review.

@Akuli Akuli merged commit bb79dc9 into python:master May 29, 2021
@akshatdalton akshatdalton deleted the missing_attribute branch May 29, 2021 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants