Skip to content

Commit

Permalink
Actually check whether dest is abstract before issuing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed Nov 4, 2024
1 parent 75da43d commit 0a28e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpv/commands/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0a28e1a

Please sign in to comment.