diff options
| author | Josh Ferrell <josh@vector35.com> | 2025-11-19 12:40:29 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2025-11-19 15:05:16 -0500 |
| commit | dae5a014ccbfe5a99379163b49e426eeb0b9e766 (patch) | |
| tree | 7e6d66c5dec8620f7299ed3e0e6c756875e871b1 /python/enterprise.py | |
| parent | d4a7ed9b8fce07ce7206d4ab48b0b333ae69d47a (diff) | |
Improve python api type hints
Diffstat (limited to 'python/enterprise.py')
| -rw-r--r-- | python/enterprise.py | 6 |
1 files changed, 3 insertions, 3 deletions
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`. |
