Skip to content

Commit 16fb8b3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 40e01c4 commit 16fb8b3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

uritemplate/api.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
This module contains the very simple API provided by uritemplate.
77
88
"""
9+
910
import typing as t
1011

1112
from uritemplate import variable

uritemplate/template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
>
1515
1616
"""
17+
1718
import re
1819
import typing as t
1920

@@ -35,7 +36,6 @@ def _merge(
3536

3637

3738
class 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.

uritemplate/variable.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
>
1515
1616
"""
17+
1718
import collections.abc
1819
import typing as t
1920
import urllib.parse
@@ -29,7 +30,6 @@
2930

3031

3132
class 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

0 commit comments

Comments
 (0)