Skip to content

Commit

Permalink
tidy formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PatBall1 committed Oct 1, 2023
1 parent d9073dc commit 7753395
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions detectree2/models/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import re
from http.client import REQUEST_URI_TOO_LONG # noqa: F401
from pathlib import Path
from typing import Optional, Dict, Union, List, Any
from typing import Optional, Dict, Union, List, Any, TypedDict

import cv2
import geopandas as gpd
Expand All @@ -24,7 +24,9 @@

# Type aliases definitions
Feature = Dict[str, Any]
GeoFile = Dict[str, Union[str, Dict[str, str], List[Feature]]]
CRSType = TypedDict("CRSType", {"type": str, "properties": Dict[str, str]})
GeoFile = TypedDict("GeoFile", {"type": str, "crs": CRSType, "features": List[Feature]})


def polygon_from_mask(masked_arr):
"""Convert RLE data from the output instances into Polygons.
Expand Down

0 comments on commit 7753395

Please sign in to comment.