aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/factory.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-04-07 22:54:55 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-05-23 16:44:08 -0400
commit1c52ac4e156c2f21d44cf800b112c5ea26878185 (patch)
tree73e782aab6354ed731174100593577d105eea23f /mesonbuild/dependencies/factory.py
parente5c7dc199a849c2d548e41900f560f554fe5665d (diff)
downloadmeson-1c52ac4e156c2f21d44cf800b112c5ea26878185.zip
meson-1c52ac4e156c2f21d44cf800b112c5ea26878185.tar.gz
meson-1c52ac4e156c2f21d44cf800b112c5ea26878185.tar.bz2
move various imports into TYPE_CHECKING blocks for neatness
Diffstat (limited to 'mesonbuild/dependencies/factory.py')
-rw-r--r--mesonbuild/dependencies/factory.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/factory.py b/mesonbuild/dependencies/factory.py
index 2844cf4..48cd5ab 100644
--- a/mesonbuild/dependencies/factory.py
+++ b/mesonbuild/dependencies/factory.py
@@ -12,11 +12,11 @@
# 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 functools
import typing as T
-from ..mesonlib import MachineChoice
from .base import DependencyException, DependencyMethods
from .base import ExternalDependency
from .base import process_method_kw
@@ -26,8 +26,9 @@ from .framework import ExtraFrameworkDependency
from .pkgconfig import PkgConfigDependency
if T.TYPE_CHECKING:
- from ..environment import Environment
from .configtool import ConfigToolDependency
+ from ..environment import Environment
+ from ..mesonlib import MachineChoice
DependencyGenerator = T.Callable[[], ExternalDependency]
FactoryFunc = T.Callable[