libraries/botbuilder-core/botbuilder/core/turn_context.py
def activity(self, value):
        """
        Used to set TurnContext._activity when a context object is created. Only takes instances of Activities.
        :param value:
        :return:
        """
        if not isinstance(value, Activity):
            raise TypeError('TurnContext: cannot set `activity` to a type other than Activity.')
        else:
            self._activity = value
def activity(self, value):
        """
        Used to set TurnContext._activity when a context object is created. Only takes instances of Activities.
        :param value:
        :return:
        """
        if not isinstance(value, Activity):
            raise TypeError('TurnContext: cannot set `activity` to a type other than Activity.')
        else:
            self._activity = value
def activity ( self , value ) : if not isinstance ( value , Activity ) : raise TypeError ( 'TurnContext: cannot set `activity` to a type other than Activity.' ) else : self . _activity = value
Used to set TurnContext._activity when a context object is created. Only takes instances of Activities.
        :param value:
        :return:
Used to set TurnContext . _activity when a context object is created . Only takes instances of Activities . : param value : : return :