ATLAS Offline Software
Classes | Functions | Variables
python.ConfigAccumulator Namespace Reference

Classes

class  ConfigAccumulator
 
class  ContainerConfig
 
class  DataType
 
class  OutputConfig
 
class  SelectionConfig
 

Functions

def deprecated (str reason="")
 

Variables

 deprecationWarningCategory = FutureWarning
 

Function Documentation

◆ deprecated()

def python.ConfigAccumulator.deprecated ( str   reason = "")

Definition at line 13 of file ConfigAccumulator.py.

13 def deprecated(reason: str = ""):
14  def decorator(func):
15  message = f"{func.__qualname__} is deprecated."
16  if reason:
17  message += " " + reason
18 
19  @functools.wraps(func)
20  def wrapper(*args, **kwargs):
21  warnings.warn(
22  message,
23  category=deprecationWarningCategory,
24  stacklevel=2,
25  )
26  return func(*args, **kwargs)
27 
28  return wrapper
29  return decorator
30 

Variable Documentation

◆ deprecationWarningCategory

python.ConfigAccumulator.deprecationWarningCategory = FutureWarning

Definition at line 12 of file ConfigAccumulator.py.

python.ConfigAccumulator.deprecated
def deprecated(str reason="")
Definition: ConfigAccumulator.py:13