Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2299f93

Browse filesBrowse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent cc838b5 commit 2299f93
Copy full SHA for 2299f93

File tree

Expand file treeCollapse file tree

1 file changed

+2
-11
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-11
lines changed

‎stdlib/string/templatelib.pyi

Copy file name to clipboard
+2-11Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
from typing import Any, Literal, Iterator, final
22

3-
__all__ = [
4-
"Interpolation",
5-
"Template",
6-
]
7-
3+
__all__ = ["Interpolation", "Template"]
84

95
@final
106
class Template:
@@ -17,7 +13,6 @@ class Template:
1713
@property
1814
def values(self) -> tuple[Any, ...]: ...
1915

20-
2116
@final
2217
class Interpolation:
2318
value: Any # TODO: consider making `Interpolation` generic in runtime
@@ -28,9 +23,5 @@ class Interpolation:
2823
__match_args__ = ("value", "expression", "conversion", "format_spec")
2924

3025
def __new__(
31-
cls,
32-
value: Any,
33-
expression: str,
34-
conversion: Literal["a", "r", "s"] | None = None,
35-
format_spec: str = "",
26+
cls, value: Any, expression: str, conversion: Literal["a", "r", "s"] | None = None, format_spec: str = ""
3627
) -> Interpolation: ...

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.