Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the development-dependencies group with 4 updates #425

Merged
merged 2 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ install:
update-deps:
poetry update

lint:
isort --check --diff vsketch vsketch_cli examples tests
black --check --diff vsketch vsketch_cli examples tests
mypy

# run all tests
test:
pytest
Expand Down
72 changes: 36 additions & 36 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions vsketch/curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ def _cubic_bezier(
x4: float,
y4: float,
positions: float,
) -> tuple[float, float]:
...
) -> tuple[float, float]: ...


@overload
Expand All @@ -32,8 +31,7 @@ def _cubic_bezier(
x4: float,
y4: float,
positions: np.ndarray,
) -> tuple[np.ndarray, np.ndarray]:
...
) -> tuple[np.ndarray, np.ndarray]: ...


def _cubic_bezier(
Expand Down Expand Up @@ -122,8 +120,7 @@ def _cubic_bezier_tangent(
x4: float,
y4: float,
positions: float,
) -> tuple[float, float]:
...
) -> tuple[float, float]: ...


@overload
Expand All @@ -137,8 +134,7 @@ def _cubic_bezier_tangent(
x4: float,
y4: float,
positions: np.ndarray,
) -> tuple[np.ndarray, np.ndarray]:
...
) -> tuple[np.ndarray, np.ndarray]: ...


def _cubic_bezier_tangent(
Expand Down
16 changes: 9 additions & 7 deletions vsketch/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,15 @@ def polygon(

def geometry(
self,
shape: LineString
| LinearRing
| MultiPoint
| MultiPolygon
| MultiLineString
| Point
| Polygon,
shape: (
LineString
| LinearRing
| MultiPoint
| MultiPolygon
| MultiLineString
| Point
| Polygon
),
op: BooleanOperation = "union",
) -> None:
"""Add a Shapely geometry to the shape.
Expand Down
6 changes: 2 additions & 4 deletions vsketch/sketch_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,10 @@ def set_value_with_validation(self, v: Any) -> bool:
return True

@overload
def __get__(self, instance: None, owner: None) -> Param:
...
def __get__(self, instance: None, owner: None) -> Param: ...

@overload
def __get__(self, instance: object, owner: type[object]) -> _T:
...
def __get__(self, instance: object, owner: type[object]) -> _T: ...

def __get__(
self, instance: object | None, owner: type[object] | None = None
Expand Down
12 changes: 4 additions & 8 deletions vsketch/vsketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,8 +1613,7 @@ def noise(
y: float | None = None,
z: float | None = None,
grid_mode: bool = True,
) -> float:
...
) -> float: ...

@overload
def noise(
Expand All @@ -1623,8 +1622,7 @@ def noise(
y: None | float | Sequence[float] | np.ndarray = None,
z: None | float | Sequence[float] | np.ndarray = None,
grid_mode: bool = True,
) -> np.ndarray:
...
) -> np.ndarray: ...

def noise(self, x, y=None, z=None, grid_mode=True):
"""Returns the Perlin noise value at specified coordinates.
Expand Down Expand Up @@ -1817,8 +1815,7 @@ def easing(
low_dead: float = 0.0,
high_dead: float = 0.0,
param: float = 10,
) -> float:
...
) -> float: ...

# noinspection PyNestedDecorators
@overload
Expand All @@ -1833,8 +1830,7 @@ def easing(
low_dead: float = 0.0,
high_dead: float = 0.0,
param: float = 10,
) -> np.ndarray:
...
) -> np.ndarray: ...

@staticmethod
def easing(
Expand Down
Loading