mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
22 lines
456 B
Python
22 lines
456 B
Python
from __future__ import annotations
|
|
|
|
import typing
|
|
import os
|
|
import sys
|
|
import logging
|
|
|
|
from .. import note, app
|
|
|
|
|
|
@note.note_class("PrintVersion", 3)
|
|
class PrintVersion(note.LaunchNote):
|
|
"""打印版本信息
|
|
"""
|
|
|
|
async def need_show(self) -> bool:
|
|
return True
|
|
|
|
async def yield_note(self) -> typing.AsyncGenerator[typing.Tuple[str, int], None]:
|
|
|
|
yield f"当前版本:{self.ap.ver_mgr.get_current_version()}", logging.INFO
|