From 2167cc2a7c41bc7dbbadc328edffa1a0f80a8f1e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 18:47:46 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.10.0 → 25.9.0](https://github.com/psf/black-pre-commit-mirror/compare/24.10.0...25.9.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f4723c..a3e89d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ exclude: (^src.*$) default_language_version: python: "3.11" repos: - - repo: https://github.com/psf/black - rev: "24.10.0" + - repo: https://github.com/psf/black-pre-commit-mirror + rev: "25.9.0" hooks: - id: black From 9f8afbf7b10a2c3b8b48fd51176f943c6e412dd9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 18:53:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/ingest_stringify_test.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/ingest_stringify_test.py b/tests/ingest_stringify_test.py index ef58dab..f525c21 100644 --- a/tests/ingest_stringify_test.py +++ b/tests/ingest_stringify_test.py @@ -236,12 +236,10 @@ def test_interface(): "Document", bases=["Blob"], children=[ - ( - GMethod( - "createElement", - arguments=[GArg("localName", "DOMString")], - returns="FooElement", - ) + GMethod( + "createElement", + arguments=[GArg("localName", "DOMString")], + returns="FooElement", ) ], ) @@ -252,7 +250,7 @@ def test_complete_interface(): _verify_root_stmt( "interface Doc : Blob { attribute Blob baz; } ", "class Doc(Blob):\n baz: Blob", - GClass("Doc", bases=["Blob"], children=[(GAttribute("baz", "Blob"))]), + GClass("Doc", bases=["Blob"], children=[GAttribute("baz", "Blob")]), ) @@ -262,7 +260,7 @@ def test_namespace(): "class ConsoleNamespace:\n def log(self, *data: Any): ...", GClass( "console", - children=[(GMethod("log", [GArgVariadic("data", "any")]))], + children=[GMethod("log", [GArgVariadic("data", "any")])], is_namespace=True, ), )