aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/swift.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-06-14 00:42:26 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-07-03 14:11:31 -0400
commit0703ee0aef68e235c1e22d6448b79dfbbb5c8039 (patch)
tree0f7ba031362d926b726852d2070ecc8377bdb5bd /mesonbuild/compilers/swift.py
parent46148f923b196e1b1d004e68d43edc2daca4dd25 (diff)
downloadmeson-0703ee0aef68e235c1e22d6448b79dfbbb5c8039.zip
meson-0703ee0aef68e235c1e22d6448b79dfbbb5c8039.tar.gz
meson-0703ee0aef68e235c1e22d6448b79dfbbb5c8039.tar.bz2
move various unused typing-only imports into type-checking blocks
Diffstat (limited to 'mesonbuild/compilers/swift.py')
-rw-r--r--mesonbuild/compilers/swift.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/compilers/swift.py b/mesonbuild/compilers/swift.py
index a2b57b8..2e427f1 100644
--- a/mesonbuild/compilers/swift.py
+++ b/mesonbuild/compilers/swift.py
@@ -11,11 +11,12 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import annotations
import subprocess, os.path
import typing as T
-from ..mesonlib import EnvironmentException, MachineChoice
+from ..mesonlib import EnvironmentException
from .compilers import Compiler, swift_buildtype_args, clike_debug_args
@@ -23,6 +24,7 @@ if T.TYPE_CHECKING:
from ..envconfig import MachineInfo
from ..environment import Environment
from ..linkers import DynamicLinker
+ from ..mesonlib import MachineChoice
swift_optimization_args = {
'0': [],