From 6c103e4dc48e7e0c0f6cdedc18b0afe33babf1ac Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 27 Oct 2021 14:55:32 -0700 Subject: scrub_text: remove unused mimetype arg To resolve a warning caught by pytype --- fatcat_scholar/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/schema.py') diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py index 901379a..6c9307d 100644 --- a/fatcat_scholar/schema.py +++ b/fatcat_scholar/schema.py @@ -435,7 +435,7 @@ def clean_str(raw: Optional[str], strip_trailing_period: bool = False) -> Option return text -def scrub_text(raw: str, mimetype: str = None) -> Optional[str]: +def scrub_text(raw: str) -> Optional[str]: """ This function takes a mimetype-hinted string and tries to reduce it to a simple token-and-punctuation scheme with any and all markup removed. Eg, -- cgit v1.2.3