From c802be289c40f896e910a4f34f1ce27aedc44a0b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 29 Dec 2022 17:06:50 -0500 Subject: refactor: @contract is completely gone --- coverage/misc.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'coverage/misc.py') diff --git a/coverage/misc.py b/coverage/misc.py index 2505e871..0da7f398 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -91,16 +91,6 @@ def import_third_party(modname): return None -# We don't use PyContracts anymore, but the @contracts decorators will be -# useful info when it comes time to add type annotations, so keep them as -# dummies for now. -def contract(*args_unused, **kwargs_unused): - """Dummy no-op implementation of a decorator with arguments.""" - def _decorator(func): - return func - return _decorator - - def nice_pair(pair): """Make a nice string representation of a pair of numbers. -- cgit v1.2.1