Skip to content

Commit bbb3396

Browse files
Fix unused import and linting
1 parent b0c1901 commit bbb3396

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

titiler/stacapi/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import Any, Dict, List, Optional, Tuple, Type
55

66
import attr
7+
import planetary_computer as pc
78
import rasterio
89
from cachetools import TTLCache, cached
910
from cachetools.keys import hashkey
@@ -13,7 +14,6 @@
1314
from geojson_pydantic import Point, Polygon
1415
from geojson_pydantic.geometries import Geometry
1516
from morecantile import Tile, TileMatrixSet
16-
import planetary_computer as pc
1717
from pystac_client import ItemSearch
1818
from pystac_client.stac_api_io import StacApiIO
1919
from rasterio.crs import CRS

titiler/stacapi/dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import json
44
from typing import Dict, List, Literal, Optional, TypedDict, get_args
55

6+
import planetary_computer as pc
67
import pystac
78
from cachetools import TTLCache, cached
89
from cachetools.keys import hashkey
910
from fastapi import Depends, HTTPException, Path, Query
10-
import planetary_computer as pc
1111
from pystac_client import ItemSearch
1212
from pystac_client.stac_api_io import StacApiIO
1313
from starlette.requests import Request

titiler/stacapi/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""API settings."""
22

3-
import re
43
from typing import Optional
54

65
from pydantic import Field, field_validator, model_validator

titiler/stacapi/stac_reader.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
"""Custom STAC reader."""
22

3-
import re
43
from typing import Any, Dict, Optional, Set, Type
54

65
import attr
7-
import planetary_computer
86
import pystac
97
import rasterio
108
from morecantile import TileMatrixSet
@@ -14,10 +12,9 @@
1412
from rio_tiler.io import BaseReader, Reader, stac
1513
from rio_tiler.types import AssetInfo
1614

17-
from titiler.stacapi.settings import STACAPISettings, STACSettings
15+
from titiler.stacapi.settings import STACSettings
1816

1917
stac_config = STACSettings()
20-
stac_api_config = STACAPISettings()
2118

2219

2320
@attr.s

0 commit comments

Comments
 (0)