From dd2636ec1fc7578cc5fbf3b457d1142632135331 Mon Sep 17 00:00:00 2001 From: Mladen Gibanica <11275336+mgcth@users.noreply.github.com> Date: Sat, 4 May 2024 21:44:14 +0200 Subject: [PATCH] Fix types and lint --- .github/workflows/github-action-type.yaml | 2 +- src/lantmateriet/api.py | 1 - src/lantmateriet/geometry.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-action-type.yaml b/.github/workflows/github-action-type.yaml index afb503d..f73041b 100644 --- a/.github/workflows/github-action-type.yaml +++ b/.github/workflows/github-action-type.yaml @@ -19,9 +19,9 @@ jobs: pip install -e ".[type]" - name: Type checking with mypy run: > - MYPYPATH=src mypy --namespace-packages --explicit-package-bases --allow-redefinition + --ignore-missing-imports src diff --git a/src/lantmateriet/api.py b/src/lantmateriet/api.py index bc8bb7b..8c2392a 100644 --- a/src/lantmateriet/api.py +++ b/src/lantmateriet/api.py @@ -6,7 +6,6 @@ import os import zipfile from pathlib import Path -from typing import Optional import requests from tqdm import tqdm diff --git a/src/lantmateriet/geometry.py b/src/lantmateriet/geometry.py index d7583d3..47313cd 100644 --- a/src/lantmateriet/geometry.py +++ b/src/lantmateriet/geometry.py @@ -3,7 +3,7 @@ import os from copy import deepcopy from os import path -from typing import Optional, Union +from typing import Union import geopandas as gpd from lantmateriet import config