Skip to content

Commit 8672a5c

Browse files
committed
sourceline.py: replace AnyStr with Text type
1 parent 740e235 commit 8672a5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

schema_salad/sourceline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ def _add_lc_filename(r, source): # type: (ruamel.yaml.comments.CommentedBase, A
2020
for d in six.itervalues(r):
2121
_add_lc_filename(d, source)
2222

23-
def relname(source): # type: (AnyStr) -> AnyStr
23+
def relname(source): # type: (Text) -> Text
2424
if source.startswith("file://"):
2525
source = source[7:]
2626
source = os.path.relpath(source)
2727
return source
2828

29-
def add_lc_filename(r, source): # type: (ruamel.yaml.comments.CommentedBase, AnyStr) -> None
29+
def add_lc_filename(r, source): # type: (ruamel.yaml.comments.CommentedBase, Text) -> None
3030
_add_lc_filename(r, relname(source))
3131

32-
def reflow(text, maxline, shift=""): # type: (AnyStr, int, AnyStr) -> AnyStr
32+
def reflow(text, maxline, shift=""): # type: (Text, int, Text) -> Text
3333
if maxline < 20:
3434
maxline = 20
3535
if len(text) > maxline:

0 commit comments

Comments
 (0)