Fixed a lack of repr causing bugs on inspect
This commit is contained in:
parent
219fb51081
commit
2003de924b
|
|
@ -104,3 +104,12 @@ class Environment:
|
||||||
f'\nSecondary parameters:\n{self._sParams}'
|
f'\nSecondary parameters:\n{self._sParams}'
|
||||||
f'\nReserved parameters are preceded with an underscore.'
|
f'\nReserved parameters are preceded with an underscore.'
|
||||||
), level='CRITICAL') # Could also add attribute as a new entry
|
), level='CRITICAL') # Could also add attribute as a new entry
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
"""
|
||||||
|
Returns a string representation of the environment.
|
||||||
|
:return: String representation of the environment.
|
||||||
|
"""
|
||||||
|
return f'Environment object with the following parameters:\n' \
|
||||||
|
f'Mandatory parameters:\n{self._mParams}\n' \
|
||||||
|
f'Secondary parameters:\n{self._sParams}'
|
||||||
Loading…
Reference in New Issue