Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
janpipek committed Jan 23, 2025
1 parent 4dac3ed commit 9061cc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/physt/binnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import TYPE_CHECKING, cast

import numpy as np
from typing_extensions import Self
from typing_extensions import NoReturn, Self

from physt._bin_utils import (
find_pretty_width,
Expand Down Expand Up @@ -226,7 +226,7 @@ def set_adaptive(self, value: bool = True) -> None:
raise RuntimeError("Cannot change binning to adaptive.")
self._adaptive = value

def _adapt(self, other):
def _adapt(self, other) -> NoReturn:
raise RuntimeError("Cannot adapt binning.")

@property
Expand Down
4 changes: 2 additions & 2 deletions src/physt/histogram_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
if TYPE_CHECKING:
from typing import Any, Dict, Optional, Tuple

import physt
from physt.binnings import BinningLike
from physt.plotting import PlottingProxy
from physt.typing_aliases import ArrayLike


Expand Down Expand Up @@ -144,7 +144,7 @@ def sum(self) -> Histogram1D:
return cast(Histogram1D, sum(self.histograms))

@property
def plot(self) -> "physt.plotting.PlottingProxy":
def plot(self) -> "PlottingProxy":
"""Proxy to plotting.
This attribute is a special proxy to plotting. In the most
Expand Down

0 comments on commit 9061cc6

Please sign in to comment.