This commit is contained in:
Maximilien Rigaut 2022-06-20 17:38:41 +00:00 committed by GitHub
commit 9ce9936546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -104,3 +104,12 @@ class Environment:
f'\nSecondary parameters:\n{self._sParams}'
f'\nReserved parameters are preceded with an underscore.'
), 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}'