diff --git a/conformance/results/results.html b/conformance/results/results.html index aa2fa2891..a236e7b95 100644 --- a/conformance/results/results.html +++ b/conformance/results/results.html @@ -234,6 +234,7 @@ border-color: inherit; } } + @@ -2827,4 +2828,4 @@

Python Type System Conformance Test Results

selector.value = localStorage.getItem("color-scheme") ?? "auto"; - \ No newline at end of file + diff --git a/conformance/src/reporting.py b/conformance/src/reporting.py index 63e2fd1f7..41b5949e5 100644 --- a/conformance/src/reporting.py +++ b/conformance/src/reporting.py @@ -58,6 +58,7 @@ def generate_summary(root_dir: Path): env = jinja2.Environment( loader=jinja2.FileSystemLoader(root_dir.joinpath("src/templates")), autoescape=jinja2.select_autoescape(), + keep_trailing_newline=True, ) env.filters["conformance_class"] = _conformance_class diff --git a/conformance/tests/enums_definition.py b/conformance/tests/enums_definition.py index 480a06510..955618ddf 100644 --- a/conformance/tests/enums_definition.py +++ b/conformance/tests/enums_definition.py @@ -90,4 +90,3 @@ class Color12(Enum): assert_type(Color12.RED, Literal[Color12.RED]) assert_type(Color12.GREEN, Literal[Color12.GREEN]) Color12.BLUE # E - diff --git a/conformance/tests/overloads_basic.py b/conformance/tests/overloads_basic.py index 7aee51d87..51f722dbe 100644 --- a/conformance/tests/overloads_basic.py +++ b/conformance/tests/overloads_basic.py @@ -58,4 +58,3 @@ def map( def map(func: Any, iter1: Any, iter2: Any = ...) -> Any: raise NotImplementedError - diff --git a/conformance/tests/overloads_consistency.py b/conformance/tests/overloads_consistency.py index 58533c125..540e0146a 100644 --- a/conformance/tests/overloads_consistency.py +++ b/conformance/tests/overloads_consistency.py @@ -115,4 +115,3 @@ def decorated(x: str, /) -> str: @_deco_2 def decorated(y: bytes, z: bytes) -> bytes: return b"" - diff --git a/docs/spec/callables.rst b/docs/spec/callables.rst index a4028aae8..f23220400 100644 --- a/docs/spec/callables.rst +++ b/docs/spec/callables.rst @@ -453,7 +453,7 @@ a function within a type expression. The syntax is Parameters specified using ``Callable`` are assumed to be positional-only. The ``Callable`` form provides no way to specify keyword-only parameters, -or default argument values. For these use cases, see the section on +or default argument values. For these use cases, see the section on `Callback protocols`_. Meaning of ``...`` in ``Callable``