]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Add type annotations.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 29 Nov 2021 22:11:39 +0000 (23:11 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 29 Nov 2021 22:11:39 +0000 (23:11 +0100)
wrpylib/wrmwmarkup.py

index 5ef604c6f6f168b739aa9039b989c0d976adcd09..712978577ece22003c03024597ff519d467b1a60 100644 (file)
@@ -206,7 +206,7 @@ WRMAP_POINT_TYPES = ['gasthaus', 'haltestelle', 'parkplatz', 'achtung', 'foto',
 WRMAP_LINE_TYPES = ['rodelbahn', 'gehweg', 'alternative', 'lift', 'anfahrt', 'linie']
 
 
-def parse_wrmap(wikitext):
+def parse_wrmap(wikitext: str) -> dict:
     """Parses the '<wrmap ...>content</wrmap>' of the Winterrodeln wrmap extension.
     If wikitext does not contain the <wrmap> tag or if the <wrmap> tag contains 
     invalid formatted lines, a ParseError is raised.