fix linter warnings
This commit is contained in:
parent
f4e9816894
commit
e94988e4f2
3 changed files with 2 additions and 4 deletions
|
@ -1 +0,0 @@
|
||||||
|
|
|
@ -3,8 +3,6 @@ import argparse
|
||||||
import gemi
|
import gemi
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
prog = "gemi-server",
|
prog = "gemi-server",
|
||||||
|
@ -20,6 +18,7 @@ parser.add_argument(
|
||||||
type = gemi.resolve_path,
|
type = gemi.resolve_path,
|
||||||
default = "~/.config/barkshark/gemi-server/static"
|
default = "~/.config/barkshark/gemi-server/static"
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument("-v", "--version", action = "store_true")
|
parser.add_argument("-v", "--version", action = "store_true")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -309,7 +309,7 @@ class FileRoute(BaseRoute):
|
||||||
|
|
||||||
self.router = router
|
self.router = router
|
||||||
self.path: str = path
|
self.path: str = path
|
||||||
self.regex = None
|
self.regex = None # type: ignore
|
||||||
|
|
||||||
|
|
||||||
def match(self, path: str) -> Match:
|
def match(self, path: str) -> Match:
|
||||||
|
|
Loading…
Reference in a new issue