Skip to content

Commit

Permalink
Fix of Pattern import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
addie9800 committed Jan 29, 2024
1 parent 0f68583 commit 90cf541
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/fundus/publishers/de/braunschweiger_zeitung.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import datetime
import re
from typing import List, Optional
from typing import List, Optional, Pattern

from lxml.cssselect import CSSSelector
from lxml.etree import XPath

from fundus.parser import ArticleBody, BaseParser, ParserProxy, attribute
Expand All @@ -17,7 +16,7 @@

class BSZeitungParser(ParserProxy):
class V1(BaseParser):
_author_substitution_pattern: re.Pattern[str] = re.compile(r"FUNKE Mediengruppe")
_author_substitution_pattern: Pattern[str] = re.compile(r"FUNKE Mediengruppe")
_paragraph_selector = XPath(
"//div[@class='article-body']//p[not(contains(strong, 'Meistgeklickte Nachrichten "
"aus der Region') or contains(strong, 'Keine wichtigen News mehr verpassen') or "
Expand Down

0 comments on commit 90cf541

Please sign in to comment.