medcat.utils.config_utils
Exceptions
Inappropriate argument value (of correct type). |
Functions
|
Context manager to change the config temporarily (within). |
Module Contents
- medcat.utils.config_utils.temp_changed_config(config, target, value)
Context manager to change the config temporarily (within).
- Parameters:
config (BaseModel) – The config in question.
target (str) – The attribute name to change.
value (Any) – The temporary value to use.
- Raises:
IllegalConfigPathException – If no previous value is available.
- exception medcat.utils.config_utils.IllegalConfigPathException(target_path)
Bases:
ValueErrorInappropriate argument value (of correct type).
- Parameters:
target_path (str)
- __init__(target_path)
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
target_path (str)
- class __cause__
exception cause
- class __context__
exception context
- __delattr__()
Implement delattr(self, name).
- __dir__()
Default dir() implementation.
- __eq__()
Return self==value.
- __format__()
Default object formatter.
- __ge__()
Return self>=value.
- __getattribute__()
Return getattr(self, name).
- __gt__()
Return self>value.
- __hash__()
Return hash(self).
- __le__()
Return self<=value.
- __lt__()
Return self<value.
- __ne__()
Return self!=value.
- __new__()
Create and return a new object. See help(type) for accurate signature.
- __reduce__()
- __reduce_ex__()
Helper for pickle.
- __repr__()
Return repr(self).
- __setattr__()
Implement setattr(self, name, value).
- __setstate__()
- __sizeof__()
Size of object in memory, in bytes.
- __str__()
Return str(self).
- __subclasshook__()
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
- class __suppress_context__
- class __traceback__
- class args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.