22 lines
430 B
Python
22 lines
430 B
Python
from collections import Callable
|
|
|
|
|
|
class ConsoleCall:
|
|
|
|
def __init__(self, function: Callable, *args):
|
|
"""
|
|
Represents a console call, for hold back when spinner is active
|
|
:param function:
|
|
:param args:
|
|
"""
|
|
self._func = function
|
|
self._args = args
|
|
|
|
@property
|
|
def function(self):
|
|
return self._func
|
|
|
|
@property
|
|
def args(self):
|
|
return self._args
|