File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 66This module contains the very simple API provided by uritemplate.
77
88"""
9+
910import typing as t
1011
1112from uritemplate import variable
Original file line number Diff line number Diff line change 1414>
1515
1616"""
17+
1718import re
1819import typing as t
1920
@@ -35,7 +36,6 @@ def _merge(
3536
3637
3738class URITemplate :
38-
3939 """This parses the template and will be used to expand it.
4040
4141 This is the most important object as the center of the API.
Original file line number Diff line number Diff line change 1414>
1515
1616"""
17+
1718import collections .abc
1819import typing as t
1920import urllib .parse
2930
3031
3132class URIVariable :
32-
3333 """This object validates everything inside the URITemplate object.
3434
3535 It validates template expansions and will truncate length as decided by
@@ -59,9 +59,9 @@ def __init__(self, var: str):
5959 #: List of safe characters when quoting the string
6060 self .safe : str = ""
6161 #: List of variables in this variable
62- self .variables : t .List [
63- t . Tuple [ str , t . MutableMapping [ str , t . Any ] ]
64- ] = []
62+ self .variables : t .List [t . Tuple [ str , t . MutableMapping [ str , t . Any ]]] = (
63+ [ ]
64+ )
6565 #: List of variable names
6666 self .variable_names : t .List [str ] = []
6767 #: List of defaults passed in
You can’t perform that action at this time.
0 commit comments