Galaxie Shell 0.2.6 documentation


Navigation:   | Index   | Search   | Top   | Up   |
Table of Content: |

© Copyright 2020-2024, Galaxie Shell Team.

Top » Module code » glxshell.lib.alias

Source code for glxshell.lib.alias

[docs] class GLXAlias: def __init__(self): self.__alias = None self.alias = None @property def alias(self): """ Return the alias property value """ return self.__alias @alias.setter def alias(self, value): """ Set the alias property value :param value: the property value :type value: dict or None :raise TypeError: when the property value is not a dict type or None """ if value is None: value = {} if value and not isinstance(value, dict): raise TypeError("'alias' property value must be a dict type or None") if self.alias != value: self.__alias = value

Top » Module code » glxshell.lib.alias

© Copyright 2020-2024, Galaxie Shell Team.
This page is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC BY-NC-SA 4.0).
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

Last updated on None.
Created using Sphinx 8.0.2.