Skip to content

Commit

Permalink
chore: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Dec 20, 2024
1 parent 4baf3bb commit f5ddc2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkdocs_mknodes/liveserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def _build_loop(self):
self._visible_epoch = self._wanted_epoch
self._epoch_cond.notify_all()

def shutdown(self, wait=False) -> None:
def shutdown(self, wait: bool = False) -> None:
self.observer.stop()
with self._rebuild_cond:
self._shutdown = True
Expand Down Expand Up @@ -367,7 +367,7 @@ def log_request(self, code: str | int = "-", size: str | int = "-"):
level = logging.DEBUG if str(code) == "200" else logging.WARNING
logger.log(level, "%r code %r", self.requestline, code)

def log_message(self, format, *args): # noqa: A002
def log_message(self, format: str, *args: Any): # noqa: A002
logger.debug(format, *args)


Expand Down

0 comments on commit f5ddc2b

Please sign in to comment.