File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1717"""
1818
1919from __future__ import annotations
20- import importlib
2120import os
2221import pathlib
2322import shutil
2423import signal
2524import sys
26- import typing
2725
2826from pkg_resources import get_distribution , DistributionNotFound
2927from setuptools_scm import get_version
3028from loam .manager import ConfigurationManager
3129
3230from . import config
3331
34- if typing .TYPE_CHECKING :
35- from typing import Any
36-
3732
3833def _env (var : str ) -> bool :
3934 """Return whether var is set to True."""
@@ -74,7 +69,7 @@ def _check_config():
7469
7570def load_mplstyle ():
7671 """Try to load conf.plot.mplstyle matplotlib style."""
77- plt : Any = importlib . import_module ( ' matplotlib.pyplot' )
72+ import matplotlib .pyplot as plt
7873 if conf .plot .mplstyle :
7974 for style in conf .plot .mplstyle .split ():
8075 found = False
Original file line number Diff line number Diff line change 11"""The stagpy module is callable."""
22
3- import importlib
43import signal
54import sys
65import warnings
@@ -13,8 +12,7 @@ def main():
1312 if not DEBUG :
1413 signal .signal (signal .SIGINT , sigint_handler )
1514 warnings .simplefilter ('ignore' )
16- args = importlib .import_module ('stagpy.args' )
17- error = importlib .import_module ('stagpy.error' )
15+ from . import args , error
1816 try :
1917 args .parse_args ()()
2018 except error .StagpyError as err :
You can’t perform that action at this time.
0 commit comments