Skip to content

Commit d8ea750

Browse files
committed
Merge remote-tracking branch 'origin/main' into geometry-rewrite
* origin/main: Fix mypy typing for _requires_plot() Fix release note PR link
2 parents 707613d + 4c6d724 commit d8ea750

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/releases/development.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Changelog
7676
It was getting unruly in size and was about to become larger again.
7777
The documentation has been updated to match the conceptual divisions.
7878
The new layout makes it easier to support matplotlib as an optional dependency
79-
(:pr:`207`).
79+
(:pr:`208`).
8080
* The handling of multiple grid kinds was rewritten from the ground up
8181
to properly support conventions like `unstructured grids <ugrid_>`_
8282
(:pr:`205`, also :issue:`189`, :issue:`175`, :issue:`121`, and :pr:`187`).

src/emsarray/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,9 @@ def requires_extra[T](
736736
exception_class: type[RequiresExtraException] = RequiresExtraException,
737737
) -> Callable[[T], T]:
738738
if import_error is None:
739-
return lambda fn: fn
739+
def noop(fn: T) -> T:
740+
return fn
741+
return noop
740742

741743
def error_decorator(fn: T) -> T:
742744
@functools.wraps(fn) # type: ignore

0 commit comments

Comments
 (0)