2024-07-03 17:34:23 +08:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
import typing
|
|
|
|
|
|
2025-04-29 17:24:07 +08:00
|
|
|
from .. import note
|
2024-07-03 17:34:23 +08:00
|
|
|
|
|
|
|
|
|
2025-04-29 17:24:07 +08:00
|
|
|
@note.note_class('ClassicNotes', 1)
|
2024-07-03 17:34:23 +08:00
|
|
|
class ClassicNotes(note.LaunchNote):
|
2025-07-10 11:01:16 +08:00
|
|
|
"""Classic launch information"""
|
2024-07-03 17:34:23 +08:00
|
|
|
|
|
|
|
|
async def need_show(self) -> bool:
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
async def yield_note(self) -> typing.AsyncGenerator[typing.Tuple[str, int], None]:
|
|
|
|
|
yield await self.ap.ann_mgr.show_announcements()
|
|
|
|
|
|
2025-04-29 17:24:07 +08:00
|
|
|
yield await self.ap.ver_mgr.show_version_update()
|