mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Type hint for CommandStart
This commit is contained in:
parent
23f68628d5
commit
ade5b8c2c9
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import inspect
|
||||
import re
|
||||
import typing
|
||||
from contextvars import ContextVar
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any, Dict, Iterable, Optional, Union
|
||||
|
|
@ -93,7 +94,8 @@ class Command(Filter):
|
|||
|
||||
|
||||
class CommandStart(Command):
|
||||
def __init__(self, deep_link=None):
|
||||
def __init__(self, deep_link: typing.Optional[str, re.Pattern] = None):
|
||||
|
||||
super(CommandStart, self).__init__(['start'])
|
||||
self.deep_link = deep_link
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue