Use basedpyright refactor
This commit is contained in:
@@ -24,7 +24,7 @@ LINK_RES = {
|
||||
}
|
||||
|
||||
|
||||
def guess_link_type(url: str) -> Optional[model.LinkType]:
|
||||
def guess_link_type(url: str) -> model.LinkType | None:
|
||||
for link_type, regexes in LINK_RES.items():
|
||||
for regex in regexes:
|
||||
if regex.match(url):
|
||||
|
||||
Reference in New Issue
Block a user