Re-add type hint override for ensure_started
This commit is contained in:
@@ -159,6 +159,9 @@ class User(AbstractUser):
|
|||||||
# endregion
|
# endregion
|
||||||
# region Telegram connection management
|
# region Telegram connection management
|
||||||
|
|
||||||
|
def ensure_started(self, even_if_no_session=False) -> Awaitable['User']:
|
||||||
|
return super().ensure_started(even_if_no_session)
|
||||||
|
|
||||||
async def start(self, delete_unless_authenticated: bool = False) -> 'User':
|
async def start(self, delete_unless_authenticated: bool = False) -> 'User':
|
||||||
await super().start()
|
await super().start()
|
||||||
if await self.is_logged_in():
|
if await self.is_logged_in():
|
||||||
@@ -396,7 +399,7 @@ class User(AbstractUser):
|
|||||||
# endregion
|
# endregion
|
||||||
|
|
||||||
|
|
||||||
def init(context: 'Context') -> List[Awaitable['AbstractUser']]:
|
def init(context: 'Context') -> List[Awaitable['User']]:
|
||||||
global config
|
global config
|
||||||
config = context.config
|
config = context.config
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user