Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 3, 2024
1 parent 65a6f29 commit cba388b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions uritemplate/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
This module contains the very simple API provided by uritemplate.
"""

import typing as t

from uritemplate import variable
Expand Down
2 changes: 1 addition & 1 deletion uritemplate/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
>
"""

import re
import typing as t

Expand All @@ -35,7 +36,6 @@ def _merge(


class URITemplate:

"""This parses the template and will be used to expand it.
This is the most important object as the center of the API.
Expand Down
8 changes: 4 additions & 4 deletions uritemplate/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
>
"""

import collections.abc
import typing as t
import urllib.parse
Expand All @@ -29,7 +30,6 @@


class URIVariable:

"""This object validates everything inside the URITemplate object.
It validates template expansions and will truncate length as decided by
Expand Down Expand Up @@ -59,9 +59,9 @@ def __init__(self, var: str):
#: List of safe characters when quoting the string
self.safe: str = ""
#: List of variables in this variable
self.variables: t.List[
t.Tuple[str, t.MutableMapping[str, t.Any]]
] = []
self.variables: t.List[t.Tuple[str, t.MutableMapping[str, t.Any]]] = (
[]
)
#: List of variable names
self.variable_names: t.List[str] = []
#: List of defaults passed in
Expand Down

0 comments on commit cba388b

Please sign in to comment.