-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing a bug in the masking functions, and making mypy happy
- Loading branch information
1 parent
f8f241b
commit 0d3b7a8
Showing
5 changed files
with
94 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from typing import Any, Callable | ||
|
||
from dlup.geometry import DlupPoint, DlupPolygon | ||
|
||
class Polygon: | ||
@property | ||
def fields(self) -> list[str]: ... | ||
def get_exterior(self) -> list[tuple[float, float]]: ... | ||
def get_interiors(self) -> list[list[tuple[float, float]]]: ... | ||
|
||
def set_polygon_factory(factory: Callable[[Polygon], DlupPolygon]) -> None: ... | ||
|
||
class Point: | ||
@property | ||
def fields(self) -> list[str]: ... | ||
def scale(self, scaling: float, origin: DlupPoint) -> None: ... | ||
def get_coordinates(self) -> tuple[float, float]: ... | ||
|
||
def set_point_factory(factory: Callable[[Point], DlupPoint]) -> None: ... | ||
|
||
class GeometryCollection: | ||
def add_polygon(self, polygon: Polygon) -> None: ... | ||
def add_point(self, point: Point) -> None: ... | ||
@property | ||
def polygons(self) -> list[DlupPolygon]: ... | ||
@property | ||
def points(self) -> list[DlupPoint]: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters