Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Oct 9, 2020
1 parent a5892df commit bf1b946
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions sphinx_toolbox/more_autodoc/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,29 +104,30 @@
import re
import sre_parse
from sre_constants import (
ANY,
AT,
AT_BEGINNING,
AT_BEGINNING_STRING,
AT_BOUNDARY,
AT_END,
AT_END_STRING,
AT_NON_BOUNDARY,
BRANCH,
CATEGORY,
CATEGORY_DIGIT,
CATEGORY_NOT_DIGIT,
CATEGORY_NOT_SPACE,
CATEGORY_NOT_WORD,
CATEGORY_SPACE,
CATEGORY_WORD,
IN,
LITERAL,
MAX_REPEAT,
MAXREPEAT,
MIN_REPEAT, RANGE,
SUBPATTERN,
)
ANY,
AT,
AT_BEGINNING,
AT_BEGINNING_STRING,
AT_BOUNDARY,
AT_END,
AT_END_STRING,
AT_NON_BOUNDARY,
BRANCH,
CATEGORY,
CATEGORY_DIGIT,
CATEGORY_NOT_DIGIT,
CATEGORY_NOT_SPACE,
CATEGORY_NOT_WORD,
CATEGORY_SPACE,
CATEGORY_WORD,
IN,
LITERAL,
MAX_REPEAT,
MAXREPEAT,
MIN_REPEAT,
RANGE,
SUBPATTERN
)
from textwrap import dedent
from typing import Any, Callable, List, Pattern, Tuple

Expand Down Expand Up @@ -443,7 +444,6 @@ def _parse_pattern(pattern):
# print(min_, max_, item)
# input(">>>")


if what is CATEGORY:
if content is CATEGORY_DIGIT:
buf.append(type(self).CATEGORY_COLOUR(r"\d"))
Expand Down
2 changes: 1 addition & 1 deletion stubs.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Type stubs
docutils-stubs
git+https://github.com/domdfcoding/pytest-regressions-stubs
git+https://github.com/domdfcoding/pytest-regressions-stubs

0 comments on commit bf1b946

Please sign in to comment.