Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pyrogram/types/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.

from typing import NoReturn

import pyrogram


class Update:
def stop_propagation(self):
def stop_propagation(self) -> NoReturn:
raise pyrogram.StopPropagation

def continue_propagation(self):
def continue_propagation(self) -> NoReturn:
raise pyrogram.ContinuePropagation
Loading