Ruff
This commit is contained in:
parent
d71db727d5
commit
10f71be39b
|
@ -211,14 +211,15 @@ RE_ID = r'@?([^\s/]+)'
|
||||||
RE_DUAL_ID = r'@?([^\s/]+/[^\s/]+)'
|
RE_DUAL_ID = r'@?([^\s/]+/[^\s/]+)'
|
||||||
RE_ANY_SUBPATH = r'(|\/|\/\S*)$'
|
RE_ANY_SUBPATH = r'(|\/|\/\S*)$'
|
||||||
|
|
||||||
SPECIAL_REGEX_LITERALS = frozenset({RE_ID, RE_DUAL_ID, RE_ANY_SUBPATH,
|
SPECIAL_REGEX_LITERALS = frozenset(
|
||||||
RE_ID_AT, RE_ID_NOAT})
|
{RE_ID, RE_DUAL_ID, RE_ANY_SUBPATH, RE_ID_AT, RE_ID_NOAT},
|
||||||
|
)
|
||||||
REGEX_LITERALS_TO_FORMATTER = {
|
REGEX_LITERALS_TO_FORMATTER = {
|
||||||
RE_ID: '{id}',
|
RE_ID: '{id}',
|
||||||
RE_ID_AT: '@{id}',
|
RE_ID_AT: '@{id}',
|
||||||
RE_ID_NOAT: '{id}',
|
RE_ID_NOAT: '{id}',
|
||||||
RE_DUAL_ID: '{id}',
|
RE_DUAL_ID: '{id}',
|
||||||
RE_ANY_SUBPATH: '',
|
RE_ANY_SUBPATH: '',
|
||||||
}
|
}
|
||||||
DOES_NOT_NEED_AUTO_SLASH = frozenset({RE_ANY_SUBPATH})
|
DOES_NOT_NEED_AUTO_SLASH = frozenset({RE_ANY_SUBPATH})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user