Skip to content

Commit f8d768f

Browse files
committed
tidy up imports
1 parent 411f498 commit f8d768f

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
import sys
3+
34
import lint_lib.lint as lint
45

56
sys.exit(lint.main())

lint_lib/lint.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
import sys
88
from collections import Counter
99
from os.path import dirname, join, pardir, relpath
10-
11-
from ._vendor.funcparserlib.parser import NoParseError
10+
from typing import Any, Dict, List, Optional, Set, TypeVar
1211

1312
from . import parser
14-
from typing import Any, Dict, List, Optional, Set, TypeVar
13+
from ._vendor.funcparserlib.parser import NoParseError
1514

1615
text_type = str
1716
binary_type = bytes

lint_lib/parser.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
import re
2+
from typing import Callable, List, Optional, Tuple, Type, TypeVar, Union
23

3-
from ._vendor.funcparserlib.lexer import Token, LexerError
4+
from ._vendor.funcparserlib.lexer import LexerError, Token
45
from ._vendor.funcparserlib.parser import (
5-
Parser,
66
NoParseError,
7+
Parser,
8+
_Tuple,
79
finished,
810
many,
911
pure,
1012
skip,
1113
some,
1214
tok,
1315
)
14-
from lint_lib._vendor.funcparserlib.lexer import Token
15-
from lint_lib._vendor.funcparserlib.parser import Parser, _Tuple
16-
from typing import Callable, List, Optional, Tuple, Type, Union, TypeVar
1716

1817
text_type = str
1918
binary_type = bytes

0 commit comments

Comments
 (0)