Skip to content

Commit 071ec81

Browse files
committed
chore(mypy): Add typings exc
1 parent 083f5f8 commit 071ec81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tmuxp/exc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ class TmuxpPluginException(TmuxpException):
8080

8181

8282
class BeforeLoadScriptNotExists(OSError):
83-
def __init__(self, *args, **kwargs) -> None:
83+
def __init__(self, *args: object, **kwargs: object) -> None:
8484
super().__init__(*args, **kwargs)
8585

86-
self.strerror = "before_script file '%s' doesn't exist." % self.strerror
86+
self.strerror = f"before_script file '{self.strerror}' doesn't exist."
8787

8888

8989
@implements_to_string
@@ -106,5 +106,5 @@ def __init__(
106106
f"{self.output}"
107107
)
108108

109-
def __str__(self):
109+
def __str__(self) -> str:
110110
return self.message

0 commit comments

Comments
 (0)