From 0a28e1ae630dc2920bb33502b66df8da3dbe570c Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Mon, 4 Nov 2024 16:40:14 -0500 Subject: [PATCH] Actually check whether dest is abstract before issuing warning --- tpv/commands/linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpv/commands/linter.py b/tpv/commands/linter.py index 4daef5b..fd147c7 100644 --- a/tpv/commands/linter.py +++ b/tpv/commands/linter.py @@ -69,7 +69,7 @@ def lint(self): f"max_accepted_cores/mem/gpus. This is probably an error. If you're migrating from an older " f"version of TPV, the destination properties for cores/mem/gpus have been superseded by the " f"max_accepted_cores/mem/gpus property. Simply renaming them will give you the same functionality.") - if default_inherits == destination.id: + if default_inherits == destination.id and not destination.abstract: self.add_warning( destination, "T101",