From dae5a014ccbfe5a99379163b49e426eeb0b9e766 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 19 Nov 2025 12:40:29 -0500 Subject: Improve python api type hints --- python/enterprise.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/enterprise.py') diff --git a/python/enterprise.py b/python/enterprise.py index 1ab04fdd..83a95c27 100644 --- a/python/enterprise.py +++ b/python/enterprise.py @@ -320,7 +320,7 @@ class LicenseCheckout: """ Helper class for scripts to make use of a license checkout in a scope. - :param duration: Duration between refreshes + :param duration: Duration in seconds between refreshes :param _cache: Deprecated but left in for compatibility :param release: If the license should be released at the end of scope. If `False`, you can either manually release it later or it will expire after `duration`. @@ -334,11 +334,11 @@ class LicenseCheckout: ... print(hex(bv.start)) # License is released at end of scope """ - def __init__(self, duration=900, _cache=True, release=True): + def __init__(self, duration: int = 900, _cache: bool = True, release: bool = True): """ Get a new license checkout - :param duration: Duration between refreshes + :param duration: Duration in seconds between refreshes :param _cache: Deprecated but left in for compatibility :param release: If the license should be released at the end of scope. If `False`, you can either manually release it later or it will expire after `duration`. -- cgit v1.3.1