Skip to content

Commit 6ef9f77

Browse files
Fix pre-commit hook end-of-file-fixer interfering with CI. (#2320)
1 parent f4f2952 commit 6ef9f77

6 files changed

Lines changed: 4 additions & 5 deletions

File tree

conformance/results/results.html

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

conformance/src/reporting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def generate_summary(root_dir: Path):
5858
env = jinja2.Environment(
5959
loader=jinja2.FileSystemLoader(root_dir.joinpath("src/templates")),
6060
autoescape=jinja2.select_autoescape(),
61+
keep_trailing_newline=True,
6162
)
6263
env.filters["conformance_class"] = _conformance_class
6364

conformance/tests/enums_definition.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,3 @@ class Color12(Enum):
9090
assert_type(Color12.RED, Literal[Color12.RED])
9191
assert_type(Color12.GREEN, Literal[Color12.GREEN])
9292
Color12.BLUE # E
93-

conformance/tests/overloads_basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@ def map(
5858

5959
def map(func: Any, iter1: Any, iter2: Any = ...) -> Any:
6060
raise NotImplementedError
61-

conformance/tests/overloads_consistency.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,3 @@ def decorated(x: str, /) -> str:
115115
@_deco_2
116116
def decorated(y: bytes, z: bytes) -> bytes:
117117
return b""
118-

docs/spec/callables.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ a function within a type expression. The syntax is
453453

454454
Parameters specified using ``Callable`` are assumed to be positional-only.
455455
The ``Callable`` form provides no way to specify keyword-only parameters,
456-
or default argument values. For these use cases, see the section on
456+
or default argument values. For these use cases, see the section on
457457
`Callback protocols`_.
458458

459459
Meaning of ``...`` in ``Callable``

0 commit comments

Comments
 (0)