Skip to content

Commit 3447c33

Browse files
remove macos-13 from workflows and update the type stub to accommodate the latest numpy version (#79)
fixes #78 and updates the type stub to accommodate the breaking change introduced in the latest numpy release
2 parents f0538da + 0feacd5 commit 3447c33

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
strategy:
6868
fail-fast: false
6969
matrix:
70-
os: ["ubuntu-24.04", "ubuntu-24.04-arm", "macos-13", "macos-14"]
70+
os: ["ubuntu-24.04", "ubuntu-24.04-arm", "macos-14"]
7171

7272
runs-on: ${{ matrix.os }}
7373

.github/workflows/prerelease.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
arch: auto
4242
- os: macos-14
4343
arch: auto
44-
- os: macos-13
45-
arch: auto
4644

4745
steps:
4846
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/stable-release-workflow.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
arch: auto
4141
- os: macos-14
4242
arch: auto
43-
- os: macos-13
44-
arch: auto
4543

4644
steps:
4745
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

tunits/core/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ class Value(Generic[NumericalT], WithUnit, np.generic, SupportsIndex):
229229
real: 'Value'
230230
imag: 'Value'
231231

232+
# needed because np.generic declars __new__ as abstract.
233+
def __new__(cls: type[T], *args: Any, **kwargs: Any) -> T: ...
232234
@classmethod
233235
def from_proto(cls: type[T], msg: tunits_pb2.Value) -> T: ...
234236
def to_proto(self, msg: tunits_pb2.Value | None = None) -> tunits_pb2.Value: ...

0 commit comments

Comments
 (0)