-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: improve preprocessors type #4588
Conversation
@@ -17,10 +17,10 @@ class HtmlBlockPreprocessor(Preprocessor): | |||
attrs_re: Any | |||
left_tag_re: Any | |||
markdown_in_raw: bool = ... | |||
def run(self, lines): ... | |||
def run(self, lines: List[str]) -> List[str]: ... | |||
|
|||
class ReferencePreprocessor(Preprocessor): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class doesn't exist in the file you linked to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot, looks like it got removed eight days ago, changes haven't been released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good timing. Out of scope for this PR then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For what it's worth it looks like this one actually did need a List
https://github.com/Python-Markdown/markdown/blob/b701c34ebd7b2d0eb319517b9a275ddf0c89608d/markdown/preprocessors.py#L46