From 2abf2297aabb355b72c6ae9e0aaf350f7a6cbe9d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 17 Apr 2025 12:23:38 +0200 Subject: Add type hints and refactor a bit to please pylint. --- webmap-download-mrr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webmap-download-mrr.py') diff --git a/webmap-download-mrr.py b/webmap-download-mrr.py index f839ac0..696e46c 100644 --- a/webmap-download-mrr.py +++ b/webmap-download-mrr.py @@ -538,7 +538,7 @@ PATH_RE = re.compile(r'^M\s*' + POINT0_RE = re.compile(r'^M\s*(' + FLOAT_RE + r')\s+(' + FLOAT_RE + r')\s+') POINT_RE = re.compile(r'^L\s*(' + FLOAT_RE + r')\s+(' + FLOAT_RE + r')(?:\s+|$)') -def download(dl, dest, dir_fd=None, headers={}, session=requests, progress=None): +def download(dest, dl, dir_fd=None, headers={}, session=requests, progress=None): dest_path = Path(dest) if dest_path.suffix.lower() != '.geojson': # mostly to check that nothing ends in .svg -- cgit v1.2.3