Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Apr 16, 2024
1 parent 253b98a commit cf95f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swig/amici.i
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ def __repr__(self):

// Handle AMICI_DLL_DIRS environment variable
%pythonbegin %{
from __future__ import annotations

import sys
import os

Expand All @@ -353,8 +355,6 @@ if sys.platform == 'win32' and (dll_dirs := os.environ.get('AMICI_DLL_DIRS')):
// import additional types for typehints
// also import np for use in __repr__ functions
%pythonbegin %{
from __future__ import annotations

from typing import TYPE_CHECKING, Iterable, Sequence
import numpy as np
if TYPE_CHECKING:
Expand Down

0 comments on commit cf95f32

Please sign in to comment.