mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-05 16:06:14 +02:00
Add type-checking
plugin to linting checks (#1629)
* add type-checking plugin for flakeheaven * update lock file * fix type-checking issues in current codebase * run linters
This commit is contained in:
parent
cb7e0ed289
commit
c1eb0c54a3
5 changed files with 45 additions and 8 deletions
|
@ -1,14 +1,17 @@
|
|||
# Copyright © 2012-2022 jrnl contributors
|
||||
# License: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
from typing import Mapping
|
||||
from typing import NamedTuple
|
||||
|
||||
from jrnl.messages.MsgStyle import MsgStyle
|
||||
from jrnl.messages.MsgText import MsgText
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from jrnl.messages.MsgText import MsgText
|
||||
|
||||
|
||||
class Message(NamedTuple):
|
||||
text: MsgText
|
||||
text: "MsgText"
|
||||
style: MsgStyle = MsgStyle.NORMAL
|
||||
params: Mapping = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue