File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 6
6
This module contains the very simple API provided by uritemplate.
7
7
8
8
"""
9
+
9
10
import typing as t
10
11
11
12
from uritemplate import variable
Original file line number Diff line number Diff line change 14
14
>
15
15
16
16
"""
17
+
17
18
import re
18
19
import typing as t
19
20
@@ -35,7 +36,6 @@ def _merge(
35
36
36
37
37
38
class URITemplate :
38
-
39
39
"""This parses the template and will be used to expand it.
40
40
41
41
This is the most important object as the center of the API.
Original file line number Diff line number Diff line change 14
14
>
15
15
16
16
"""
17
+
17
18
import collections .abc
18
19
import typing as t
19
20
import urllib .parse
29
30
30
31
31
32
class URIVariable :
32
-
33
33
"""This object validates everything inside the URITemplate object.
34
34
35
35
It validates template expansions and will truncate length as decided by
@@ -59,9 +59,9 @@ def __init__(self, var: str):
59
59
#: List of safe characters when quoting the string
60
60
self .safe : str = ""
61
61
#: 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
+ )
65
65
#: List of variable names
66
66
self .variable_names : t .List [str ] = []
67
67
#: List of defaults passed in
You can’t perform that action at this time.
0 commit comments