ndk/stack.py
def push(self, obj):
        """Push a new Nagios Object to this stack.

        Args:
            obj (NagiosObject): The base class of Nagios.
        """
        construct = import_module('.construct', package='ndk')
        assert isinstance(
            obj, construct.Construct), f'{obj} must be Construct instance'
        self.objects[obj.__object_type__][obj.pk] = obj
Push a new Nagios Object to this stack.

        Args:
            obj (NagiosObject): The base class of Nagios.
        
Push a new Nagios Object to this stack.
Push a new Nagios Object to this stack .
def push(self, obj):
        construct = import_module('.construct', package='ndk')
        assert isinstance(
            obj, construct.Construct), f'{obj} must be Construct instance'
        self.objects[obj.__object_type__][obj.pk] = obj
def push ( self , obj ) : construct = import_module ( '.construct' , package = 'ndk' ) assert isinstance ( obj , construct . Construct ) , f'{obj} must be Construct instance' self . objects [ obj . __object_type__ ] [ obj . pk ] = obj
Push a new Nagios Object to this stack.
Push a new Nagios Object to this stack .
"""Push a new Nagios Object to this stack.

        Args:
            obj (NagiosObject): The base class of Nagios.
        """
self
obj
The base class of Nagios.
The base class of Nagios .